Programma motore
Dependencies: mbed X-NUCLEO-IHM05A1
Revision 12:3b7216265c6a, committed 2018-11-21
- Comitter:
- francesco01
- Date:
- Wed Nov 21 13:34:32 2018 +0000
- Parent:
- 11:196c4677e0ca
- Commit message:
- robot finale;
Changed in this revision
| Exercise_IHM05A1.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/Exercise_IHM05A1.cpp Mon Nov 19 11:45:23 2018 +0000
+++ b/Exercise_IHM05A1.cpp Wed Nov 21 13:34:32 2018 +0000
@@ -279,7 +279,8 @@
//myRele = 0x00; // spegni il relè
-
+ while (true){
+ if (myButton == 1) {
LedAD =0x00 ;
LedAS =0x00 ;
LedPD =0x00 ;
@@ -302,7 +303,7 @@
LedPD =0x01 ;
wait_ms(500);
LedPS =0x01 ;
- wait(1);
+ wait(1);}};
// configura velocità della comunicazione seriale su USB-VirtualCom e invia messaggio di benvenuto
pc.baud(921600); //921600 bps
//pc.baud(9600); //256000 bps