Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: SevenSegmentSerial mbed
main.cpp
- Committer:
- esklawitter
- Date:
- 2017-03-15
- Revision:
- 0:2a83a6057c87
- Child:
- 1:ce924aa3832d
File content as of revision 0:2a83a6057c87:
#include "mbed.h" #include "SevenSegmentSerial.h" // initialize new 7-Segment Serial display using SPI mosi, sclk, SS(optional) SevenSegmentSerial mydisplay(SPI_MODE, p11, p13, p14); int main() { // write text to the display mydisplay= "-HI-"; wait(1.5); mydisplay= "7SEG"; wait(1.5); while (1) { // count down to -1000 for (int i = 0; i > -1000; i--) { mydisplay.clear(); mydisplay= i; wait_ms(100); } } }