I downloaded the IDE about a week ago and wrote a small program that controls the cooling fan speed for a RF power amplifier. I was looking to enhance the program and while poking around the Arduino site the following three issues showed up:
By accident, I found a page describing the difference between the “Processing” language and the “Arduino” language. What language am I programming in in the Arduino IDE? Whats the relationship between them and also with wiring?
I declare a bunch of initialized variables at the beginning of loop(). For instance boolean runningFast = false; or keylineState = NOT_TRANSMITTING. Are each of these variables re-initialized every time through? Putting them at global scope, (say, just above loop()) seems a little drastic, just to prevent re-initialization. Putting them in setup() makes the code harder to understand.
In the description of “Constants” in the language section on the web site there is a nice description of HIGH and LOW. But it doesn’t include their values. For a predicate like X != HIGH there’s no problem, but what about !HIGH or !LOW? Are HIGH and LOW aliases for boolean values?
Thanks in advance for any replies. They will help me get my feet an the ground with this new (to me) environment.