arduino icon indicating copy to clipboard operation
arduino copied to clipboard

output declaration not working?

Open johndavid400 opened this issue 13 years ago • 3 comments

first off, nice job putting this together... great idea.

Everything seems to work, except the LED's I plug into the output pins are extremely dim when turned On.... from past experience, I traced this back to the fact that each pin is not properly being declared as an OUTPUT in the setup. That is, each pin registers a signal as it should, but without enough current to do anything.

I am using the sample code from the example posted here... and simply changing the output from pin 13 to pin 12, yields the results mentioned above.

I verified this by manually declaring the output pins I intended to use in the Arduino.pde file setup() function, and then resumed the ruby code as normal and everything worked as it should (LED's very bright).

Can anyone shed some light into how the pins are declared? I would like to help fix this issue.

Thanks, JD

johndavid400 avatar Jun 07 '11 18:06 johndavid400

I'll look into this issue in a few hours. On road now.

HashNuke avatar Jun 07 '11 18:06 HashNuke

did you ever get to looking into this? i ran into the same problem but only just started with arduino so i don't quite get the setupPins function yet :)

bartj3 avatar Aug 31 '12 12:08 bartj3

johndavid you are a savior and a saint!

hdwatts avatar May 19 '16 23:05 hdwatts