Go Down

Topic: Multiple leds set; diff pins diff times, initial power up huge 13 brightness ... (Read 834 times) previous topic - next topic

stratovarius

... followed by correctly blinking lights but blinking way too dimmly.

Also can I plug a 9volt to VCC at the same time I'm usb'd to my laptop ?
Is there a default override where the laptop powers even though 9v is also plugged in or visa versa ?


I figure this sketch is wrong, and I need to do something in int pin, and maybe something about pin mode or the lights will
be dim, not sure.
Heres the sketch , works fine just way dim, I tried before writing multiple 'int' lines but they would never take, so
I tried this way instead. :shruggs:

As you can see I also left void setup blank though included it 'as empty'

void setup ()
{
 
 
}

void loop ()
{
  digitalWrite (13, HIGH);
  delay (300);
  digitalWrite (13, LOW);
  delay (300);
  digitalWrite (12,HIGH);
  delay (250) ;
  digitalWrite (12, LOW);
  delay (250);
}

larryd

You have to make the pin(s) outputs if you want to control them.
See pinMode
No technical PMs.
If you are asked a question, please respond with an answer.
If you are asked for more information, please supply it.
If you need clarification, ask for help.

runaway_pancake


As you can see I also left void setup blank though included it 'as empty'


Be glad that you didn't post this over in "Programming Questions"
"Who is like unto the beast? who is able to make war with him?"
When all else fails, check your wiring!

stratovarius

Could someone correct my sketch so I can see what changes I need to make ....
;shruggs:




runaway_pancake


Could someone correct my sketch so I can see what changes I need to make ....
;shruggs:


Code: [Select]

void setup ()
{
  pinMode(12, OUTPUT);
  pinMode(13, OUTPUT);
}


Please give the :shruggs: bit a rest.
"Who is like unto the beast? who is able to make war with him?"
When all else fails, check your wiring!

stratovarius


... followed by correctly blinking lights but blinking way too dimmly.

Also can I plug a 9volt to VCC at the same time I'm usb'd to my laptop ?
Is there a default override where the laptop powers even though 9v is also plugged in or visa versa ?


I figure this sketch is wrong, and I need to do something in int pin, and maybe something about pin mode or the lights will
be dim, not sure.
Heres the sketch , works fine just way dim, I tried before writing multiple 'int' lines but they would never take, so
I tried this way instead. :shruggs:

As you can see I also left void setup blank though included it 'as empty'

void setup ()
{
 
 
}

void loop ()
{
  digitalWrite (13, HIGH);
  delay (300);
  digitalWrite (13, LOW);
  delay (300);
  digitalWrite (12,HIGH);
  delay (250) ;
  digitalWrite (12, LOW);
  delay (250);
}




I thought this was the official arduino forum , a desitination for all things and questions related to programming and working with the arduino platform.
I'm looking for corrections to my program from someone that knows, not just someone that knows how to lob cheap insults.
:shruggs:


stratovarius


You have to make the pin(s) outputs if you want to control them.
See pinMode

I've been through 'pin mode' , could not get results.

Could you make corrections to my sketch so I can see the 'correct' way to get it done ?


Much apprecitated.

Go Up