check for Pi Zero back in

pico-v0.36-detect-pi
alanbjohnston 3 years ago committed by GitHub
parent 7d7a7b38bf
commit 8b7a7b5fb7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save

Powered by TurnKey Linux.