tp1

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
Maximousse
Date:
Sun Oct 11 12:58:03 2020 +0000
Parent:
0:727643d2c6ef
Commit message:
commit;

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 727643d2c6ef -r 236ac79b07d7 main.cpp
--- a/main.cpp	Fri Oct 09 10:25:39 2020 +0000
+++ b/main.cpp	Sun Oct 11 12:58:03 2020 +0000
@@ -13,8 +13,6 @@
 char clavier;
 char buffer[BUFF_SIZE];
 
-
-
 void readBattery()
 {
     char s[500];
@@ -39,7 +37,6 @@
     pc.printf("\r");
 }
 
-
 void Interrupt()
 {
     //printf("%c",pc.getc());
@@ -48,7 +45,6 @@
     m=1;
 }
 
-
 void Command(char c){
     switch (c) {
         case 'z':
@@ -82,8 +78,7 @@
 
 int main()
 {
-    //pc.attach(&Interrupt);
-    //Msg.rise(&Interrupt);
+    pc.attach(&Interrupt);
     pc.baud(9600);
     pi.sensor_auto_calibrate();
     //clavier='a';
@@ -110,7 +105,7 @@
             i--;
         }
 
-/*
+        /*
         if(flag) {
             clavier+=1;
             pi.print(&clavier,1);