You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was just looking at the LED code and realized that we define an "address" argument, but it's never actually used in that class — the only potential consumer I can think of is the device class's generic string conversion method. Can we remove it? I don't think there is any meaning for an "address" in the context of LEDs.
Activity
ddemidov commentedon Oct 24, 2017
I wonder if non-system LEDs attached to output ports (as in ev3dev/ev3dev#990), have address attribute. If not, then this is a good idea.
dwalton76 commentedon Oct 25, 2017
If we remove it from the list of args we just need to set it to something so the
__str__()doesn't barfddemidov commentedon Oct 25, 2017
Would not overriding
__str__for theLedclass work as well?dwalton76 commentedon Oct 25, 2017
yep that would work too
dwalton76 commentedon Jan 31, 2018
Actually,
Device.__str__()is ok if no address is defined"address" argument on LEDs #422 (#446)