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.
main.cpp
00001 #include "mbed.h" 00002 #include "Spi7Seg.h" 00003 #include "LAMd.h" 00004 00005 DigitalOut myled(LED1); 00006 Spi7Seg mySpi7Seg(D5, D6, D7); 00007 00008 int main() { 00009 int i=1; 00010 mySpi7Seg.begin(); 00011 while(1) { 00012 myled = 1; 00013 mySpi7Seg.writeNum(i); 00014 // mySpi7Seg.writeHex(i); 00015 mySpi7Seg.update(); 00016 wait(0.02); 00017 myled = 0; 00018 wait(0.02); 00019 i++; 00020 } 00021 }
Generated on Wed Aug 3 2022 06:31:09 by
1.7.2