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.
Dependencies: SevenSegmentSerial mbed
Revision 0:805ba7790b08, committed 2017-03-15
- Comitter:
- esklawitter
- Date:
- Wed Mar 15 04:55:16 2017 +0000
- Commit message:
- V1.0
Changed in this revision
--- /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