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

Use unsigned 8bit instead of signed 16bit integers #25

Merged
merged 1 commit into from
May 28, 2022

Conversation

markisch
Copy link
Contributor

All function parameters need to be positive and 8bit only. So using uint8_t
instead of signed 16bit integers not only makes the code and memory size
smaller, but also is in line with the original LiquidCrystal library.

@mathertel
Copy link
Owner

However the 8bit code makes the resulting codfe bigger and slower on modern cpu architectures.
In general compatibility is a good goal.

@mathertel
Copy link
Owner

you requests for multiple pull requests resulting in some conflicts now. Please resolve...

@mathertel
Copy link
Owner

Can you also please add some documentation to the readem file

All function parameters need to be positive and 8bit only. So using uint8_t
instead of signed 16bit integers not only makes the code and memory size
smaller on 9bit platforms, but also is in line with the original
LiquidCrystal library.
@mathertel mathertel merged commit 7d4cfb1 into mathertel:master May 28, 2022
@mathertel
Copy link
Owner

Thanks, I will test more next days.

@markisch markisch deleted the fix-int-size branch May 30, 2022 17:30
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.

2 participants