Folks,
Indulge me here. I am really seriously and honestly looking for help/assistance in .... undestanding things.
Disclaimer:
This isn't a go at anyone here or anywhere really. It is just a story of things which have sort of happened inspiring me to ask the question.
I am new to Arduino programming and the structure of the language. So I am really having trouble keeping it all together when writing programs/sketches.
So from my perspective, I can see a corralation between this and the other big program we are all writing/running:
LIFE{}
In the little time I have been playing with the Arduino, I have seen a few different styles of how to write programs. Sufice to say: The all "work"; as in: The program does what it is written to do.
So I guess from the outside, so long as it gets what is needed done, it doesn't matter HOW it does it - within reason ofcourse.
I used to be a fairly good typer. Though not the best at spelling, I could at least hit the keys for which I was aiming. Nowa days I am not doing that too well.
This has me wondering what is going on. Is it that I am doing something "wrong" causing this problem, or is it external?
To try and resolve this, I am trying different things to see what happens. Alas this causes just as many problems as I am trying to resolve.
(I'm now typing this in notepad because of this annoying screen jumping/jerking while I type)
So where am I going with this? I'm not really sure.
But in light of all this, I am trying to re-write a lot of my "life{}" stuff, but don't have the
slightest clue about the "structure" of things.
Becase the functions aren't exactly documented it is difficult to know how to write them, and their
"results" aren't always desireable.
I'm finding this is also with the routines/functions in the Arduino.
Strangly enough I have done one of these "Human factors" courses - for something else I do - which has
sort of thrown a whole lot of new things at me with which to deal:
Mistakes/errors.
They have these vogue names like LAPS, SLIP, MISTAKE and a couple of others I can't remember or find just now.
So if I am trying to write a function and am looking at the instructions "written in front of me" or
explained (sort of) to me by people here and I am not understanding a word of what is said:
Where is the problem? I'd guess it is "here" - with me. But I can't see anything I can "use" or
understand being given to me.
As much as I can see and read the words, that is about where it ends. They are JUST words.
It is like they are just jumbled on the page/screen and to everyone else they make sense, but not to me.
I don't think I am stupid, but it really "annoys" me that I am seeing these words and examples but can't
resolve how one leads to the next.
So back to the Arduino side of things:
All these lovely new commands to do all these things. Understandably there is a syntax to them, but I
just don't get it.
As I just said, I can have an idea, read about "how to do it" with the examples, but all I see is
"gobbldy gook" on the screen.
What can I do to remove this blockage allowing me to understand what I am seeing?
Just one quick example:
The other night I was frustrated as &^ because a simple digitalWrite(pin_number,HIGH) wasn't working.
I mentioned the specific pin and where I THOUGHT it was. Luckily someone pointed out I was looking at
THE WRONG PIN! So it works.
BUt how can I make such a SIMPLE MISTAKE?
I have the Arduino pinout sheet, but it would seem that it either isn't clear enough or it is confusing
to me.
Why the pin names are so "generic" that in one instance it is "analogue input 0" and another it is PIN 16
(for example.)?