Dependencies: mbed
main.cpp@0:4e99e4caf232, 2015-01-27 (annotated)
- Committer:
- jaredwil
- Date:
- Tue Jan 27 21:35:41 2015 +0000
- Revision:
- 0:4e99e4caf232
- Child:
- 1:79bb0caaa231
Part1
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jaredwil | 0:4e99e4caf232 | 1 | #include "mbed.h" |
jaredwil | 0:4e99e4caf232 | 2 | |
jaredwil | 0:4e99e4caf232 | 3 | PmwOut r1(p26) |
jaredwil | 0:4e99e4caf232 | 4 | PmwOut r4(p25) |
jaredwil | 0:4e99e4caf232 | 5 | DigitalIn pound(p17); //Not sure if this will work labled (analog input) |
jaredwil | 0:4e99e4caf232 | 6 | DigitalIn two(p16) //^ |
jaredwil | 0:4e99e4caf232 | 7 | |
jaredwil | 0:4e99e4caf232 | 8 | int main() { |
jaredwil | 0:4e99e4caf232 | 9 | while(1) { |
jaredwil | 0:4e99e4caf232 | 10 | myled = 1; |
jaredwil | 0:4e99e4caf232 | 11 | wait(0.2); |
jaredwil | 0:4e99e4caf232 | 12 | myled = 0; |
jaredwil | 0:4e99e4caf232 | 13 | wait(0.2); |
jaredwil | 0:4e99e4caf232 | 14 | } |
jaredwil | 0:4e99e4caf232 | 15 | } |