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 00003 BusOut Seg7(p5, p6, p7, p8, p9, p10, p11, p12); 00004 int SegChars[] = {0x3f, 0x06, 0x5b, 0x4f, 0x66, 0x6d, 0x7d, 0x07, 0x7f, 0x6f, 00005 0x77, 0x7c, 0x39, 0x5e, 0x79, 0x71 }; 00006 int count; 00007 00008 int main() { 00009 while(1) { 00010 Seg7 = SegChars[(count++)%16 ]; 00011 Seg7 = ~Seg7; // comment out for comon cathode, only for common anode 00012 wait(0.3); 00013 } 00014 }
Generated on Wed Sep 14 2022 10:25:03 by
1.7.2