Working read code with mode button
Dependencies: SDFileSystem emic2 mbed-rtos mbed
Fork of BAT_senior_design_Testnew by
Diff: main.cpp
- Revision:
- 23:c5df903f068a
- Parent:
- 21:ceac47be2e64
- Child:
- 24:6931917c70cd
--- a/main.cpp Fri Oct 27 15:18:28 2017 +0000 +++ b/main.cpp Wed Nov 01 15:22:13 2017 +0000 @@ -21,19 +21,20 @@ //DigitalOut led1(LED1); //DigitalOut led3(LED3); -//DigitalOut led4(LED4); +DigitalOut led4(LED4); //AnalogIn linpot(p20); //Serial pc(USBTX, USBRX); //SDFileSystem sd(p5, p6, p7, p8, "sd"); //SD card //AnalogOut DACout(p26); //wave_player waver(&DACout); -button button1(myservo, pb1); -button button2(myservo2, pb2); -button button3(myservo3, pb3); -button button4(myservo4, pb4); -button button5(myservo5, pb5); -button button6(myservo6, pb6); +//button button1(myservo, pb1, linpot); +button button1(myservo, pb1, 1); +button button2(myservo2, pb2, 2); +button button3(myservo3, pb3, 3); +button button4(myservo4, pb4, 4); +button button5(myservo5, pb5, 5); +button button6(myservo6, pb6, 6); buttonArray buttonarr(button1, button2, button3, button4, button5, button6); @@ -69,6 +70,7 @@ { while(true) { state = button1.updateState(); + //led4 = button1.getLp(); Thread::wait(100); // wait till thread is done } }