Show Posts
Pages: 1 [2] 3 4 ... 1853
16  Using Arduino / Programming Questions / Re: what does this statement mean? from virtualwire library on: July 26, 2014, 04:07:35 pm
Quote
Every one knows what "u" means
Imagine for a moment you're posting on an international forum, where for many of the posters, English is not a first language.
Oh, wait!  You don't have to imagine - you are posting on such a forum.

The name of the letter "u",  for instance, may not in some languages match the sound of the letter.
Like English, for example.
The "u" in "much" doesn't sound anything like "you", does it?
So, you're alienating some of your audience.
Your call.

Anyway, I'll say no more on the subject (another different sound for "u") and leave you to your pointer studies.
17  Using Arduino / Programming Questions / Re: what does this statement mean? from virtualwire library on: July 26, 2014, 03:48:19 pm
Quote
I am still not sure what u mean by the variable gets copied
For variable scope to work, you must take some form of a copy of variable when it is passed into a function.

The word is "you" - people are taking the time to answer your questions.
Please offer them the courtesy of writing like a grown-up.
18  Using Arduino / Programming Questions / Re: Set bits in a variable as output ports for serial connections on: July 26, 2014, 09:49:41 am
Code:
extern int data;
But why not pass it as a parameter?
19  Using Arduino / Installation & Troubleshooting / MOVED: raspi cannot read USB serial on: July 26, 2014, 09:37:10 am
This topic has been moved to Interfacing w/ Software on the Computer .
Can't see this is an installation issue
http://forum.arduino.cc/index.php?topic=257288.0
20  Using Arduino / Programming Questions / Re: Set bits in a variable as output ports for serial connections on: July 26, 2014, 09:35:19 am
Quote
Basically i copy the digitalwrite functions into a variable called data.
I don't understand
21  Using Arduino / Programming Questions / Re: Set bits in a variable as output ports for serial connections on: July 26, 2014, 08:09:12 am
Quote
Any advice regarding this issue?
Post code.
22  Using Arduino / Project Guidance / MOVED: Sample square wave frequency with Arduino Due on: July 26, 2014, 05:09:40 am
This topic has been moved to Arduino Due.

http://forum.arduino.cc/index.php?topic=257261.0
23  Using Arduino / Programming Questions / MOVED: Sending Multiple Bytes with SPI.Transfer using Arduino Due on: July 26, 2014, 05:08:47 am
This topic has been moved to Arduino Due.

http://forum.arduino.cc/index.php?topic=257260.0
24  Using Arduino / Programming Questions / Re: Set bits in a variable as output ports for serial connections on: July 26, 2014, 04:52:18 am
To keep the number of overloads of "print" to a reasonable number, "int"s are promoted to "long"s
25  Using Arduino / Programming Questions / Re: Buttons and Led's - Button switching too quickly on: July 26, 2014, 02:39:33 am
Code:
int buttonPress[16] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
 
long previousMillis[48] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
                           0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
                           0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,};
Isn't necessary.

Let the computer do the work -
Code:
int buttonPress [16];
unsigned long previousMillis[48];
is sufficient.
26  Using Arduino / Programming Questions / Re: Buttons and Led's - Button switching too quickly on: July 25, 2014, 06:12:50 pm
Code:
int buttonPress1 = 0, buttonPress2 = 0, buttonPress3 = 0, buttonPress4 = 0,
    buttonPress5 = 0, buttonPress6 = 0, buttonPress7 = 0, buttonPress8 = 0,
    buttonPress9 = 0, buttonPress10 = 0, buttonPress11 = 0, buttonPress12 = 0,
    buttonPress13 = 0, buttonPress14 = 0, buttonPress15 = 0, buttonPress16 = 0;
You are simultaneously over-thinking and under-thinking this.
You need an array.
You need to rely on crt0.
27  Using Arduino / Programming Questions / Re: Set bits in a variable as output ports for serial connections on: July 25, 2014, 06:06:41 pm
Quote
if it was with the PIC
binary arithmetic would be exactly the same
28  Using Arduino / Programming Questions / Re: Set bits in a variable as output ports for serial connections on: July 25, 2014, 05:51:06 pm
Aye, we never had ones. We 'ad to make 'em all by notting zeroes.
By 'and.
One at a time.

But, we were 'appy.
29  Using Arduino / Programming Questions / Re: Set bits in a variable as output ports for serial connections on: July 25, 2014, 05:45:45 pm
Quote
That is for wimps,

Psst, Mike, the politically-correct term is "beginner"
30  Using Arduino / Programming Questions / Re: Set bits in a variable as output ports for serial connections on: July 25, 2014, 05:36:52 pm
Have you considered bitWrite?
Pages: 1 [2] 3 4 ... 1853