Added coaxswitch via GPIO0 (XDRGTK)

Optimised XDRGTK parsing
Fix problem where PS/PTY/PI sometimes turned blue on correct RDS when switching from Adv. RDS to normal screen
This commit is contained in:
Sjef Verhoeven PE5PVB
2024-02-12 23:17:46 +01:00
parent 388231a4b4
commit 2a3e8d7197
7 changed files with 34 additions and 20 deletions
+8
View File
@@ -297,4 +297,12 @@ bool devTEF_Radio_Set_I2S_Input(bool mode) {
} else {
return devTEF_Set_Cmd(TEF_AUDIO, Cmd_Set_Input, 5, 0);
}
}
bool devTEF_Radio_Set_GPIO(uint8_t mode) {
if (mode == 0) return devTEF_Set_Cmd(TEF_APPL, Cmd_Set_GPIO, 9, 0, 33, 2);
if (mode == 1) return devTEF_Set_Cmd(TEF_APPL, Cmd_Set_GPIO, 9, 0, 33, 3);
if (mode == 2) return devTEF_Set_Cmd(TEF_APPL, Cmd_Set_GPIO, 9, 0, 32, 2);
if (mode == 3) return devTEF_Set_Cmd(TEF_APPL, Cmd_Set_GPIO, 9, 0, 32, 3);
}