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.
Revision 0:8ebdec6e7f39, committed 2015-02-10
- Comitter:
- morecat_lab
- Date:
- Tue Feb 10 23:18:06 2015 +0000
- Commit message:
- 16 segment LED library test program 1st release
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Tue Feb 10 23:18:06 2015 +0000
@@ -0,0 +1,24 @@
+//
+// 16 segment LED display library test program
+// created by morecat_lab
+// 2015/2/11
+//
+// tested on LPC1114 mbed
+
+#include "mbed.h"
+#include "Stnseg.h"
+
+// create an instance of 4digit 16segment dislpay
+Stnseg my16seg(dp1, dp2, dp4, dp6, dp9, dp10, dp11, dp13);
+
+int main() {
+ int i = 0;
+ my16seg.setZeroSupress(0);
+ my16seg.begin();
+ while(1) {
+ my16seg.writeNum(i++);
+ my16seg.setDot(i % 4);
+ if (i >= 10000) i = 0;
+ my16seg.updateWithDelay(50);
+ }
+}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Tue Feb 10 23:18:06 2015 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/e188a91d3eaa \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/stnseg.lib Tue Feb 10 23:18:06 2015 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/morecat_lab/code/stnseg/#420d710da1c5