Xadow mainboard---infor on address and name for WAKE button

I wanted to make use of the WAKE Button on my Xadow main board to do task, but what is the address or the name of the wake button? where can I get the information?

example
if (WAKE=1)
{
task 1
}

Thanks alots
from SB

Maybe you can find something useful here,I hope this can help you~ :unamused:
seeedstudio.com/wiki/Xadow_Main_Board

:slight_smile: ,Can you try like this example ?you can get button state on the serial monitor.

// set pin numbers:
const int WAKE_Pin = 10; // the number of the pushbutton pin

// variables will change:
int buttonState = 1; // variable for reading the pushbutton status

void setup() {
pinMode(WAKE_Pin, INPUT);
Serial.begin(9600);
}

void loop(){
// read the state of the pushbutton value:
buttonState = digitalRead(WAKE_Pin);

// check if the pushbutton is pressed.
// if it is, the buttonState is LOW:
if (buttonState == LOW) {
Serial.println(“Button is pressed”);
}
else {
Serial.println(“Button isn’t pressed”);
}
delay(100);
}