hugh b / Mbed 2 deprecated lm3512

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
hughbellinger
Date:
Sun May 22 20:11:48 2022 +0000
Commit message:
1

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
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sun May 22 20:11:48 2022 +0000
@@ -0,0 +1,54 @@
+Common Annode
+#include "mbed.h"
+BusOut a(p15,p16,p17,p18,p19,p20,p21,p22);
+int main() 
+  {
+    a=0xC0;
+    wait(1);
+    a=0xF9;
+    wait(1);
+    a=0x5A4;
+    wait(1);
+    a=0xB0;
+    wait(1);
+    a=0x99;
+    wait(1);
+    a=0x92;
+    wait(1);
+    a=0x82;
+    wait(1);
+    a=0xF8;
+    wait(1);
+    a=0x80;
+    wait(1);
+    a=0x90;
+    wait(1);
+   }
+
+
+Common Cathode
+#include "mbed.h"
+BusOut a(p15,p16,p17,p18,p19,p20,p21,p22);
+int main() 
+  {
+    a=0x3F;
+    wait(1);
+    a=0x06;
+    wait(1);
+    a=0x5B;
+    wait(1);
+    a=0x4F;
+    wait(1);
+    a=0x66;
+    wait(1);
+    a=0x6D;
+    wait(1);
+    a=0x7D;
+    wait(1);
+    a=0x07;
+    wait(1);
+    a=0x7F;
+    wait(1);
+    a=0x6F;
+    wait(1);
+   }
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Sun May 22 20:11:48 2022 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400
\ No newline at end of file