Skip to content

On and fade times for RGB blink #23

@MarcScott

Description

@MarcScott

Code

def rgb_standard_blink_with_times():
    '''blink an rgb led using the method and fades'''
    from picozero import RGBLED
    from time import sleep
    rgb = RGBLED(11, 12, 13)
    rgb.blink(on_times=5, fade_times=5)

Expected behavior

I might be misinterpreting what this blink method does, but I was expecting a colour to hold for 5 seconds, then fade into the next color over 5 seconds

Actual behaviour

Some colours fade but often they just seem to quickly switch. Very hard to describe.
Best tested yourself to see the effect

VID_20220310_143658687.mp4

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions