Constants

Below is a list of Little Robot Friends constant values that can be assigned.

LRFColor

Constant Value
LRFColor_Clear LEDs off (no color)
LRFColor_Red Red
LRFColor_Green Green
LRFColor_Blue Blue
LRFColor_Orange Orange
LRFColor_Cyan Cyan
LRFColor_Purple Purple
LRFColor_Yellow Yellow
LRFColor_Pink Pink
LRFColor_White White


LRFTransform

Constant Value
LRFTransform_None Default. Fade from ColorA to ColorB.
LRFTransform_Boomerang Fade from ColorA to ColorB and back again.
LRFTransform_ZigZag ColorA on one eye, ColorB on the other and they crossfade.
LRFTransform_Flat Removes the default fade.
LRFTransform_Flip Swaps ColorA and ColorB after the pattern is complete.
LRFTransform_Random Assigns "random" colors to each eye and uses a random transform.

LRFNote

Constant Value
LRFNote_A A (55 hertz at octave #1)
LRFNote_AS A# (58hz)
LRFNote_B B (62hz)
LRFNote_C C (65hz)
LRFNote_CS C# (69hz)
LRFNote_D D (73hz)
LRFNote_DS D# (78hz)
LRFNote_E E (82hz)
LRFNote_F F (87hz)
LRFNote_FS F# (92hz)
LRFNote_G G (98hz)
LRFNote_GS G# (104hz)
LRFNote_Mute No Sound
LRFNote_NULL NULL


LRFOctave

Constant Value
LRFOctave_1 lowest possible octave (some notes are unplayable)
LRFOctave_2 lower octave
LRFOctave_3 middle-low octave
LRFOctave_4 middle octave
LRFOctave_5 middle-high octave
LRFOctave_6 high octave
LRFOctave_7 higher octave
LRFOctave_8 highest possible octave


LRFIntonation

Constant Value
LRFIntonation_Flat Flat tone (no change)
LRFIntonation_Rising Rising tone (happy or excited)
LRFIntonation_Falling Falling tone (sad or upset)
LRFIntonation_Peaking Peaking tone (tone rises, then returns to normal)
LRFIntonation_Dipping Dipping tone (tone dips, then returns to normal)


LRFDuration

Constant Value
LRFDuration_None 0ms (No Duration)
LRFDuration_Short 50ms (1/16 note)
LRFDuration_DoubleShort 100ms (1/8 note)
LRFDuration_Medium 200ms (1/4 note)
LRFDuration_DoubleMedium 400ms (1/2 note)
LRFDuration_Long 800ms (whole note)
LRFDuration_DoubleLong 1600ms (double whole note)
LRFDuration_VeryLong 3200ms (quadruple whole note)