|
|
|
@ -2821,7 +2821,7 @@ void start_ina219() {
|
|
|
|
pinMode(PI_3V3_PIN, INPUT);
|
|
|
|
pinMode(PI_3V3_PIN, INPUT);
|
|
|
|
// Serial.print("Pi 3.3V: ");
|
|
|
|
// Serial.print("Pi 3.3V: ");
|
|
|
|
// Serial.println(digitalRead(PI_3V3_PIN));
|
|
|
|
// Serial.println(digitalRead(PI_3V3_PIN));
|
|
|
|
/ if (digitalRead(PI_3V3_PIN) == LOW) {
|
|
|
|
if (digitalRead(PI_3V3_PIN) == LOW) {
|
|
|
|
// if (true) {
|
|
|
|
// if (true) {
|
|
|
|
Serial.println("Pi Zero not present, powering INA219s through 3.3V pin");
|
|
|
|
Serial.println("Pi Zero not present, powering INA219s through 3.3V pin");
|
|
|
|
pinMode(PI_3V3_PIN, OUTPUT);
|
|
|
|
pinMode(PI_3V3_PIN, OUTPUT);
|
|
|
|
|