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

boards/raspberrypi-pico: Pico Display Pack (ST7789 LCD) support #3067

Merged
merged 2 commits into from Mar 16, 2021

Conversation

yunkya2
Copy link
Contributor

@yunkya2 yunkya2 commented Mar 15, 2021

Summary

  • Add Raspberry Pi Pico Display Pack (ST7789 LCD) support.
  • Modify ST7789 LCD driver to support X/Y offset and landscape configuration because Display Pack requires them.

Impact

ST7789 driver and Raspberry Pi Pico

Testing

Tested with config raspberrypi-pico:displaypack


int board_lcd_initialize(void)
{
g_spidev = rp2040_spibus_initialize(LCD_SPI_PORTNO);
Copy link
Contributor

Choose a reason for hiding this comment

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

LCD_SPI_PORTNO shouldn't be hardcoded, pass it as a function parameter!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for comment. There are some reasons for it.

  • board_lcd_initialize() is common function called from lcd_framebuffer.c and it is not designed to pass a parameter. Another existing lcd support code also takes similar way.
  • The "Pico Display Pack" designed for Raspberry Pi Pico has fixed pin layout. It can use only SPI ch 0.

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for comment. There are some reasons for it.

* board_lcd_initialize() is common function called from lcd_framebuffer.c and it is not designed to pass a parameter. Another existing lcd support code also takes similar way.

* The "Pico Display Pack" designed for Raspberry Pi Pico has fixed pin layout. It can use only SPI ch 0.

Ah ok! Thank you for this explanation!

@acassis acassis merged commit 5699dd8 into apache:master Mar 16, 2021
@yunkya2 yunkya2 deleted the rppico-display-pack branch March 16, 2021 11:28
@btashton btashton added this to To-Add in Release Notes - 10.1.0 Apr 12, 2021
@jerpelea jerpelea moved this from To-Add to boards in Release Notes - 10.1.0 Apr 13, 2021
@jerpelea jerpelea moved this from boards to Added in Release Notes - 10.1.0 Apr 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants