7/23/22, 9:39 PM
Seeeduino XIAO Expansion board - Seeed Wiki
https://wiki.seeedstudio.com/Seeeduino-XIAO-Expansion-Board/
13/66
Step 1
. Install the Seeeduino XIAO on the Expansion board then
conect the Type-C cable.
Step 2
. Open Arduino IDE, Copy the code and stick on the Ardiono
IDE then upload it.
Code
1
const int
buttonPin =
1
;
// the number of the pushbut
2
int
buttonState =
0
;
// variable for reading the
3
4
void
setup
() {
5
// initialize the LED pin as an output:
6
pinMode(LED_BUILTIN, OUTPUT);
7
// initialize the pushbutton pin as an input:
8
pinMode(buttonPin, INPUT_PULLUP);
9
10
}
11
12
void
loop
() {
13
// read the state of the pushbutton value:
14
buttonState = digitalRead(buttonPin);