Open
Description
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