![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Code
Dependencies: mbed QEI MPU6050 TextLCD
Diff: main.cpp
- Revision:
- 2:156f4732fbf1
- Parent:
- 1:59c416ccba42
- Child:
- 3:86145fd89b45
diff -r 59c416ccba42 -r 156f4732fbf1 main.cpp --- a/main.cpp Tue Mar 14 15:31:21 2017 +0000 +++ b/main.cpp Tue Mar 14 15:34:06 2017 +0000 @@ -1,38 +1,3 @@ -#include "mbed.h" -/*DigitalOut myled(LED1); -DigitalOut m2dir1(PB_4); -DigitalOut m2dir2(PB_10); -DigitalOut m1dir1(PB_3); -DigitalOut m1dir2(PB_5); -PwmOut pwm1(PA_8); -PwmOut pwm2(PA_9); - -int main() { - - pwm1.period_ms(1); - pwm1 = 1; - - pwm2.period_ms(1); - pwm2 = 1; - - while(1) - { - m2dir1 = 1; - m2dir2 = 0; - m1dir1 = 1; - m1dir2 = 0; - - - //lcd.locate(1,0); - //lcd.printf("Hello\n"); - //myled = 1; // LED is ON - //wait(0.2); // 200 ms - //myled = 0; // LED is OFF - //wait(1.0); // 1 sec - - } -} -*/ #include "mbed.h" #include "TextLCD.h" TextLCD lcd(PA_0,PA_1,PA_4,PB_0,PC_1,PC_0); // rs, e, d4-d7