ok
Dependencies: WiflyInterface m3pi mbed
Fork of m3pi_HelloWorld by
main.cpp@2:5a329194c74d, 2010-11-02 (annotated)
- Committer:
- chris
- Date:
- Tue Nov 02 16:56:55 2010 +0000
- Revision:
- 2:5a329194c74d
- Parent:
- 1:05bdd0697e72
- Child:
- 3:f1b80fdc708c
.. and when you change and instance name, you have to change all references to it as well!
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
chris | 0:93bba564574a | 1 | #include "mbed.h" |
chris | 0:93bba564574a | 2 | #include "m3pi.h" |
chris | 0:93bba564574a | 3 | |
chris | 1:05bdd0697e72 | 4 | m3pi m3pi(p8,p9,p10); |
chris | 1:05bdd0697e72 | 5 | |
chris | 0:93bba564574a | 6 | |
chris | 0:93bba564574a | 7 | int main() { |
chris | 0:93bba564574a | 8 | |
chris | 1:05bdd0697e72 | 9 | |
chris | 1:05bdd0697e72 | 10 | |
chris | 2:5a329194c74d | 11 | m3pi.locate(0,1); |
chris | 2:5a329194c74d | 12 | m3pi.printf("LO World"); |
chris | 1:05bdd0697e72 | 13 | wait(5.0); |
chris | 0:93bba564574a | 14 | |
chris | 2:5a329194c74d | 15 | m3pi.forward(0.5); |
chris | 0:93bba564574a | 16 | wait (0.5); |
chris | 2:5a329194c74d | 17 | m3pi.left(0.5); |
chris | 0:93bba564574a | 18 | wait (0.5); |
chris | 2:5a329194c74d | 19 | m3pi.backward(0.5); |
chris | 0:93bba564574a | 20 | wait (0.5); |
chris | 2:5a329194c74d | 21 | m3pi.right(0.5); |
chris | 0:93bba564574a | 22 | wait (0.5); |
chris | 0:93bba564574a | 23 | |
chris | 2:5a329194c74d | 24 | m3pi.stop(); |
chris | 0:93bba564574a | 25 | |
chris | 0:93bba564574a | 26 | } |