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.
Fork of DotStar by
Diff: main.cpp
- Revision:
- 1:8ad764aed49f
- Parent:
- 0:27f99fa5a413
- Child:
- 2:804574387573
diff -r 27f99fa5a413 -r 8ad764aed49f main.cpp
--- a/main.cpp Thu Mar 17 03:08:32 2016 +0000
+++ b/main.cpp Thu Mar 17 03:09:59 2016 +0000
@@ -13,7 +13,7 @@
int led_buf[LED_NUM];
-void dotsStar () {
+void dotStar () {
int i;
// start frame
@@ -44,7 +44,7 @@
c = ((color + i) % 7) + 1;
led_buf[i] = (c & 4 ? 0xff0000 : 0) | (c & 2 ? 0xff00 : 0) | (c & 1 ? 0xff : 0);
}
- dotsStar();
+ dotStar();
myled = !myled;
color ++;
if (color > 7) color = 1;
