Show Posts
Pages: 1 2 [3] 4 5 ... 1911
31  Using Arduino / Project Guidance / Re: Bit Shift Right Issues on: September 21, 2014, 11:02:27 am
Quote
bits = (bits << 31);          //100..00 (move to MSB)

These three lines can be shortened to

  unsigned long bits = 0x8000;
Very much a no cigar scenario.
32  Using Arduino / Programming Questions / Re: cannot connect between HC-06 and LM35 Temperature Sensor on: September 21, 2014, 10:45:51 am
Quote
. the Moderators could always just ignore the lack of code tags and see if the universe spins off its wheels
This particular reluctant moderator mostly does ignore lack of code tags, until the poster uses 'i' as an index . . .
(Or 'b', 's', 'u' . . .  you get my drift)

And then I go ape-sh*t.
33  Using Arduino / Project Guidance / Re: Throw Darts At High Velocity! on: September 21, 2014, 10:05:10 am
I like the sabot idea, but you'd have to be very careful to ensure a symmetrical separation.

( I think there was once a very similar Scrapheap Challenge solution,, but I can't quite recall the problem - repeating crossbow?)
34  Using Arduino / Programming Questions / Re: SOS using AnalogWrite on: September 21, 2014, 09:30:59 am
There aren't any (that was a clue) in the fragment I quoted.
I though that if I hovered near one curly bracket, it would show its mate.  It doesn't seem to do that
maybe you're not looking far enough away.
35  Using Arduino / Programming Questions / Re: SOS using AnalogWrite on: September 21, 2014, 09:23:37 am
Code:
for(int x=0;x<3;x++)
  analogWrite(Pin_LED_Red,250); // Mav intensity of red;
  analogWrite(Pin_LED_Green,125); // Half intensity of Green;
  analogWrite(Pin_LED_Blue,0); //No Blue because Red and Green make Orange
And check where you don't have them, but where you should.

36  Using Arduino / Programming Questions / Re: SOS using AnalogWrite on: September 21, 2014, 09:12:55 am
Wherever they appear; how else are you going to check them?
37  Using Arduino / Programming Questions / Re: SOS using AnalogWrite on: September 21, 2014, 09:04:16 am
Check your { and }
38  Using Arduino / Programming Questions / Re: c array as parameter on: September 21, 2014, 09:01:19 am
What speed is the serial port set to?
39  Using Arduino / Programming Questions / Re: c array as parameter on: September 21, 2014, 08:58:10 am
Quote
When the & operators are removed, the program doesn't execute
I won't go so far as to say that's impossible, but it's very, very unlikely.
40  Using Arduino / Programming Questions / Re: c array as parameter on: September 21, 2014, 08:46:03 am
Code:
Serial.println(parseNextSegment(&chars,19));
Lose the &
41  Using Arduino / Programming Questions / Re: Excessive use of IF statements on: September 21, 2014, 08:42:32 am
Now try this one

#define ASSERT(cond, text )if( (cond) ){printf( "assertion error line %d, file(%s)\n",__LINE__, __FILE__ );Serial.printf("\nASSERT error \nfunction %s parameter %i @line %i  file %s  time %s \n\0",text , cond, __LINE__,__FILE__ ,__TIME__);Serial.flush(); lcd.clear(); lcd.print(text);}

. . .

I was just being silly, now if you can show how to put stuff like that in program memory EASY way.
I'd be hugely impressed if you could show an easy way of keeping it out of program memory.  smiley-grin
42  Using Arduino / Programming Questions / Re: Simple calculations ; wrong Syntax or ... on: September 21, 2014, 02:41:44 am
Code:
val = int((random(maxval) / maxval) * 100);
Anything times zero is zero - that's not syntax, that's arithmetic.
43  Using Arduino / Programming Questions / Re: i want to know how to write this syntax on: September 20, 2014, 04:39:32 pm
Quote
i want to read its value as digitalRead but using avr code
Haven't you just answered your own question ?
44  Community / Bar Sport / Re: Scotland Reveals Currency Plan on: September 19, 2014, 03:27:54 pm
What??  No obstructionism?  That's un-American!
Imagine the shenanigans if the Texans ever held a referendum to exercise their option to secede from the Union.
At least the two sides in the Scottish campaign weren't heavily armed.
45  Community / Bar Sport / Re: Who hasn't accidentally touched a mains voltage once or twice? on: September 19, 2014, 03:16:08 pm
My grandfather was a telephone linesman until the mid-60s, and as a kid, I used to play with old relays, selectors and switches from exchanges.
Nearly twenty years later, I was amazed to see the same stuff still in use (although very much on the way out), and line meters still being "read" by being photographed en masse.
Pages: 1 2 [3] 4 5 ... 1911