Chad Amonn
/
ClassFile
hardware classes
main.cpp@0:1fc280fa2177, 2010-06-02 (annotated)
- Committer:
- UAVguy
- Date:
- Wed Jun 02 21:40:10 2010 +0000
- Revision:
- 0:1fc280fa2177
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
UAVguy | 0:1fc280fa2177 | 1 | #include "mbed.h" |
UAVguy | 0:1fc280fa2177 | 2 | #include "Servo.h" |
UAVguy | 0:1fc280fa2177 | 3 | #include "USRF_MB1310.h" |
UAVguy | 0:1fc280fa2177 | 4 | |
UAVguy | 0:1fc280fa2177 | 5 | //this file is meant for testing |
UAVguy | 0:1fc280fa2177 | 6 | |
UAVguy | 0:1fc280fa2177 | 7 | DigitalOut myled(LED1); |
UAVguy | 0:1fc280fa2177 | 8 | Servo test(p23); |
UAVguy | 0:1fc280fa2177 | 9 | int check; |
UAVguy | 0:1fc280fa2177 | 10 | |
UAVguy | 0:1fc280fa2177 | 11 | |
UAVguy | 0:1fc280fa2177 | 12 | int main() |
UAVguy | 0:1fc280fa2177 | 13 | { |
UAVguy | 0:1fc280fa2177 | 14 | |
UAVguy | 0:1fc280fa2177 | 15 | test = 234; |
UAVguy | 0:1fc280fa2177 | 16 | check = test; |
UAVguy | 0:1fc280fa2177 | 17 | while(1) |
UAVguy | 0:1fc280fa2177 | 18 | { |
UAVguy | 0:1fc280fa2177 | 19 | myled = 1; |
UAVguy | 0:1fc280fa2177 | 20 | wait(0.2); |
UAVguy | 0:1fc280fa2177 | 21 | myled = 0; |
UAVguy | 0:1fc280fa2177 | 22 | wait(0.2); |
UAVguy | 0:1fc280fa2177 | 23 | }//blink an led |
UAVguy | 0:1fc280fa2177 | 24 | |
UAVguy | 0:1fc280fa2177 | 25 | } |