![](/media/cache/profiles/IMG_0710-2.jpg.50x50_q85.jpg)
Light Show library for organic, calm, light display.
Dependencies: BLE_API mbed nRF51822
Fork of mbed_blinky by
Diff: main.cpp
- Revision:
- 14:e8a1fe69b048
- Parent:
- 13:ed92d45dc9ab
- Child:
- 15:ee94af1f90a0
--- a/main.cpp Sun Oct 11 06:42:09 2015 +0000 +++ b/main.cpp Sun Oct 11 06:49:34 2015 +0000 @@ -6,7 +6,7 @@ #define HPI 1.571 #define PI 3.1416 -#define HYSTERESIS_QUANTITY HPI*0.5 +#define HYSTERESIS_QUANTITY PI unsigned long seed = 47; @@ -113,11 +113,27 @@ pc.printf("\n%X\n", rgb); } +void channel_check(){ + + red.write(1.0f); + wait(.5); + red.write(0.0f); + + green.write(1.0f); + wait(.5); + green.write(0.0f); + + blue.write(1.0f); + wait(.5); + blue.write(0.0f); +} + int main() { red.period(0.001f); green.period(0.001f); blue.period(0.001f); - + + channel_check(); pc.printf("Hello World!\n"); // Calibrate FIR and identify. calibrate();