This is car control simulation by using Mbed controller and real time operating system.

Dependencies:   MCP23017 Servo WattBob_TextLCD mbed-rtos mbed

Fork of Ass3 by Muaiyd Al-Zandi

main.cpp

Committer:
muaiyd
Date:
2014-04-02
Revision:
0:68ce46607848
Child:
1:b409ad65466a

File content as of revision 0:68ce46607848:

#include "CAR.h"
 
int main() {
    Port.write_bit(1,BL_BIT);
    CAR CAR1;
    void const *args;
    Thread thread(CAR1.led2_thread);
    
    while (true) {
        led1 = !led1;
        Thread::wait(100);
    }
}