Show Posts
Pages: [1] 2 3 ... 192
1  Using Arduino / Programming Questions / Re: Converting Long to int on: March 07, 2014, 10:06:42 am
A long is an integer.
No conversion necessary
2  Using Arduino / Programming Questions / Re: "ledring" controlled by potentiometer. Really need help with this. on: February 19, 2014, 06:40:06 am
Quote
but the speed of leds is not updating as you rotate the potentiomenter but instead is doing its loop then reinitiates a new loop with the new speed.
So move the pot read inside the loop.
3  Using Arduino / Programming Questions / Re: Is the Arduino compiler very bad at optimizing code ? on: February 19, 2014, 05:52:52 am
Quote
In general, with AVR processors, the two are the same.  Smaller code = faster cod
That's not necessarily the case; smaller code may have loops, and loops have overheads.
If you unroll the loops, you get larger, but quicker code.
4  Using Arduino / Programming Questions / Re: 2 Servo's sweep opposite directions via push button. on: February 13, 2014, 09:32:41 am
Quote
While I'm here. Here's a gift for you Groove:
http://m.dictionary.com/synonym/inquisitiveness
Gee, thanks for that.
FYI, I'm a native English speaker (the proper sort of English one speaks in England) and I'm aware what the word means.
Given the number of times the word occurs in this thread, I was expressing amazement your inquisitiveness wasn't piqued earlier.
5  Using Arduino / Programming Questions / Re: 2 Servo's sweep opposite directions via push button. on: February 13, 2014, 03:14:30 am
You can put a switch on whatever I/O pin you like, but you always need a resistor, either built-in or external.
6  Using Arduino / Programming Questions / Re: 2 Servo's sweep opposite directions via push button. on: February 13, 2014, 02:50:22 am
Quote
I have no idea what a "loop" is. Terminology is something I've dodged like crazy
Quote
i also don't expect my inquisitiveness to be mocked.
Inquisitiveness?

You're really saying that in the "hundreds of hours" of tutorials you watched, the concept of the loop never came up?

Edit: I hate to prick your bubble, but there's no such thing as "magic" - there's illusion and legerdemain, but no magic.
7  Using Arduino / Project Guidance / Re: How to move several servos at once? on: November 21, 2013, 07:20:26 am
Why do you think you can't move them at the same time?
Why not post your code?
8  Using Arduino / Programming Questions / Re: Reading in 3D Array via Serial on: November 15, 2013, 11:51:03 am
Your serial logic is incorrect - you check to see if you've got at least one character to read, then you launch into your for loop and read them all.
You could put the serial available at the innermost level and busy-wait it.

Or you could scrap the for loops and do the looping and indexing explicitly.
9  Using Arduino / Programming Questions / Re: Replace a certain caracter in the string? on: November 11, 2013, 03:00:21 am
Quote
be careful with strncpy, which doesn't add the NULL character
More importantly, be careful how you read the documentation for strncpy.
10  Using Arduino / Project Guidance / Re: Writing? on: November 10, 2013, 05:05:56 pm
You're absolutely right.
I've got over two and a half thousand posts and I JUST WANT MORE, so I pointed out what you want to do has already been promulgated, patented, marketed and sold.
Meanwhile, you posted a vague WIBNI with no detail whatsoever, and now you've increased your post count 300%.
Trust me, I've seen bigger ideas than this, and not been overwhelmed.
11  Using Arduino / Project Guidance / Re: Writing? on: November 10, 2013, 04:51:34 pm
Quote
I want to design my own,
OK, go ahead, I was just trying to advise you that there is prior art.
I was also  just wondering what the point of your post was.
12  Using Arduino / Project Guidance / Re: Writing? on: November 10, 2013, 04:41:59 pm
Didn't Nokia already do this with smart paper?
13  Using Arduino / Programming Questions / Re: void Setup runs more than once when using ARDOSC and a callback function on: November 10, 2013, 04:38:25 pm
How can you make a spelling mistake with cut and paste?
14  Using Arduino / Programming Questions / Re: void Setup runs more than once when using ARDOSC and a callback function on: November 10, 2013, 04:26:39 pm
Quote
I typed "setFader" but the function in the code I posted is just "fader"
I have no idea what you are talking about.
"aviable" != "available", which leads me to suspect that you're not actually posting your code, but rather what you imagine your code to be.
15  Using Arduino / Programming Questions / Re: void Setup runs more than once when using ARDOSC and a callback function on: November 10, 2013, 04:15:17 pm
You've just called what "fader"?
Pages: [1] 2 3 ... 192