Update cubesatsim.ino

pull/161/head
alanbjohnston 3 years ago committed by GitHub
parent bd0f5fcf9d
commit 785c5bd498
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2201,6 +2201,7 @@ void start_ina219() {
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) {
Serial.println("Powering INA219s through 3.3V pin");
pinMode(PI_3V3_PIN, OUTPUT); pinMode(PI_3V3_PIN, OUTPUT);
digitalWrite(PI_3V3_PIN, HIGH); digitalWrite(PI_3V3_PIN, HIGH);
} else { } else {
@ -2208,7 +2209,7 @@ void start_ina219() {
pinMode(MAIN_INA219, OUTPUT); pinMode(MAIN_INA219, OUTPUT);
digitalWrite(MAIN_INA219, HIGH); digitalWrite(MAIN_INA219, HIGH);
} }
sleep(0.1);
ina219_1_0x40.begin(); ina219_1_0x40.begin();
ina219_1_0x41.begin(); ina219_1_0x41.begin();
ina219_1_0x44.begin(); ina219_1_0x44.begin();

Loading…
Cancel
Save

Powered by TurnKey Linux.