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

Please add API to turn the backlight off/on- save energy #14

Open
sglebs opened this issue Jul 13, 2020 · 7 comments
Open

Please add API to turn the backlight off/on- save energy #14

sglebs opened this issue Jul 13, 2020 · 7 comments
Assignees
Labels
Grove_LCD_RGB_Backlight Label for Grove_LCD_RGB_Backlight UAY Unassigned yet

Comments

@sglebs
Copy link

sglebs commented Jul 13, 2020

Is it possible to add this API? Unfortunately setReg is private, but I think it would be something like:

void lcd_backlight_off() {
  lcd.setReg(0x07, 0x0);
  lcd.setReg(0x06, 0x0);
}

void lcd_backlight_on() {
  lcd.setReg(0x07, 0x0);
  lcd.setReg(0x06, 0xff); 
}
@rgerhards
Copy link

@sglebs I need this functionality as well, but can't get your code to work. I also do not find a reference on the registers and there control values -- do you have a link?

@sglebs
Copy link
Author

sglebs commented Dec 22, 2020

Hi @rgerhards. I believe the implementation can be done inspired by this:

https://github.com/Seeed-Studio/Grove_LCD_RGB_Backlight/blob/master/rgb_lcd.cpp#L220

Register 06 seems to be the intensity. 0x0 probably means "all turned off". Try a fork, add the APIs to the .cpp and give that a try. Maybe it will work. I switched to an OLED display for my toy project.

@rgerhards
Copy link

Actually I added the code to my local version and it did not work at all. Thus I asked. It's always bad if you do not have a spec.

Anyways, thx for the answer and taken the time to look at this in the first place. Good luck with your project.

@sglebs
Copy link
Author

sglebs commented Dec 23, 2020

Does the original API of blinking the background work at all? If it doesn't, then that would be the root cause. If it does work, try changing the 0x0 to 0x7F (like the original API) and decrease it (trial and error) to smaller values, to see if you can at least get it to work wasting as little energy as possible. Something as close to 0x0 ideally. Just an idea.

@MatthewJeffson MatthewJeffson added UAY Unassigned yet Grove_LCD_RGB_Backlight Label for Grove_LCD_RGB_Backlight labels Oct 9, 2024
@Lesords Lesords self-assigned this Oct 14, 2024
@Lesords Lesords assigned ackPeng and unassigned Lesords Oct 16, 2024
@ackPeng
Copy link

ackPeng commented Oct 18, 2024

@rgerhards @sglebs Have you solved this problem?

@rgerhards
Copy link

IIRC did no longer pursue this effort.

Copy link

github-actions bot commented Jan 8, 2025

This issue is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added Stale and removed Stale labels Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Grove_LCD_RGB_Backlight Label for Grove_LCD_RGB_Backlight UAY Unassigned yet
Projects
Status: Todo
Development

No branches or pull requests

5 participants