Output pin voltage

Hi, a newbie here. I have been trying the if/else control structure and when I digitalWrite a pin HIGH, it only goes from 0v to 1v, not 5v. Did I perhaps damage the ATMega chip on my UNO board? I have checked different pins and my code is working but I still only get 1v =( Thoughts??

Thanks

Have you declared a pin as output in setup (pinmode)?

Thanks, Magician,

DUH - had it declared as INPUT - changing it to OUTPUT gave me the 5v and my little if/else sketch is working fine - NOW :slight_smile: