packetint

Arduino-based soundcard interface for packet radio transmissions
git clone git://squid-tech.com/packetint.git
Log | Files | Refs | README

commit 687b2f6f0f903988af516a591a88e3cd399c3d35
parent e51a2f267232151ef9775bde5dcd3263a7504cf0
Author: joshiemoore <jxm5210@g.rit.edu>
Date:   Fri, 19 Jul 2019 09:56:51 -0400

Minor revisions

Diffstat:
Mpacket_interface.ino | 19+++++++++----------
1 file changed, 9 insertions(+), 10 deletions(-)

diff --git a/packet_interface.ino b/packet_interface.ino @@ -6,29 +6,28 @@ void setup() { pinMode(2, OUTPUT); // TX indicator - pinMode(3, OUTPUT); - - Serial.begin(9600); - + pinMode(1, OUTPUT); + // applying HIGH to PTT turns PTT off digitalWrite(2, HIGH); } void loop() { + // read voltage from TX line int tx_read = analogRead(A0); - Serial.println(tx_read); - if (tx_read < 469 || tx_read > 499) { // LOW == PTT on - digitalWrite(1, HIGH); digitalWrite(2, LOW); - digitalWrite(3, HIGH); + + // turn on TX indicator light + digitalWrite(1, HIGH); } else { // HIGH == PTT off - digitalWrite(1, LOW); digitalWrite(2, HIGH); - digitalWrite(3, LOW); + + // turn on TX indicator light + digitalWrite(1, LOW); } delay(100);