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

Abstract calls to digitalWrite and pinMode from the outside "world" by making virtual protected methods #27

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

DrItanium
Copy link

After seeing the Adafruit RGBLCDShield I wanted to do the same thing over SPI (using an MCP23S17) but found that the LiquidCrystal library is written to favor code duplication over inheritance. After doing some experiments I found that only digitalWrite and pinMode need to become virtual inside the class. This change does not break the external interface nor internal design in any way.

@CLAassistant
Copy link

CLAassistant commented Apr 9, 2021

CLA assistant check
All committers have signed the CLA.

@per1234 per1234 added type: enhancement Proposed improvement topic: code Related to content of the project itself labels Apr 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: enhancement Proposed improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants