Skip to content

Commit

Permalink
Put IMU on before using GNSS when sharing I2C port between IMU and GNSS
Browse files Browse the repository at this point in the history
  • Loading branch information
jerabaul29 committed Sep 16, 2024
1 parent 407cd59 commit 0369dee
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ void turn_gnss_on(void){
Serial.println(F("turn gnss on"));
turn_iridium_off();
delay(100);
turn_qwiic_switch_on();
delay(100);
pinMode(gnssEN, OUTPUT); // Configure the pin which enables power for the ZOE-M8Q GNSS
digitalWrite(gnssEN, LOW); // Enable GNSS power (HIGH = disable; LOW = enable)
delay(1000);
Expand All @@ -57,6 +59,8 @@ void turn_gnss_off(void){
digitalWrite(gnssEN, HIGH); // Disable GNSS power (HIGH = disable; LOW = enable)
delay(10);
pinMode(gnssEN, INPUT_PULLUP); // Configure the pin which enables power for the ZOE-M8Q GNSS
delay(100);
turn_qwiic_switch_off();
}

void turn_iridium_on(void){
Expand Down

0 comments on commit 0369dee

Please sign in to comment.