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
This documentation page was adapted from the Arduino Reference Documentation, which is released under a Creative Commons Attribution-ShareAlike 3.0 License.