If your BSP is “mbed 2.9.2”
#define CHG P0_17
if your BSP is “non-mbed 1.1.1”
#define CHG (23)
Serial.println(digitalRead(CHG) ? “No charge” : “Charge”);
If your BSP is “mbed 2.9.2”
#define CHG P0_17
if your BSP is “non-mbed 1.1.1”
#define CHG (23)
Serial.println(digitalRead(CHG) ? “No charge” : “Charge”);