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:daf6195ac7a7
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Wed Dec 23 15:38:22 2015 +0000
@@ -0,0 +1,27 @@
+#include "mbed.h"
+
+Ticker flipper;
+BusOut Col(dp3,dp6,dp7,dp8,dp9,dp10,dp11,dp12);
+BusOut Row(dp15,dp16,dp17,dp18,dp19,dp20,dp21,dp22);
+
+const uint8_t pt[8] = {
+ 0x3C,0x42,0xA5,0x81,0xA5,0x99,0x42,0x3C
+};
+
+void flip() {
+ static int col = 0;
+
+ Row = 0;
+ Col = pt[col];
+ Row = 1 << col;
+
+ col++;
+ col %= 8;
+}
+
+int main() {
+ flipper.attach(&flip, 0.002);
+
+ while(1) {
+ }
+}