Yoshitaka Kuwata / Mbed 2 deprecated 16segmentLED_test

Dependencies:   mbed stnseg

Files at this revision

API Documentation at this revision

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

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
stnseg.lib Show annotated file Show diff for this revision Revisions of this file
--- /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