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

esp_lcd set contrast function (IDFGH-14218) #15015

Open
mutatrum opened this issue Dec 10, 2024 · 1 comment
Open

esp_lcd set contrast function (IDFGH-14218) #15015

mutatrum opened this issue Dec 10, 2024 · 1 comment
Labels
Status: Opened Issue is new Type: Feature Request Feature request for IDF

Comments

@mutatrum
Copy link

Is your feature request related to a problem?

The SSD1306 and SH1106 displays have a contrast command (0x81), which is currently not exposed through esp_lcd_panel_ops. Other panels probably have similar contrast settings.

Describe the solution you'd like.

Addition of a esp_lcd_panel_contrast function to set the contrast.

Describe alternatives you've considered.

Directly executing the command:

#define SSD1306_CMD_CONTRAST 0x81
ESP_ERROR_CHECK_WITHOUT_ABORT(esp_lcd_panel_io_tx_param(io_handle, SSD1306_CMD_CONTRAST, (uint8_t[]) { 0x80 }, 1));

which is not very nice.

Additional context.

No response

@mutatrum mutatrum added the Type: Feature Request Feature request for IDF label Dec 10, 2024
@github-actions github-actions bot changed the title esp_lcd set contrast function esp_lcd set contrast function (IDFGH-14218) Dec 10, 2024
@espressif-bot espressif-bot added the Status: Opened Issue is new label Dec 10, 2024
@suda-morris
Copy link
Collaborator

Thanks @mutatrum for the suggestion, we may consider this feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Opened Issue is new Type: Feature Request Feature request for IDF
Projects
None yet
Development

No branches or pull requests

3 participants