-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Power1 toggle turns off i2c display (SSD1306) if display is on #9114
Comments
Wanted to add another observation. This only occurs when using displaytext [O] while power2 is off. If instead I leave power2 on, toggling power1 does NOT turn off the display. However, if the display is turned off using displaytext[o] and power2 is on then toggling power1 turns ON the display. |
I think the issue can be summed up in that using displaytext [O] and displaytex[o] does not update the corresponding power state. Therefore when any of the powerstates are toggled, it thinks it should be on/off and changes it to match. I've worked around this by changing my rules to use power2 1 and power2 0 instead of displaytext [O] and displaytext [o] |
What do you use the PWM for? |
Thx for your thorough debugging information. The latest commit in the development branch should solve your issue. |
The PWM is for some LEDs. The board is installed in a dark place and it helps to have a bit of light handy. Thanks for fix. |
I am facing similar issue with ESP32. I have custom compiled 9.3.1 with USE_SCRIPT and USE_POWER_SECTION Following is simple script:
and following is configuration Display I2C SSD_1306 128x32
Issue: Display Turns off when I use button to toggle power. Happens even when I turn off using web ui.
|
Hi, same behavior here with an ATOMS3 with 0,85 inch display and the universal driver, my guessing is that the buttons are binded to the pin driving the display backlight. , my guessing is that the button has an action on the "backlight" pin (pin 16 selected as "backlight" in my case). changing the button to button 2 instead of button 1 doesnt fix the thing. setoption73 is neither working edit , sorry while redoing the whole thing i had given the setoption to the wrong tasmota unit (i run no less than 40@home :-)) so effectively, setoption 73 1 does stop the screen from being stopped. that said, maybe a "display command option would be a better choice to specifically not change the pin labeled backlight on button press. like DisplayNoButton" ? or some other creative command name :-). this would let us use the buttons for normal outputs in the standard wayfor not having to edit a rule. |
PROBLEM DESCRIPTION
If the display is currently on and power1 is toggled, the display is turned off. PWM1 exists which power1 should toggle.
Turning on SetOption73 and using rules to toggle power1 results in the same issue.
This happens when toggling power1 through the web interface or by pressing button1
REQUESTED INFORMATION
Make sure your have performed every step and checked the applicable boxes before submitting your issue. Thank you!
Backlog Template; Module; GPIO 255
:Backlog Rule1; Rule2; Rule3
:Status 0
:(Please use
weblog 4
for more debug information)TO REPRODUCE
Steps to reproduce the behavior:
Use a device with i2c display and 2 buttons and 1 pwm channel. Turn the display on then toggle power1, display will turn off.
EXPECTED BEHAVIOUR
State of the display should not change if power1 is toggled when there is a pwm channel controlled by power1.
SCREENSHOTS
If applicable, add screenshots to help explain your problem.
ADDITIONAL CONTEXT
Add any other context about the problem here.
(Please, remember to close the issue when the problem has been addressed)
The text was updated successfully, but these errors were encountered: