force INA219 powering up

pico-v0.15
alanbjohnston 3 years ago committed by GitHub
parent de9deceddd
commit 6c3a06d5bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save

Powered by TurnKey Linux.