Example program for BLE devices using updated Puck library.
Fork of location-puck by
main.cpp
- Committer:
- cristea
- Date:
- 2014-06-19
- Revision:
- 0:f4fbeaabdff5
- Child:
- 1:345039810771
File content as of revision 0:f4fbeaabdff5:
#include <mbed.h> DigitalOut led1(LED1); DigitalOut led2(LED2); void clear() { led1 = 0; led2 = 0; } void cycle(float delta) { clear(); led1 = 1; wait(delta); clear(); led2 = 1; wait(delta); clear(); led3 = 1; wait(delta); clear(); led4 = 1; wait(delta); } void drums(float delta) { clear(); led1 = 1; wait(delta); clear(); led4 = 1; wait(delta); } int main() { while(1) { drums(0.3); } }