![](/media/cache/group/u-blox_logo_trans.png.50x50_q85.png)
C027 Example: blinking LED
Dependencies: mbed
Fork of C027_HelloWorld by
main.cpp@2:4e0e24635b97, 2013-10-21 (annotated)
- Committer:
- mazgch
- Date:
- Mon Oct 21 15:42:40 2013 +0000
- Revision:
- 2:4e0e24635b97
- Parent:
- 1:b2f5ffeed00b
- Child:
- 4:1fecbc981273
draft version (untested)
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mazgch | 0:7626456dca2c | 1 | #include "mbed.h" |
mazgch | 2:4e0e24635b97 | 2 | #include "C027.h" |
mazgch | 0:7626456dca2c | 3 | |
mazgch | 0:7626456dca2c | 4 | DigitalOut myled(A0); |
mazgch | 1:b2f5ffeed00b | 5 | // connect a LED between A0 and a GND pin to see the blinking |
mazgch | 0:7626456dca2c | 6 | |
mazgch | 0:7626456dca2c | 7 | int main() { |
mazgch | 0:7626456dca2c | 8 | while(1) { |
mazgch | 0:7626456dca2c | 9 | myled = 1; |
mazgch | 0:7626456dca2c | 10 | wait(0.2); |
mazgch | 0:7626456dca2c | 11 | myled = 0; |
mazgch | 0:7626456dca2c | 12 | wait(0.2); |
mazgch | 0:7626456dca2c | 13 | } |
mazgch | 0:7626456dca2c | 14 | } |