Go Down

Topic: Arduino " pin13" problem... (Read 898 times) previous topic - next topic

ebox

My Arduino UNO lights pin 13(LED) but very LOW....


any comment... :exclamation

ebox



problem fixed.. [smiley=cheesy.gif]

Senso

And what was the solution?
Maybe the problem was setting it as an input with nothing connected...

ebox

PWM  I dont know if this is normal.. but
mi pin 13 (LED) dims very low.. so I guess well ill just

analogWrite(13,255);
....
....

(Again mi question is: is this normal?)

mowcius

Did you define pin 13 as an output in code?

Mowcius

ebox

YOU WHERE RIGHT....(i feel soo embaresd) :-[

Senso

Pin 13 doesnt have pwm capabilities...

westfw

Quote
Pin 13 doesnt have pwm capabilities...

Ah, but it's a little known bit of trivia that analogWrite() will work on non-pwm pins (for somewhat relaxed definitions of "work."  It will write a HIGH for values of 128 and higher, and a LOW otherwise.)

I thought it was a particular clever solution for not having digitalWrite() work, BTW.  Thinking outside the box and all that.

Go Up