From f0297e56bbee016a33841c8afdd9d8173fa8cb00 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Tue, 30 Mar 2021 12:23:21 -0400 Subject: [PATCH] added GPIO 13 Wiring Pi 23 check for VHF BPF --- afsk/main.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/afsk/main.c b/afsk/main.c index 7bbb728e..ef6d95d6 100644 --- a/afsk/main.c +++ b/afsk/main.c @@ -302,7 +302,21 @@ mode = AFSK; onLedOn = HIGH; onLedOff = LOW; transmit = TRUE; - } + } else { + pinMode(23, INPUT); + pullUpDnControl(23, PUD_UP); + + if (digitalRead(23) != HIGH) { + printf("vB5 Present with VHF BPF\n"); + txLed = 2; + txLedOn = HIGH; + txLedOff = LOW; + vB5 = TRUE; + onLed = 27; + onLedOn = HIGH; + onLedOff = LOW; + transmit = TRUE; + } } } }