¿ªÔÆÌåÓý

Re: difficulties with raduino digital input pin A6


Jack Purdum
 

On line 102 you will find:

#define PTT (A6)

which defines a symbolic constant named PTT. Because pins are initialized (normally) in setup(), either gloabl-search on PTT or look in setup() to see how that pin is intialized. At lines 1042, you will find:

? pinMode(PTT, INPUT);
? digitalWrite(PTT, HIGH);

This says we are reading PTT (or A6) as an input pin, and it starts out in a HIGH (5V) state. Most digital I/O pins are that way. This means that pressing the switch tied to PTT pulls the line LOW. You can verify this by searching on PTT and observing how the pin is being used.

Jack, W8TEE



From: ON2AAV <on2aav@...>
To: [email protected]
Sent: Friday, April 28, 2017 7:45 AM
Subject: Re: [BITX20] difficulties with raduino digital input pin A6

Is it correct to say that A6 is PTT in the V1.08 sketch ,
So it should go high when ptt is pressed ?
73 luc ON2AAV


Join [email protected] to automatically receive all group messages.