esp-rs / esp-hal

no_std Hardware Abstraction Layers for ESP32 microcontrollers
https://docs.esp-rs.org/esp-hal/
Apache License 2.0
751 stars 208 forks source link

RGB Interface Support for esp32-s3 #2081

Open jacobzlogar opened 2 months ago

jacobzlogar commented 2 months ago

I would like to get an idea of what's needed to implement a RGB interface for the LCD_CAM module, i was told by @Dominaezzz that the DMA api's aren't currently powerful enough to support RGB mode. For context i'm attempting to use a qualia esp32s3 board from adafruit that uses a RGB TTL connector

Dominaezzz commented 2 months ago

Long story short, all the options available in https://docs.espressif.com/projects/esp-idf/en/release-v5.3/esp32s3/api-reference/peripherals/lcd/rgb_lcd.html should be supported by the hal. Either by having the implementation here or providing APIs for users to DIY it. (I much prefer the latter).

Dominaezzz commented 2 months ago

We also need one of the maintainers to have a devkit that can run an example with it, like ESP32-S3-LCD-EV-Board.

Any of these kits also work (in order of preference, the Elecrow ones are annoying to iterate on).

Dominaezzz commented 1 month ago

Now that #2242 (with the DMA buffer view feature) has landed, I can submit a PR for this. All the (non PSRAM related) features needed for a decent no_std version of esp_lcd can now be implemented outside of esp-hal. The XIP from PSRAM feature is still an important piece of the puzzle but that doesn't have to block the initial driver.