Chris Styles
/
m3pi_HelloWorld
Hello world program that just gets the m3pi moving
Revision 2:5a329194c74d, committed 2010-11-02
- Comitter:
- chris
- Date:
- Tue Nov 02 16:56:55 2010 +0000
- Parent:
- 1:05bdd0697e72
- Child:
- 3:f1b80fdc708c
- Commit message:
- .. and when you change and instance name, you have to change all references to it as well!
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Tue Nov 02 16:55:00 2010 +0000 +++ b/main.cpp Tue Nov 02 16:56:55 2010 +0000 @@ -8,19 +8,19 @@ - pi.locate(0,1); - pi.printf("LO World"); + m3pi.locate(0,1); + m3pi.printf("LO World"); wait(5.0); - pi.forward(0.5); + m3pi.forward(0.5); wait (0.5); - pi.left(0.5); + m3pi.left(0.5); wait (0.5); - pi.backward(0.5); + m3pi.backward(0.5); wait (0.5); - pi.right(0.5); + m3pi.right(0.5); wait (0.5); - pi.stop(); + m3pi.stop(); } \ No newline at end of file