开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

Re: Bitx-40 S meter


Jack Purdum
 

Every Arduino program must have a?setup() and loop() function. The?setup() function?is used to set the environment in which the program runs. It only runs one time when the program first begins to run. When your code in setup() finishes execution, program control immediate begins to execute the code you wrote for the loop() function. The code in the loop() function runs until: 1) power is removed, 2) your perform a reset, or 3) there is some kind of component or other failure.

Functions you write are called as part of the loop() function. The exception are Interrupt Service Routines which get called as needed, depending upon how you set them up.?

If all of this seems strange to you, print out the Raduino code, look for setup() and loop(), and see if you can follow what's going on. If you have your ham license and can still fog a mirror, I know you can learn to program an Arduino. It just takes a little time and practice.

Jack, W8TEE



From: Mark via Groups.Io <mark2w0jmk@...>
To: [email protected]
Sent: Sunday, April 9, 2017 3:51 PM
Subject: Re: [BITX20] Bitx-40 S meter

Thank you Jack but that went right over my head.
I did try to add
pinMode(A2, INPUT);
To where I thought was the setup but had a load of errors straight away.
Like I said I'm not one for this programming lark.



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