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

Pins come up HIGH when set to OUTPUT #42

Open
robertinant opened this issue Jul 4, 2017 · 1 comment
Open

Pins come up HIGH when set to OUTPUT #42

robertinant opened this issue Jul 4, 2017 · 1 comment

Comments

@robertinant
Copy link
Member

Should pins start as low when set to OUTPUT with pinMode()? Check Arduino / Wiring spec and match msp430 code if different.

@fmilburn3
Copy link

I did a quick test with the Sparkfun Redboard that I have - an Uno derivative. Arduino sets the pins low as a default when a pin is made into an output which is different than Energia. If the Arduino is set low prior to being set as an output, e.g.
digitalWrite(7, LOW);
pinMode(7, OUTPUT);
as I did in the 43oh post it behaves very strangely on startup. The pins will will "pulse" several times before settling low. In other words, the "fix" I gave in the 43oh post is incompatible with an Arduino Uno.

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

No branches or pull requests

2 participants