jamie wubben
/
PGO6_VoteController_template
jamie
Fork of PGO6_VoteController_template by
Diff: main.cpp
- Revision:
- 3:c77bed3482d3
- Parent:
- 2:5b7d055dbc91
--- a/main.cpp Tue Oct 31 09:01:56 2017 +0000 +++ b/main.cpp Thu Oct 11 15:51:58 2018 +0000 @@ -40,9 +40,22 @@ - To have a uniform message sending procedure, use the following function usage: sendMessage(&client, topic, buf, qos, retained, duplicate) */ - int main(int argc, char* argv[]) { - + DigitalOut led1(LED1); + for(int i=0;i<5;i++){ + led1 = 1; + wait(0.5); + led1 = 0; + wait(0.5); + } + + InterruptIn button(USER_BUTTON); + while(1){ + button.fall(callback(button1_onpressed_cb)); + } return 0; } + + + \ No newline at end of file