Kinetic Sculpture  3.1
Software to Architecture for the Junior Kinetic Sculpture Project
 All Classes Files Functions Variables Macros Pages
Public Member Functions | List of all members
LEDStrip Class Reference

#include <LEDStrip.h>

Public Member Functions

 LEDStrip (byte red, byte green, byte blue)
 
void backlightStartTransition (byte red, byte green, byte blue, unsigned long transitionDurationMS)
 
void setColor (byte red, byte green, byte blue)
 
void randomColor ()
 

Detailed Description

Class to control the backlights on the Kinetic Sculpture

Written by Wade Varesio and Courtney McIntosh 05/13/2019

Constructor & Destructor Documentation

LEDStrip::LEDStrip ( byte  red,
byte  green,
byte  blue 
)
inline

LEDStrip Constructor

Constructs an LEDStrip object which is how the backlighting is controlled on the Kinetic Sculpture

Parameters
redthe pin that red LED is controlled through
greenthe pin that green LED is controlled through
bluethe pin that blue LED is controlled throughS

Member Function Documentation

void LEDStrip::backlightStartTransition ( byte  red,
byte  green,
byte  blue,
unsigned long  transitionDurationMS 
)
inline

Smoothly transitions colors to new colors over a given duration

Parameters
redthe new red value from 0-255
greenthe new green value from 0-255
bluethe new blue value from 0-255
transitionDurationMSamount of time (in MS) for the LEDStrip to transition between colors
void LEDStrip::setColor ( byte  red,
byte  green,
byte  blue 
)
inline

Change the color of the LEDStrip

Will change the color on the LEDStrip without delay or a smooth transition

Parameters
redthe red color value you want to change to from 0-255
greenthe green color value you want to change to from 0-255
bluethe blue color value you want to change to from 0-255
void LEDStrip::randomColor ( )
inline

Immediately set the LEDStrip to a random color based on the predetermined random algorithm


The documentation for this class was generated from the following file: