Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

output declaration not working? #3

Open
johndavid400 opened this issue Jun 7, 2011 · 3 comments
Open

output declaration not working? #3

johndavid400 opened this issue Jun 7, 2011 · 3 comments

Comments

@johndavid400
Copy link

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

@HashNuke
Copy link
Owner

HashNuke commented Jun 7, 2011

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

@bartj3
Copy link

bartj3 commented Aug 31, 2012

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 :)

@hdwatts
Copy link

hdwatts commented May 19, 2016

johndavid you are a savior and a saint!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants