Show Posts
Pages: 1 ... 1127 1128 [1129] 1130 1131 ... 1894
16921  Using Arduino / Programming Questions / Re: char msg[] versus const char text[] on: February 22, 2012, 05:57:14 am
Code:
      HT1632.drawText(msg[z], x, y, FONT_5X7, FONT_5X7_W, FONT_5X7_H, FONT_5X7_STEP);
16922  Using Arduino / Programming Questions / Re: Array of Char Arrays Question on: February 22, 2012, 05:16:46 am
OK, then convert the RTC's output to Unix time or something similar - a 32 bit number of seconds since 1970 (or whatever datum you choose) is a lot more compact than a string.
16923  Using Arduino / Programming Questions / Re: Array of Char Arrays Question on: February 22, 2012, 05:11:18 am
Think about what you're doing; the pointers in the array points to the same bit of memory every time.
If you want to save different times, I'd just use the "millis" value stored in a 32 bit unsigned long, or similar.
16924  Using Arduino / Programming Questions / Re: Arduino DC Motor Degrees direction on: February 22, 2012, 03:20:01 am
Why not tell us what you want to do, rather than how you think you should do it?
16925  Using Arduino / Programming Questions / Re: A little something I would like to share. on: February 22, 2012, 02:53:26 am
Or you could use the "0b" notation.
16926  Community / Bar Sport / Re: Please remove my name from your board! on: February 22, 2012, 01:41:48 am
@justjed
Thanks for the explanation of how to ban a member, but did you read the title of the thread?
How are we going to remove this members name if we don't remove (or edit) posts?
16927  Using Arduino / Programming Questions / Re: So i'm programming a robot... on: February 21, 2012, 05:21:56 pm
Code:
if (Lsensor == HIGH)  back_turn_right();
 else if (Rsensor == HIGH)  back_turn_left();
Please, don't confuse the pin number with the value read from that pin.
16928  Using Arduino / Programming Questions / Re: whats wrong on: February 21, 2012, 05:13:34 pm
TECman, please stop the knee-jerk posts.
The compilation error is an obvious missing brace (probably two) at the end of setup.
The board type, IDE etc is immaterial.

@OP braces {} have to match.
I don't know where readADC comes from.
16929  Using Arduino / Project Guidance / MOVED: Project Help on: February 21, 2012, 05:09:16 pm
This topic has been moved to Gigs and Collaborations.

http://arduino.cc/forum/index.php?topic=93131.0
16930  Using Arduino / Programming Questions / Re: Bit-counting, how the divide a sum into it's components on: February 21, 2012, 05:03:23 pm
bitRead and a for loop
16931  Using Arduino / Programming Questions / Re: Motor Not running on: February 21, 2012, 04:54:20 pm
Oh <insert deity of your choice here>, finally



16932  Community / Gigs and Collaborations / Re: Project Help on: February 21, 2012, 04:36:27 pm
Quote
So please bare with me.
Never on a first date.
16933  Using Arduino / Programming Questions / Re: Motor Not running on: February 21, 2012, 04:25:11 pm
Quote
i think it has the problem
I work on embedded processors many, many times more powerful than the Arduino, with thousands of times more memory, and dozens of separate peripherals and subsystems.
They're about the size of a credit card or smaller.
The code runs to hundreds of thousands, if not millions of lines of C, C++ and assembler (don't worry, I didn't write all of them).

Do I have an exotic JTAG debugger?
No.
I have debug prints.

I don't "think" my code has problems - I find out.
16934  Using Arduino / Programming Questions / Re: Motor Not running on: February 21, 2012, 04:14:56 pm
What have you done to help yourself since your last post?

Here's the seed of a useful technique.
It isn't complete, but the thought's there.
Code:
#define DEBUG

#ifdef DEBUG
  #define DEBUGPRINT(x) Serial.print(x)
  #define DEBUGPRINTLN(x) Serial.println(x)
#else
  #define DEBUGPRINT(x)
  #define DEBUGPRINTLN(x)
#endif

16935  Using Arduino / Programming Questions / Re: Motor Not running on: February 21, 2012, 03:50:46 pm
Quote
AWOL must have the patience of a saint
It says St Michael on my underpants, but I'm no saint.
Pages: 1 ... 1127 1128 [1129] 1130 1131 ... 1894