Tyler Weaver
/
qp_hangman
Hangman game using qp a 16x2 LCD and joystick.
main.cpp@1:4efaebc256d3, 2012-02-09 (annotated)
- Committer:
- tylerjw
- Date:
- Thu Feb 09 03:57:44 2012 +0000
- Revision:
- 1:4efaebc256d3
- Parent:
- 0:1521c946a57b
Problems with qp library...
TODO: BSP for button and joystick then main.cpp
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
tylerjw | 1:4efaebc256d3 | 1 | #include "qp_port.h" |
tylerjw | 1:4efaebc256d3 | 2 | #include "hangman.h" |
tylerjw | 1:4efaebc256d3 | 3 | #include "bsp.h" |
tylerjw | 1:4efaebc256d3 | 4 | |
tylerjw | 1:4efaebc256d3 | 5 | Q_DEFINE_THIS_FILE |
tylerjw | 0:1521c946a57b | 6 | |
tylerjw | 0:1521c946a57b | 7 | DigitalOut myled(LED1); |
tylerjw | 0:1521c946a57b | 8 | |
tylerjw | 0:1521c946a57b | 9 | int main() { |
tylerjw | 0:1521c946a57b | 10 | while(1) { |
tylerjw | 0:1521c946a57b | 11 | myled = 1; |
tylerjw | 0:1521c946a57b | 12 | wait(0.2); |
tylerjw | 0:1521c946a57b | 13 | myled = 0; |
tylerjw | 0:1521c946a57b | 14 | wait(0.2); |
tylerjw | 0:1521c946a57b | 15 | } |
tylerjw | 0:1521c946a57b | 16 | } |