8000 Display backlight PWM in light sleep flashing · Issue #7568 · adafruit/circuitpython · GitHub
[go: up one dir, main page]

Skip to content

Display backlight PWM in light sleep flashing #7568

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

Open
bobricius opened this issue Feb 10, 2023 · 0 comments
Open

Display backlight PWM in light sleep flashing #7568

bobricius opened this issue Feb 10, 2023 · 0 comments
Labels
Milestone

Comments

@bobricius
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants
0