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

Dependencies:   mbed

main.cpp

Committer:
Yar
Date:
2017-01-15
Revision:
0:690effcc5be0
Child:
3:e47c0c98f515

File content as of revision 0:690effcc5be0:

#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);
    }
    
}