Example program for BLE devices using updated Puck library.
Fork of location-puck by
Revision 2:67d603617000, committed 2014-06-19
- Comitter:
- cristea
- Date:
- Thu Jun 19 10:47:28 2014 +0200
- Parent:
- 1:345039810771
- Child:
- 3:4cb285fb29e7
- Commit message:
- Update blinker to be more aestethically pleasing
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Thu Jun 19 10:40:24 2014 +0200
+++ b/main.cpp Thu Jun 19 10:47:28 2014 +0200
@@ -12,20 +12,37 @@
clear();
led1 = 1;
wait(delta);
+
+ clear();
+ led1 = 1;
+ wait(delta);
clear();
led2 = 1;
wait(delta);
+
+ clear();
+ led2 = 1;
+ wait(delta);
}
void drums(float delta) {
clear();
led1 = 1;
wait(delta);
+
+ clear();
+ led2 = 1;
+ wait(delta);
+
+ clear();
+ led2 = 1;
+ wait(delta);
}
int main() {
while(1) {
drums(0.3);
+ cycle(0.3);
}
}
