![](/media/cache/profiles/1becf26e9f32353e30870060538746e7.50x50_q85.jpg)
The example program for RenBED to deomonstrate ticker and the Seven Segment Display Driver
Dependencies: SevenSegmentDisplay mbed
Fork of mbed_blinky by
main.cpp@1:ff60bc1461ed, 2014-02-10 (annotated)
- Committer:
- jf1452
- Date:
- Mon Feb 10 08:26:45 2014 +0000
- Revision:
- 1:ff60bc1461ed
- Parent:
- 0:7dec7e9ac085
- Child:
- 2:249f10554a91
RenBED Blinky
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
dan | 0:7dec7e9ac085 | 1 | #include "mbed.h" |
dan | 0:7dec7e9ac085 | 2 | |
jf1452 | 1:ff60bc1461ed | 3 | DigitalOut myled(P0_21); |
dan | 0:7dec7e9ac085 | 4 | |
dan | 0:7dec7e9ac085 | 5 | int main() { |
dan | 0:7dec7e9ac085 | 6 | while(1) { |
dan | 0:7dec7e9ac085 | 7 | myled = 1; |
dan | 0:7dec7e9ac085 | 8 | wait(0.2); |
dan | 0:7dec7e9ac085 | 9 | myled = 0; |
dan | 0:7dec7e9ac085 | 10 | wait(0.2); |
dan | 0:7dec7e9ac085 | 11 | } |
dan | 0:7dec7e9ac085 | 12 | } |