@@ -49,6 +49,7 @@ void loop() {
//Read the analog reading of both pins
voltageReading = analogRead(VOLTAGE_PIN);
currentReading = analogRead(CURRENT_PIN);
+ isCCMode = !digitalRead(CCCV_PIN);
//Convert them to actual voltage / current value
voltageReading = map(voltageReading, 0, 255, 0, 500) * 4; //30k - 10k voltage divider