Find file
Fetching contributors…
Cannot retrieve contributors at this time
40 lines (32 sloc) 924 Bytes
/*
G35: An Arduino library for GE Color Effects G-35 holiday lights.
Copyright © 2012 The G35 Authors. Use, modification, and distribution are
subject to the BSD license as described in the accompanying LICENSE file.
By Mike Tsao <http://github.com/sowbug>.
and Mark Ortiz
See README for complete attributions.
*/
#ifndef INCLUDE_G35_PROGRAMS_LEDStrip_SINE_WAVE_H
#define INCLUDE_G35_PROGRAMS_LEDStrip_SINE_WAVE_H
#include <LEDStripLightProgram.h>
class LEDStripSineWave : public LEDStripLightProgram
{
public:
LEDStripSineWave(LEDStripG35& g35, uint8_t pattern);
uint32_t Do();
uint32_t Wheel(uint16_t WheelPos);
private:
bool preFill_;
bool strobe_;
uint8_t wait_;
uint32_t colorMain_;
uint32_t colorHi_;
uint32_t colorLo_;
uint8_t wavesPerString_;
bool rainbowMain_;
uint32_t step_;
uint32_t step2_;
uint8_t pattern_;
bool graduated_;
};
#endif