Contest IOT GSE5
/
contest_IOT2
Pong Game Tea Term
Fork of contest_IOT by
main.cpp@0:028fac66239d, 2014-02-21 (annotated)
- Committer:
- bcostm
- Date:
- Fri Feb 21 10:34:55 2014 +0000
- Revision:
- 0:028fac66239d
- Child:
- 1:e9d1c42a73ae
Initial version.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
bcostm | 0:028fac66239d | 1 | #include "mbed.h" |
bcostm | 0:028fac66239d | 2 | |
bcostm | 0:028fac66239d | 3 | Serial pc(SERIAL_TX, SERIAL_RX); |
bcostm | 0:028fac66239d | 4 | |
bcostm | 0:028fac66239d | 5 | DigitalOut myled(LED1); |
bcostm | 0:028fac66239d | 6 | |
bcostm | 0:028fac66239d | 7 | int main() { |
bcostm | 0:028fac66239d | 8 | int i = 1; |
bcostm | 0:028fac66239d | 9 | pc.printf("Hello World !\n"); |
bcostm | 0:028fac66239d | 10 | while(1) { |
bcostm | 0:028fac66239d | 11 | wait(1); |
bcostm | 0:028fac66239d | 12 | pc.printf("This program runs since %d seconds.\n", i++); |
bcostm | 0:028fac66239d | 13 | myled = !myled; |
bcostm | 0:028fac66239d | 14 | } |
bcostm | 0:028fac66239d | 15 | } |
bcostm | 0:028fac66239d | 16 |