Working reset, flipped logic

Dependencies:   SDFileSystem emic2 mbed-rtos mbed

Fork of BAT_senior_design_Nhi by BAT

Revision:
22:6931917c70cd
Parent:
21:c5df903f068a
Child:
23:23970cf718ee
--- a/main.cpp	Wed Nov 01 15:22:13 2017 +0000
+++ b/main.cpp	Fri Nov 03 18:56:01 2017 +0000
@@ -21,9 +21,9 @@
 
 //DigitalOut led1(LED1);
 //DigitalOut led3(LED3);
-DigitalOut led4(LED4);
+//DigitalOut led4(LED4);
 
-//AnalogIn linpot(p20);
+DigitalIn linpot(p9);
 //Serial pc(USBTX, USBRX);
 //SDFileSystem sd(p5, p6, p7, p8, "sd"); //SD card
 //AnalogOut DACout(p26);
@@ -147,7 +147,7 @@
     pb6.mode(PullUp);
     wait(.001);
 
-    // servo begins at 30 degrees
+    // servos begin at 30 degrees
     // replace with a button setup function
     for(int i=0; i<=3; i++) {
         myservo = i/100.0;
@@ -217,13 +217,18 @@
     // play results on speaker
     // save results
 
-    // read linear potentiometer
-    //if (linpot < 0.5) {
-    //float potval = linpot;
-    //pc.printf("linear pot: %f\n", potval);
+    //pc.printf("%c\n", buttonarr.checkVal()); // check input
+    //pc.printf("%s\n", buttonarr.getBraille('A')); // check mapping
+    //pc.printf("%d\n", buttonarr.pinsToPress('A'));
+    //pc.printf("%d\n", buttonarr.wrongPins('M', 'O'));
+    //pc.printf("%c\n", buttonarr.releaseButtons());
 
     // MAIN THREAD
     while(true) {
+
+        // read linear potentiometer
+        //led4 = linpot;
+
         Thread::wait(500); // wait till thread is done
     }
 }
\ No newline at end of file