asdf
Dependencies: NokiaLCD XMIT_IR mbed
Fork of 4180_mP_WirelessPong_revC by
main.cpp@0:c8ddcaa575ba, 2012-10-04 (annotated)
- Committer:
- cmulady
- Date:
- Thu Oct 04 13:12:12 2012 +0000
- Revision:
- 0:c8ddcaa575ba
- Child:
- 1:9ba884d85ac6
First rev of initial coding.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
cmulady | 0:c8ddcaa575ba | 1 | #include "mbed.h" |
cmulady | 0:c8ddcaa575ba | 2 | #include "rtos.h" |
cmulady | 0:c8ddcaa575ba | 3 | #include "NokiaLCD.h" |
cmulady | 0:c8ddcaa575ba | 4 | |
cmulady | 0:c8ddcaa575ba | 5 | DigitalOut myled(LED1); |
cmulady | 0:c8ddcaa575ba | 6 | NokiaLCD lcd(p5, p7, p8, p9, NokiaLCD::LCD6610); // mosi, sclk, cs, rst, type |
cmulady | 0:c8ddcaa575ba | 7 | int main() { |
cmulady | 0:c8ddcaa575ba | 8 | |
cmulady | 0:c8ddcaa575ba | 9 | lcd.background(0x000000); |
cmulady | 0:c8ddcaa575ba | 10 | lcd.cls(); |
cmulady | 0:c8ddcaa575ba | 11 | lcd.locate(0,1); |
cmulady | 0:c8ddcaa575ba | 12 | lcd.printf("Debug:"); |
cmulady | 0:c8ddcaa575ba | 13 | |
cmulady | 0:c8ddcaa575ba | 14 | |
cmulady | 0:c8ddcaa575ba | 15 | |
cmulady | 0:c8ddcaa575ba | 16 | |
cmulady | 0:c8ddcaa575ba | 17 | while(1) { |
cmulady | 0:c8ddcaa575ba | 18 | myled = 1; |
cmulady | 0:c8ddcaa575ba | 19 | wait(0.2); |
cmulady | 0:c8ddcaa575ba | 20 | myled = 0; |
cmulady | 0:c8ddcaa575ba | 21 | wait(0.2); |
cmulady | 0:c8ddcaa575ba | 22 | } |
cmulady | 0:c8ddcaa575ba | 23 | } |