Light Show library for organic, calm, light display.

Dependencies:   BLE_API mbed nRF51822

Fork of mbed_blinky by Mbed

light_show.h

Committer:
nargetdev
Date:
2016-01-30
Revision:
24:52319c0a14b8
Child:
25:d48f46d753fd

File content as of revision 24:52319c0a14b8:

#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