scroller for 4 digit display, rides on top of DigitDisplay and scrolls messages of arbitrary length
Dependencies: DigitDisplay mbed
Diff: main.cpp
- Revision:
- 0:f8d65945b096
diff -r 000000000000 -r f8d65945b096 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Sun Sep 07 05:30:25 2014 +0000 @@ -0,0 +1,33 @@ +#include "mbed.h" +#include "DisplayManager.h" + +using namespace std; + +int main() { + // use connector D3 on the sensor shield board + DisplayManager display(D3, D4); + //DigitDisplay display(D3, D4); + + display.clear(); + char chars[] = "jon and mike are cool dudes"; + + while (true) { + display.showMessage(chars, sizeof(chars)); + /* + display.writeRaw(0, 0x01); + wait(5); + display.writeRaw(0, 0x02); + wait(5); + display.writeRaw(0, 0x04); + wait(5); + display.writeRaw(0, 0x08); + wait(5); + display.writeRaw(0, 0x10); + wait(5); + display.writeRaw(0, 0x20); + wait(5); + display.writeRaw(0, 0x40); + wait(5); + */ + } +} \ No newline at end of file