Skip to content

Display backlight PWM in light sleep flashing #7568

@bobricius

Description

@bobricius

CircuitPython version

Adafruit CircuitPython 8.0.0-beta.6 on 2022-12-21; Raspberry Pi Pico with rp2040

Code/REPL

some parts of code
.....
display = ST7789(display_bus, rotation=270, width=320, height=240, backlight_pin=board.GP20, backlight_pwm_frequency=500)
.....
display.brightness = 0.001
time_alarm = alarm.time.TimeAlarm(monotonic_time=time.monotonic() + timeInLightSleep)
pin_alarm = alarm.pin.PinAlarm(LORA_INT, value=True, pull=True)
alarm.light_sleep_until_alarms(time_alarm, pin_alarm)

Behavior

display in sleep mode start randomly flashing
also after sleep stop work Beep function, just produce crack

Is possible to add more wakeup events for PinAlarm for RP2040? by my test I can enter only one pin

def beep():
audioPin = PWMOut(AUDIO_GPIO, duty_cycle=0, frequency=440, variable_frequency=True)
audioPin.frequency = 4000
audioPin.duty_cycle = 10000 * (volume)
time.sleep(0.01)
audioPin.duty_cycle = 0
audioPin.deinit()

Description

I think some settings after wake up are not restored

Additional information

I can take video

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy