
scroller for 4 digit display, rides on top of DigitDisplay and scrolls messages of arbitrary length
Dependencies: DigitDisplay mbed
main.cpp
- Committer:
- mfiore
- Date:
- 2014-09-07
- Revision:
- 0:f8d65945b096
File content as of revision 0:f8d65945b096:
#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); */ } }