"address" argument on LEDs #422#446
"address" argument on LEDs #422#446dwalton76 merged 3 commits intoev3dev:developfrom dwalton76:leds-address-str
Conversation
WasabiFan
left a comment
There was a problem hiding this comment.
should the __str__ implementation be overridden to print the device name in this case?
|
It will print the class name if there is no “address”...not sure what the device name would be for the LEDs? |
|
I believe the the led structure is |
|
ok so |
|
ah, is it because |
|
quick summary:
|
|
This results in For a single Led object the desc is almost always going to be set so we get the handy |
|
Looks good to me! It might be nice to have the class name in there too but I don't think it makes much of a difference; we should avoid over-complicating things. |
No description provided.