-
Notifications
You must be signed in to change notification settings - Fork 607
Add AIP31068 LCD binding with contrast control, sample, and docs #2434
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, looks good overall!
|
||
private void InitializeController() | ||
{ | ||
EnterExtendedInstructionSet(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you point where in the documentation this can be found? Will make it easier for maintenance. Including the delay. Thanks!
private void SendContrastCommands() | ||
{ | ||
SendCommandAndWait((byte)(ContrastSetCommand | (_contrast & 0x0F))); | ||
byte value = (byte)(PowerIconContrastCommand |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here, a pointer on the doc for maintenance would definitely help!
``` | ||
|
||
AIP31068 based LCDs expose the same HD44780 compatible instruction set but require an extended | ||
initialization sequence. The <code>Aip31068Lcd</code> binding performs the necessary configuration and allows |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
initialization sequence. The <code>Aip31068Lcd</code> binding performs the necessary configuration and allows | |
initialization sequence. The `Aip31068Lcd` binding performs the necessary configuration and allows |
azp /run |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Summary
Aip31068Lcd
for AIP31068-based HD44780-compatible LCDs with integrated I2C, including adjustable contrast, icon display, and booster control.Details
src/devices/CharacterLcd/Aip31068Lcd.cs
Contrast
(0–63),IconDisplayEnabled
,BoosterEnabled
.src/devices/CharacterLcd/samples/Aip31068Sample.cs
(interactive: +/- to change contrast, B for booster, I for icons)src/devices/CharacterLcd/samples/Program.cs
addsUsingAip31068Lcd()
hooksrc/devices/CharacterLcd/README.md
adds usage snippet and device notessrc/devices/CharacterLcd/CharacterLcd.csproj
includes the new fileUsage
Testing
Notes
Related
Microsoft Reviewers: Open in CodeFlow