Description
Describe the bug
With 0.4.1 on a Pico W and Micropython v1.24.1, I get the following error
Traceback (most recent call last):
File "/lib/picozero/picozero.py", line 135, in _set_value
File "/lib/picozero/picozero.py", line 149, in _get_value
File "/lib/picozero/picozero.py", line 505, in blink_generator
TypeError: unsupported types for gt: 'bound_method', 'int'
It's intermittent. The blink arguments are. I'm using PWMLED.
The code that calls the troubled blink functions uses these args :
...
led.blink(on_time=0.0, off_time=0.0, n=None, fade_in_time=0.2, fade_out_time=0.2)
...
I'm using MicroPython v1.24.1 on 2024-11-29; Raspberry Pi Pico W with RP2040
To Reproduce
Haven't found a way to reliably reproduce yet.
Expected behaviour
I did not expect an error, which produced an exception and crashed my program.
System information:
- OS: Linux Mint 24
- Development environment [e.g. Thonny]
- picozero version:
$ head -4 lib/picozero/init.py
name = "picozero"
package = "picozero"
version = '0.4.1'
author = "Raspberry Pi Foundation"
Additional context