Tedd OKANO
/
mbed-os5_blinky_bare-metal
my first "os5" bare-metal on online-compiler
main.cpp@0:4cdcddbd6c3d, 2019-06-15 (annotated)
- Committer:
- okano
- Date:
- Sat Jun 15 06:49:03 2019 +0000
- Revision:
- 0:4cdcddbd6c3d
my first "os5" bare-metal
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
okano | 0:4cdcddbd6c3d | 1 | #include "mbed.h" |
okano | 0:4cdcddbd6c3d | 2 | |
okano | 0:4cdcddbd6c3d | 3 | DigitalOut myled(LED3); |
okano | 0:4cdcddbd6c3d | 4 | |
okano | 0:4cdcddbd6c3d | 5 | int main() { |
okano | 0:4cdcddbd6c3d | 6 | while(1) { |
okano | 0:4cdcddbd6c3d | 7 | myled = 1; |
okano | 0:4cdcddbd6c3d | 8 | wait(0.8); |
okano | 0:4cdcddbd6c3d | 9 | myled = 0; |
okano | 0:4cdcddbd6c3d | 10 | wait(0.2); |
okano | 0:4cdcddbd6c3d | 11 | } |
okano | 0:4cdcddbd6c3d | 12 | } |