We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f00371c commit 98694abCopy full SHA for 98694ab
variants/tamc_termod_s3/variant.cpp
@@ -15,7 +15,6 @@ float getBatteryCapacity() {
15
}
16
17
bool getChargingState() {
18
- pinMode(CHG, INPUT_PULLUP);
19
return !digitalRead(CHG);
20
21
@@ -33,6 +32,7 @@ void ARDUINO_ISR_ATTR chargeIsr() {
33
32
34
35
extern "C" void initVariant(void){
+ pinMode(CHG, INPUT_PULLUP);
36
attachInterrupt(CHG, chargeIsr, CHANGE);
37
analogReadResolution(12);
38
0 commit comments