Lcd oop extensions #87
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This Version of the Liquid Crystal Library can be inherited from other classes.
A possible usage is outlined in http://github.com/manfredjonsson/LiquidCrystalAddons
Because of the many changes, each commit contains one step of the improvements.
Commit 1: Fixes
...DISABLE instead.
Use the name "row" instead of "line" in all places to have a consistent
wording.
initialized in a global constructor (Some versions of the Wire (I2C)
library don't work when their begin() method is called inside a constructor
of a global object).
Commit 2: Minimal set of changes for inheritance
derived class.
Commit 3: Make it smaller
one writebits() function instead of two. Pay attention to the fact that
pinMode is still in writebits(), this slows down each write to the LCD but
code is smaller compared to an additional initialization loop.
for 4 bit writes. Leads to an almost identical initialization for 4 and 8
bit mode.
a loop instead of three distinct calls to writebits().