GlitchLib
The GlitchLib library contains basic resources for developing software for The Glitch. This library is part of the Resource Files. Follow the Install Libraries instruction to get GlitchLib installed into the Arduino environment.
Code Template
Most software written using GlitchLib should contain the following code:
#include <glitchlib.h>
#include <SD.h>
short selection = 0;
void setup() {
glitchSetLED();
glitchSetDIP(short & selection);
if (!glitchSetSD()) {
return;
}
}
Variables
The following are the variables in GlitchLib.
extern const short chipSelectSD
extern const short ledRed
extern const short ledYellow
extern const short ledGreen
extern const short DIP_1
extern const short DIP_2
extern const short DIP_3
extern const short DIP_4
extern const short DIP_5
Functions
The following are the functions in GlitchLib.
extern short glitchSetDIP(short & selection)
extern short glitchSetLED()
extern short glitchSetSD()