Light Show library for organic, calm, light display.
Dependencies: BLE_API mbed nRF51822
Fork of mbed_blinky by
Diff: sinusoid.h
- Revision:
- 26:8bc9984c4600
- Parent:
- 25:d48f46d753fd
- Child:
- 27:a55dde8334f3
--- a/sinusoid.h Mon Feb 01 01:02:46 2016 +0000 +++ b/sinusoid.h Mon Feb 01 01:43:59 2016 +0000 @@ -12,16 +12,17 @@ * - This value is zero if time is < wait **/ float get_y(float); - /** default constructor **/ + + /** constructors **/ Sinusoid():wait(0), frequency(1){} Sinusoid(float wait, float frequency); + /** set sine wave frequency **/ void set_frequency(float f) {frequency = f;} + + /** set wave stall time **/ void set_wait_time(float w) {wait = w;} private: - - // PI macros - static const float INCREMENT = 0.00628*4; float wait; // before this y is zero