Repository navigation
Switch to group-based interface in Leds - #76
Conversation
|
Also, I hope @ensonic is ok with this change. |
This is accompanied by rhempel/ev3dev-lang@28361da
|
rhempel/ev3dev-lang#5, if/when merged into ev3dev/ev3dev-lang, will break js and C++ bindings, so pinging @WasabiFan as well. |
|
It seems to do the job as expected. OK for me. BTW dealing with the colours rather that with the individual leds avoids a logical but disturbing behaviour which made me scratch my head recently. While the leds are on in amber (or any mix), |
|
Welcome to the world of hair splitting when it comes to bicoloured LED control. I can give one good reason for retaining individual control, and that is to multiplex more visual information on one LED - ie set one background color for system state, but still allow flashing for disk access. Maybe that's in the realm of overthinking it.. |
|
|
|
@ddemidov I'm OK with your proposal. It will always be possible to add a layer on top of this to address specific behaviours. |
Switch to group-based interface in Leds
This is based on discussion at #37 (comment).
This introduces concepts of led groups (see also ev3dev/ev3dev#412) and colors into
Ledsclass. The led groups may be operated as in:I hope this is close to what @EricPobot had in mind.
This is accompanied by rhempel/ev3dev-lang@28361da