The setup() function is called when a sketch starts. Use it to initialize variables, pin modes, start using libraries, etc. The setup() function will only run once, after each power-up or reset of the Maple board.
int buttonPin = 38;
void setup() {
pinMode(buttonPin, INPUT);
}
void loop() {
// ...
}
License and Attribution
Portions of this page were adapted from the Arduino Reference Documentation, which is released under a Creative Commons Attribution-ShareAlike 3.0 License.