для управления турелью

Dependencies:   mbed

Revision:
0:690effcc5be0
Child:
3:e47c0c98f515
diff -r 000000000000 -r 690effcc5be0 main.cpp
--- /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