Ghz2000's 14Segment LED Display Library
Dependencies: libSeg14Display mbed
main.cpp
- Committer:
- ghz2000
- Date:
- 2016-07-05
- Revision:
- 1:03deb66cbda3
- Parent:
- 0:1fb276394bca
File content as of revision 1:03deb66cbda3:
#include "mbed.h" #include "lib14Seg.hpp" #define RCK D9 DigitalOut myled(LED2); Serial pc(SERIAL_TX, SERIAL_RX); int main() { LED14Seg.init(SPI_MOSI, SPI_MISO, SPI_SCK, RCK, 0x04, 8); LED14Seg.setChar("ABCDEFGHIJKLMNOPQRSTUVWXYZ"); LED14Seg.showStop(); LED14Seg.setScrollSpeed(300); while(1) { wait(1.0); // 1 sec } }