“XIAO nRF52840 BLE” but without the “Sense” I tried to use “Serial.println(digitalRead(CHG) ? “No charge” : “Charge”);” with the “#define CHG P0_17” on top but I got an error : “stray ‘\342’ in program”
EDIT: I succeed, just wrote #define CHG P0_17 &
Serial.println(digitalRead(CHG)); and it worked!
Thanks alot!!!