Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

35 lines (27 sloc) 0.854 kb
/*
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
and Adafruit
See README for complete attributions.
*/
#ifndef INCLUDE_G35_PROGRAMS_LEDStrip_RAINBOW_H
#define INCLUDE_G35_PROGRAMS_LEDStrip_RAINBOW_H
#include <LEDStripLightProgram.h>
class LEDStripRainbow : public LEDStripLightProgram
{
public:
LEDStripRainbow(LEDStripG35& g35, uint8_t pattern);
uint32_t Do();
uint32_t Wheel(uint16_t WheelPos);
uint32_t LineRG(uint16_t WheelPos);
uint32_t LineGB(uint16_t WheelPos);
uint32_t LineBR(uint16_t WheelPos);
private:
uint8_t wait_;
uint8_t pattern_;
uint16_t step_;
};
#endif
Jump to Line
Something went wrong with that request. Please try again.