Jacob Katz
/
superBall
SuperBall program
main.cpp@0:37eebd69bc52, 2012-04-03 (annotated)
- Committer:
- katzjacob
- Date:
- Tue Apr 03 21:21:55 2012 +0000
- Revision:
- 0:37eebd69bc52
This is going to be the base of our SuperBall
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
katzjacob | 0:37eebd69bc52 | 1 | #include "mbed.h" |
katzjacob | 0:37eebd69bc52 | 2 | |
katzjacob | 0:37eebd69bc52 | 3 | DigitalOut myled(LED1); |
katzjacob | 0:37eebd69bc52 | 4 | |
katzjacob | 0:37eebd69bc52 | 5 | int main() { |
katzjacob | 0:37eebd69bc52 | 6 | while(1) { |
katzjacob | 0:37eebd69bc52 | 7 | myled = 1; |
katzjacob | 0:37eebd69bc52 | 8 | wait(0.2); |
katzjacob | 0:37eebd69bc52 | 9 | myled = 0; |
katzjacob | 0:37eebd69bc52 | 10 | wait(0.2); |
katzjacob | 0:37eebd69bc52 | 11 | } |
katzjacob | 0:37eebd69bc52 | 12 | } |