-
Notifications
You must be signed in to change notification settings - Fork 91
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
Comments
@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? |
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. |
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. |
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. |
@rgerhards @sglebs Have you solved this problem? |
IIRC did no longer pursue this effort. |
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. |
Is it possible to add this API? Unfortunately setReg is private, but I think it would be something like:
The text was updated successfully, but these errors were encountered: