svoe
Dependencies: mbed mbed-STM32F103C8T6 MPU6050_1
main.cpp
- Committer:
- Stas285
- Date:
- 2017-05-02
- Revision:
- 0:e9488589a8ee
- Child:
- 1:e2a6e523bf1f
File content as of revision 0:e9488589a8ee:
#include "stm32f103c8t6.h" #include "mbed.h" Serial wifi(PA_9, PA_10); Serial pc(PB_10, PB_11); DigitalOut myled(LED1); int volatile proc_counter; //(3e5 - 2e6 idle, 2e5 - 5e5 at motion) / per 50 mS #include "motor.h" #include "serva.h" #include "echo.h" #include "motion.h" #include "realtime.h" #include "wifi.h" #include "system.h" int main() { system_init(); wifi.printf("abcd"); //while(1){proc_counter++;} stop(); dance(10,5); stop(); wait(2); dance(50,5); stop(); wait(2); dance(50,10); stop(); wait(2); dance(100,10); stop(); } //check_battery; //proz load?