void setColor(color);
// sets all 6 pixels on all faces to the same color
void setFaceColor(face, color);
// sets a single pixel on a face to this color
Color makeColorRGB(red, green, blue);
// R, G, and B values [0-255]
Color makeColorHSB(hue, saturation, brightness);
// H, S, and V values [0-255]
Color dim(color, value);
// returns the color passed in a dimmer state (31 levels of brightness)
#define RED Â Â makeColorRGB(255, Â 0, Â 0)
#define ORANGE Â makeColorRGB(255, 127, Â 0)
#define YELLOW Â makeColorRGB(255, 255, Â 0)
#define GREEN Â makeColorRGB( Â 0, 255, Â 0)
#define CYAN Â Â makeColorRGB( Â 0, 255, 255)
#define BLUE Â Â makeColorRGB( Â 0, Â Â , 255)
#define MAGENTA makeColorRGB(255, Â 0, 255)
#define WHITE Â makeColorRGB(255, 255, 255)
#define OFF Â Â makeColorRGB( Â 0, Â 0, Â 0)
/*
 *  All button handling is done with flags, so when you call a function,Â
 *  it returns the value of the flag (i.e. whether or not that actionÂ
 *  has occured) and only when you have called the function will it resetÂ
 *  the flag to false
 */
bool buttonPressed();
// a flag is set to true on the change from button up to button down
// buttonPressed() returns that flag and sets it back to false
bool buttonReleased();
// a flag is set to true on the change from button down to button up
// buttonReleased() returns that flag and sets it back to false
bool buttonSingleClicked();
// a flag is set to true when the the button goes from down to up
// only once in under 330ms. The flag is set exactly 330ms after the button is up
// buttonSingleClicked() returns that flag and sets it back to false
Display
void setColor(color);
// sets all 6 pixels on all faces to the same color
void setFaceColor(face, color);
// sets a single pixel on a face to this color
Colors
Color makeColorRGB(red, green, blue);
// R, G, and B values [0-255]
Color makeColorHSB(hue, saturation, brightness);
// H, S, and V values [0-255]
Color dim(color, value);
// returns the color passed in a dimmer state (31 levels of brightness)
#define RED Â Â makeColorRGB(255, Â 0, Â 0)
#define ORANGE Â makeColorRGB(255, 127, Â 0)
#define YELLOW Â makeColorRGB(255, 255, Â 0)
#define GREEN Â makeColorRGB( Â 0, 255, Â 0)
#define CYAN Â Â makeColorRGB( Â 0, 255, 255)
#define BLUE Â Â makeColorRGB( Â 0, Â Â , 255)
#define MAGENTA makeColorRGB(255, Â 0, 255)
#define WHITE Â makeColorRGB(255, 255, 255)
#define OFF Â Â makeColorRGB( Â 0, Â 0, Â 0)
Button
/*
 *  All button handling is done with flags, so when you call a function,Â
 *  it returns the value of the flag (i.e. whether or not that actionÂ
 *  has occured) and only when you have called the function will it resetÂ
 *  the flag to false
 */
bool buttonPressed();
// a flag is set to true on the change from button up to button down
// buttonPressed() returns that flag and sets it back to false
bool buttonReleased();
// a flag is set to true on the change from button down to button up
// buttonReleased() returns that flag and sets it back to false
bool buttonSingleClicked();
// a flag is set to true when the the button goes from down to up
// only once in under 330ms. The flag is set exactly 330ms after the button is up
// buttonSingleClicked() returns that flag and sets it back to false