
LinkNode_Time_and_Serial
Fork of mbed_blinky by
main.cpp
- Committer:
- helloqi
- Date:
- 2016-04-13
- Revision:
- 11:7e847d3aa735
- Parent:
- 4:81cea7a352b0
File content as of revision 11:7e847d3aa735:
#include<mbed.h> Serial pc(P0_23,P0_25); DigitalOut led(P0_20); Timer timer; void callback(void) { led = ~led; printf("hello everyone!\r\n"); } int main() { Ticker ticker; ticker.attach(callback,1); while(1); }