pull/182/head
alanbjohnston 4 years ago committed by GitHub
parent c9892e776b
commit 8f4470d9e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2806,7 +2806,9 @@ void led_set(int ledPin, bool state)
}
void start_ina219() {
//#define PI_3V3_PIN 9 // for v0.1 hardware
//#define PI_3V3_PIN 9 // for v0.1 hardware
Serial.println("Starting INA219");
Serial.println(PI_3V3_PIN);
ina219_started = true;
// check if Pi is present by 3.3V voltage
pinMode(PI_3V3_PIN, INPUT);
@ -3295,8 +3297,8 @@ void config_gpio() {
// Serial.println(digitalRead(SQUELCH));
Serial.print("Pi 3.3V: ");
Serial.println(digitalRead(PI_3V3_PIN));
// Serial.print("Pi 3.3V: ");
// Serial.println(digitalRead(PI_3V3_PIN));
// set anlog inputs and read
Serial.print("Diode voltage (temperature): ");

Loading…
Cancel
Save

Powered by TurnKey Linux.