Resources for Blinks developers
Blinks API Reference - full API reference
API Source Code - absolute truth - (would I lie about something like that?)
setColor(color)
setFaceColor(face, color)
makeColorRGB(red, green, blue) - values[0-255]
makeColorHSB(hue, saturation, brightness) - values[0-255]
dim(color, value) - values[0-255]
#RED
#ORANGE
#YELLOW
#GREEN
#CYAN
#BLUE
#MAGENTA
#WHITE
#OFF
buttonPressed()
buttonReleased()
buttonSingleClicked()
buttonDoubleClicked()
buttonMultiClicked()
buttonClickCount()
buttonLongPressed()
buttonDown()
setValueSentOnAllFaces(value)
setValueSentOnFace(value, face);
getLastValueReceivedOnFace(face);
isValueReceivedOnFaceExpired(face);
didValueOnFaceChange(face);
isAlone();
millis() - monotically incrementing timer
Timer.set(duration)
Timer.isExpired()
byte
word
int
long
float
double
bool
Color
Timer
*FOREACH_FACE(f) { }
*COUNT_OF(array);
*FACE_COUNT 6
*define MAX_BRIGHTNESS
– the asterisk signals that this function is syntactic sugar… i.e. you can get the same information by means of the functions included, but it is such a common occurrence that we include it for everyone’s benefit.
Metronome.start(period)
Metronome.stop()
Metronome.didTick()
Metronome.getPhase()
Step.next()
Step.getHighestSeen()
*Step.didStep() - returns number of times stepped… since