fixed 3.3V Pi Zero detection

pico-v0.1
alanbjohnston 4 years ago committed by GitHub
parent d29297e298
commit 35be0edc29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -64,7 +64,7 @@ void setup() {
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) == HIGH) {
Serial.print("Pi Zero present, so running Payload OK code instead of CubeSatSim code.");
start_payload();
while(true) {

Loading…
Cancel
Save

Powered by TurnKey Linux.