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 // 00002 // 16 segment LED display library test program 00003 // created by morecat_lab 00004 // 2015/2/11 00005 // 00006 // tested on LPC1114 mbed 00007 00008 #include "mbed.h" 00009 #include "Stnseg.h" 00010 00011 // create an instance of 4digit 16segment dislpay 00012 Stnseg my16seg(dp1, dp2, dp4, dp6, dp9, dp10, dp11, dp13); 00013 00014 int main() { 00015 int i = 0; 00016 my16seg.setZeroSupress(0); 00017 my16seg.begin(); 00018 while(1) { 00019 my16seg.writeNum(i++); 00020 my16seg.setDot(i % 4); 00021 if (i >= 10000) i = 0; 00022 my16seg.updateWithDelay(50); 00023 } 00024 }
Generated on Fri Jul 15 2022 23:55:38 by
1.7.2