Skip to content

Conversation

@RREE
Copy link
Contributor

@RREE RREE commented May 8, 2022

This patch add simple text based LCDs based on the HD44780 driver. Almost all text LCD use this or a compatible driver module.

This first version uses a PCF8574 I/O expander via I²C. I can also add a 4bit implementation, but that requires 7 or 8 GPIOs of the controller. That's why I don't use it anymore.

As a prerequisite this patch requires the merge of the aforementioned PCF8574 pull request.

@RREE
Copy link
Contributor Author

RREE commented May 8, 2022

I created the branch in my copy of the ADL off the branch for the pcf8574. It seems that this pull request contains both the pcf8574 and the new LCD code

@RREE RREE marked this pull request as ready for review May 8, 2022 19:48
Copy link
Member

@Fabien-Chouteau Fabien-Chouteau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @RREE, thanks for the contribution.
Besides the header this looks good to me.

I guess I can close the other PR for the PCF8574.

@@ -0,0 +1,39 @@
--
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should use the same license notice header as the LCD_HD44780 packages.

@@ -0,0 +1,38 @@
--
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here.

@Fabien-Chouteau Fabien-Chouteau mentioned this pull request May 30, 2022
@RREE RREE requested a review from Fabien-Chouteau May 31, 2022 19:24
Copy link
Member

@Fabien-Chouteau Fabien-Chouteau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's an unreferenced with:

lcd_hd44780-pcf8574.ads:35:09: warning: unit "HAL.I2C" is not referenced 

You should run scripts/build_all_examples.py to check your patch.

@Fabien-Chouteau Fabien-Chouteau merged commit 791616a into AdaCore:master Jun 14, 2022
@Fabien-Chouteau
Copy link
Member

Thank you @RREE !

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