Eric Klawitter / Mbed 2 deprecated Seven_Segment_Serial_UART_Demo

Dependencies:   SevenSegmentSerial mbed

Files at this revision

API Documentation at this revision

Comitter:
esklawitter
Date:
Wed Mar 15 04:55:16 2017 +0000
Commit message:
V1.0

Changed in this revision

SevenSegmentSerial.lib Show annotated file Show diff for this revision Revisions of this file
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
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/SevenSegmentSerial.lib	Wed Mar 15 04:55:16 2017 +0000
@@ -0,0 +1,1 @@
+https://developer.mbed.org/users/esklawitter/code/SevenSegmentSerial/#21bad794d528
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Wed Mar 15 04:55:16 2017 +0000
@@ -0,0 +1,29 @@
+#include "mbed.h"
+#include "SevenSegmentSerial.h"
+
+// initialize new 7-Segment Serial display on TX pin 9
+SevenSegmentSerial mydisplay(SERIAL_MODE, p9);
+
+
+int main()
+{
+    // countodwn from 10, gradually increasing brightness
+    for (int j = 0 ; j < 10; j++) {
+        mydisplay.setBrightness((char)j*10);
+        mydisplay= 10-j;
+        wait(1);
+    }
+
+    //set to max brightness
+    mydisplay.setBrightness(100);
+
+    // count up to max value, incrementing by tenths
+    while(1) {
+        float i = 0.0;
+        while(i < 10000) {
+            mydisplay=i;
+            i+=0.05;
+        }
+    }
+
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Wed Mar 15 04:55:16 2017 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/e1686b8d5b90
\ No newline at end of file