Open kevinjwalters opened 3 years ago
Well spotted, I don't know how to control the backlight, especially since my code use plotter, but the backlight_control is not exposed. Actually, I want to power it down to see if it affect the temperature reported by bme280.
Have a look at https://github.com/pimoroni/EnviroPlus-FeatherWing/blob/master/examples/plotter_light_and_sound.py - the pwm
is setup for the backlight control and duty_cycle
is then set from the program rather than any library code (0-65535 value).
Right now I have it powered down:
pwm = pulseio.PWMOut(pimoroni_physical_feather_pins.pin21())
pwm.duty_cycle = 0
=> The bme280 temp continue to grow
The constructor for the screen includes a
backlight_control=True
described asbut the code uses this value to determine whether to set a reset parameter:
https://github.com/pimoroni/EnviroPlus-FeatherWing/blob/91b32ed6de01d87f3fd63c5dfde481019308a517/library/pimoroni_envirowing/screen/__init__.py#L26-L29
According to https://circuitpython.readthedocs.io/en/6.0.x/shared-bindings/displayio/#displayio.FourWire that reset is what it sounds like:
Is that code errorneous or is there more to this that meets the eye?
I can see example code in the plotters doing manual pwm. Was there a reason not to support the
brightness
property on the display?