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