Cambios

Dependencies:   mbed Adafruit_GFX SeeedShieldBot BluetoothSerial

Files at this revision

API Documentation at this revision

Comitter:
arturodeusto
Date:
Mon Dec 21 12:39:42 2020 +0000
Parent:
1:035ceace4dc3
Child:
3:b33d698b0a5c
Commit message:
funciona sin led y empezando mal

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Mon Dec 21 12:33:29 2020 +0000
+++ b/main.cpp	Mon Dec 21 12:39:42 2020 +0000
@@ -67,7 +67,7 @@
         if (dato=='1') {            //Si el dato es un 1 comienza el proceso
 
             estado = movder;
-            //gOled.printf("Transportando\n");
+            gOled.printf("Fabricando\n");
             bt.printf("Transportando\n");
 
 
@@ -195,8 +195,8 @@
     dirAMotor=0;
     dirBMotor=0;
     estado=inicio;
-    //gOled.clearDisplay();
-    //gOled.printf("Reposo\n");
+    gOled.clearDisplay();
+    gOled.printf("Reposo\n");
     bt.printf("Reposo\n");
     
 
@@ -208,9 +208,9 @@
 {
     pc.baud(115200);
     estado = inicio;
-    //gOled.begin();
-    //gOled.clearDisplay();
-    //gOled.printf("Reposo\n");
+    gOled.begin();
+    gOled.clearDisplay();
+    gOled.printf("Reposo\n");
     bt.printf("Reposo\n");
 
     repeticion.attach(&medir_corriente, 5.0); //Medir la intensidad cada tres segundos