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

Improvements for code understanding #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

armenta-angel
Copy link

Hello,
First of all thank you for your work. It works perfect!
I downloaded your program and it worked, but I had some difficult to understand it. So I decided to do some improvements for best code understanding. I choosed new variable names, made some comments on some parts of code that were not trivial... and also a correction in the calculation of the button 9 shift.
And... I've removed some parts specific to Craig B. Sorry but I think it have no sense. I have a Pro Micro and I use the same code as you and it works. I've also been checking the ATmega32U4 datasheet trying to understand the Craig B. variant and
I have concluded that he simply needed another button layout, perhaps because the wiring in the physical implementation was more comfortable, but I think that should be more in a fork or in a variant of the general code that I think should be the one that deals of using the digital inputs of the board. It's like my concrete variant for using only 2 buttons.

Improvements in commentaries
More comments in code.
Better choice for variable name.
Correction on button 9 shift when calculating the currentButtonState.
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

Successfully merging this pull request may close these issues.

1 participant