Jon Marsh
/
m3pi_POV
Making POV public for LVC Robot Club
main.cpp
- Committer:
- jonmarsh
- Date:
- 2011-10-10
- Revision:
- 0:4623833eae96
File content as of revision 0:4623833eae96:
#include "mbed.h" #include "m3pi.h" m3pi m3pi(p23,p9,p10); char pov[30] = { 0x7f,0x08,0x08,0x08,0x7f,0x0, // H 0x7f,0x49,0x49,0x41,0x41,0x0, // E 0x00,0x7f,0x01,0x01,0x01,0x0, // L 0x00,0x7f,0x01,0x01,0x01,0x0, // L 0x3e,0x41,0x41,0x41,0x3e,0x0, // O }; int main() { m3pi.locate(0,1); m3pi.printf("m3pi PoV"); wait(2.0); m3pi.right(1.0); // spin full speed right! while (1) { for (int i=0;i<30;i++) { m3pi.leds(pov[i]); wait(0.005); } wait (0.1); } }