Skip to content

Conversation

@martinohanlon
Copy link
Collaborator

No description provided.

Martin O'Hanlon and others added 16 commits February 10, 2022 17:56
Updated RGBLED to support blink, pulse and colour cycles, all supporting multiple colours and timings
Prototype trying a generator (just for RGBLED to see if we like it)
Changed so use single instance of AsyncValueChange (avoiding some reentrancy issues when calling from an interrupt). Also used micropython.schedule to further reduce potential reentrancy/memory allocation issues. May need to do more but seems be callable from interrupts in simple scenarios. Should probably just set simple variables on the class during the interrupt.
Added more interesting defaults for RGB blink and pulse
Set generator to None on stop.
Fixes to get RGBLED working. Still issues with wait=False.
Removed override of off and minor updates to RGBLED
Changed ValueChange to set the timer to None and check for it before init. This seems to fix the issue where previous sequences could still be running (for LED and RGBLED) but not clear why this should be necessary.
@martinohanlon martinohanlon merged commit facc8fd into master Feb 21, 2022
@martinohanlon martinohanlon deleted the pulse branch February 21, 2022 09:28
martinohanlon pushed a commit that referenced this pull request Jan 3, 2023
Sync comment default for pull_up with code.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants