Yaroslav Barabanov
/
turret_2017
для управления турелью
Diff: main.cpp
- Revision:
- 0:690effcc5be0
- Child:
- 3:e47c0c98f515
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Sun Jan 15 22:16:03 2017 +0000 @@ -0,0 +1,24 @@ +#include "mbed.h" +#include "rtos.h" +#include <string> +#include "servo.hpp" +#include "uart.hpp" +#include "gun.hpp" + + +using namespace std; + +DigitalOut my_led(LED1); + +int main() { + int i = 1; + Thread thread1(uartThread, NULL, osPriorityNormal, DEFAULT_STACK_SIZE); + initServo(); + disabledGun(); + while (true) { + my_led = !my_led; + Thread::wait(500); + } + +} + \ No newline at end of file