Chris Styles
/
m3pi_BatteryCharger
Example code for charging a battery
Fork of m3pi_HelloWorld by
Revision 1:05bdd0697e72, committed 2010-11-02
- Comitter:
- chris
- Date:
- Tue Nov 02 16:55:00 2010 +0000
- Parent:
- 0:93bba564574a
- Child:
- 2:5a329194c74d
- Commit message:
- Changed the instance name from \"pi\" to \"m3pi\" for consistency
Changed in this revision
m3pi.lib | Show annotated file Show diff for this revision Revisions of this file |
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/m3pi.lib Fri Oct 29 13:32:33 2010 +0000 +++ b/m3pi.lib Tue Nov 02 16:55:00 2010 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/chris/code/m3pi/#816a80dcc1a3 +http://mbed.org/users/chris/code/m3pi/#c38d2f980494
--- a/main.cpp Fri Oct 29 13:32:33 2010 +0000 +++ b/main.cpp Tue Nov 02 16:55:00 2010 +0000 @@ -1,11 +1,16 @@ #include "mbed.h" #include "m3pi.h" -m3pi pi(p8,p9,p10); +m3pi m3pi(p8,p9,p10); + int main() { - wait(0.5); + + + pi.locate(0,1); + pi.printf("LO World"); + wait(5.0); pi.forward(0.5); wait (0.5);