Light Show library for organic, calm, light display.
Dependencies: BLE_API mbed nRF51822
Fork of mbed_blinky by
Diff: light_show.h
- Revision:
- 24:52319c0a14b8
- Child:
- 25:d48f46d753fd
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/light_show.h Sat Jan 30 20:07:55 2016 +0000 @@ -0,0 +1,29 @@ +#ifndef LIGHT_SHOW_H +#define LIGHT_SHOW_H + +class LightShow +{ +public: + void randomize_params(); + void drive(); + +private: + static const float HYSTERESIS_QUANTITY = PI/4; + + // Arbitrary params for the show + static const float RWAIT = 0; + static const float GWAIT = PI/8; + static const float BWAIT = PI/4; + float WAIT [3]; + float SCALE [3]; + + // channel operators + float rgb_c[3]; + float in; // phase + uint8_t rgb; + float hysteresis; + + uint8_t i; +}; + +#endif \ No newline at end of file