Michael Ernst Peter / Mbed OS RT2_Cuboid

Dependencies:   Cntrl_Libary

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 #include "platform/mbed_thread.h"
00003 
00004 #include "Controller.h"
00005 
00006 DigitalOut  led(LED1);
00007 
00008 float Ts = 0.002f;
00009 Controller controller(Ts);
00010 
00011 int main()
00012 {
00013     controller.start_loop();
00014 
00015     while(true) {
00016         /* visual feedback that the main task is executed */
00017         led = !led;
00018         thread_sleep_for(1000);
00019     }
00020 }