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

initialize all pins to known states on startup #17

Open
ejovrh opened this issue Jul 26, 2016 · 0 comments
Open

initialize all pins to known states on startup #17

ejovrh opened this issue Jul 26, 2016 · 0 comments
Assignees

Comments

@ejovrh
Copy link
Owner

ejovrh commented Jul 26, 2016

ATM the atmega2560 pins are in some obscure "default" initial state on startup (after setup() is complete).
for clarity's sake implement an initialization code block which shall set all pins and internal devices to known states:

  • pins to high impedance
  • turn off all needed devices
  • turn on only needed devices

the initialization shall be binary values for the appropriate registers; using Arduino libraries for this is not worth the time.
document each setting via references to the datasheet.

@ejovrh ejovrh self-assigned this Jul 26, 2016
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

1 participant