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.
Diff: main.cpp
- Revision:
- 0:56c7d6542a32
--- /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