![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Embedded software Assessment 2
Dependencies: MCP23017 SDFileSystem USBDevice WattBob_TextLCD mbed
main.cpp
- Committer:
- muaiyd
- Date:
- 2014-02-15
- Revision:
- 5:99cf489dcae4
- Parent:
- 4:4bb228d1f6c2
- Child:
- 6:7c31aabc2533
File content as of revision 5:99cf489dcae4:
#include "Function.h" void flip() { led1 = !led1; } int main(){ led1=0; led2=0; led3=0; led4=0; Init_LCD(); FrequencyIn.rise(&flip); // attach the address of the flip function to the rising edge while(1) { // wait around, interrupts will interrupt this! led2 = !led2; wait(0.25); } CallFunction1.attach(&job1,1); CallFunction2.attach(&job2,0.4); CallFunction3.attach(&job3,0.8); CallFunction4.attach(&job4,2); CallFunction5.attach(&job5,1.8); CallFunction6.attach(&job6,1.5); CallFunction7.attach(&job7,5); }