Show Posts
Pages: 1 ... 1127 1128 [1129] 1130 1131 ... 1907
16921  Using Arduino / Programming Questions / Re: HELP me saving the odometer reading into EEPROM on: March 06, 2012, 08:01:48 am
Quote
I am not able to understand much from the bitshift reference page
So try a union.
Or try this
16922  Using Arduino / Programming Questions / Re: Parse serial data on: March 06, 2012, 07:24:37 am
strstr?
16923  Using Arduino / Programming Questions / Re: Arduino Tvout on: March 06, 2012, 05:49:58 am
@TechOne: depends what standard the panel expects.
15-odd kHz PAL/NTSC/SECAM interlaced, or 31-odd kHz VGA non-interlaced.
16924  Using Arduino / Programming Questions / Re: void pointers * something on: March 06, 2012, 04:32:55 am
Code:
int* pint; pint=(int*)data; ++(*pint);
I really don't understand this style of coding - you've declared a variable, so why not save typing and screen space and initialise it at the same time?
Code:
int* pint=(int*)data;
++(*pint);

Quote
if so, it will not give equivalent result as above one.
I don't understand why you think that.
I think you may be confusing the value of a pointer and the value that it points to.
16925  Using Arduino / Programming Questions / Re: void pointers * something on: March 06, 2012, 04:08:32 am
Quote
*p++ = *q++;
Break it down:
1) Fetch what q points to (invisibly call it "temp").
2) Increment q
3) Assign "temp" to what p points to.
4) Increment p

Clearer?
16926  Using Arduino / Programming Questions / Re: Serial Communication on: March 05, 2012, 04:23:46 pm
Do you understand that what is output by Serial.print is NOT a "float", but an ASCII representation of a "float"?
Why are you avoiding answering the questions we are asking?
16927  Using Arduino / Installation & Troubleshooting / MOVED: Bug with Serial.print in the new arduino 1.0 on: March 05, 2012, 04:21:33 pm
This topic has been moved to Suggestions for the Arduino Project.

http://arduino.cc/forum/index.php?topic=95222.0
16928  Using Arduino / Programming Questions / Re: Serial Communication on: March 05, 2012, 04:07:24 pm
Read reply #41 again.
16929  Using Arduino / Programming Questions / Re: Serial Communication on: March 05, 2012, 04:02:27 pm
Quote
it should print 2.12 on LCD but it doesn't shows any thing
I didn't ask what it should print on the LCd, that's about page 20 in the book, and you're still somewhere in the table of contents.
I asked what is output by the serial print in the example I gave.
16930  Using Arduino / Programming Questions / Re: Serial Communication on: March 05, 2012, 03:52:47 pm
Imagine that "a" has the value 2.12.
You pass "a" to Serial.print.
How many characters does Serial.print output, and what are they?
16931  Using Arduino / Programming Questions / Re: interrupts question... on: March 05, 2012, 03:28:00 pm
Quote
Looks like AWOL got a promotion! Congratulations.
Well, after hearing of my elevation to Shannon membership, Her Majesty has been gracious enough to confer a dubbing.
Or did she say a drubbing?
16932  Using Arduino / Programming Questions / Re: Can you get at the return address from a C function? on: March 05, 2012, 02:30:39 pm
It used to be a question of taking the address of the first local variable and working back, but in these days of optimisers, I don't see that working.
16933  Using Arduino / Programming Questions / Re: Program slows down? on: March 05, 2012, 01:07:13 pm
I'm afraid that the Monte Carlo Method of software development has been largely discredited.
It probably compiles, but won't do what you want.
16934  Using Arduino / Installation & Troubleshooting / MOVED: Guidance needed.... Ethernet/Python/PC etc... on: March 05, 2012, 12:50:18 pm
This topic has been moved to Project Guidance.

http://arduino.cc/forum/index.php?topic=94862.0
16935  Using Arduino / Project Guidance / Re: wireless arduino on: March 05, 2012, 12:41:47 pm
That's not an upload error
Quote
sketch_mar05a.cpp:2:22: error: nRF24L01.h: No such file or directory sketch_mar05a.cpp:3:18: error: RF24.h: No such file or directory sketch_mar05a.cpp:4:20: error: printf.h: No such file or directory sketch_mar05a:11: error: 'RF24' does not name a type
And do you have all those files?
Pages: 1 ... 1127 1128 [1129] 1130 1131 ... 1907