Replies: 5 comments 4 replies
|
It's been on my "to do" list to add support for different types of "patterns" that could be selected for each channel separately. One option would be to add some 'basic' modes linke "blink", "fade", etc that would take some parameters each.
I was initially thinking allowing "programmable" patterns, but that would be quite a bit of work... but that might be something to add later after adding some basic modes first. |
|
Experimenting with some blinking and fading on a modified version of brickpico. Many features are still hard coded. Not really ready for sharing yet. 20250101_141325.mp4 |
|
Initial support for "effects" is now merged, there is three basic/simple effects included: fade (in/out), blink, and pulse: 52ba9d1 Lighting effects are "run" by second core so they should run rather consistently regardless how busy the first core is with networking, etc... And it should be easy to add more effects. (pre-built firmware can be found here: https://github.com/tjko/brickpico/actions/runs/12612639715) |
|
Light output from LED lights is clearly not proportional to the PWM signal duty cycle, so I added initial support for Gamma correction: 4757923 Now the LED light brightness should more closely match the set output level (percentage), this would seem to make 'effects' look slightly better. (pre-build "beta" firmware can be found here: https://github.com/tjko/brickpico/actions/runs/12703769226) |
|
I pulled and built just moments ago. All your recent changes appear to be working as expected. Nice work! |
Uh oh!
There was an error while loading. Please reload this page.
If we're building something that would look better with blinking lights (e.g. plane, some vehicles), is being able to either set a channel to a certain blink rate (1/sec, 2/sec, 1/min, etc...) or a fade rate (start on, fade down to 20% over 3 min, reverse so back to 100% after 3 min, or something like start off, fade up to 100% over 1 min and then turn off, wait 1 min, start again) feasible?
Not sure how complicated it would be, but sure would make for some amazing displays. I mean, could probably also do it for other devices other than LEGO, though the 200mA/channel would be a limiting factor for some other LED situations.
All reactions