Increase max_size in pwm.proto#188
Conversation
lorennorman
left a comment
There was a problem hiding this comment.
makes sense to make them all the same across protos, but i gotta ask why 64? isn't that much larger than we'll ever need, or should i have a more open mind about that?
|
@lorennorman 64 is far larger than we'd ever need, yes. Looking at the expander format, the worst-case is: I think a Interested in @tyeth's thoughts, too, though! |
|
16 sounds sensible. I wondered in future (or now) if we need the i2c bus number included in the pin name (which would fit in SPI expanders are also a thing, so we might need an ID instead of including all expander info in pin name (SPI has chip select + d/c + optional reset iirc), or some way of looking them up. |
tyeth
left a comment
There was a problem hiding this comment.
See comment in PR about i2c bus number, and SPI expanders
|
@tyeth You mean moving from I'm open to it. In both scenarios' worst-case, we don't hit the 16char limit proposed by this PR. |
Assuming that first example [the FROM] was meant to not include bus number, only the new/proposed variant includes bus, then yeah! |
yep my mistake! |
tyeth
left a comment
There was a problem hiding this comment.
16 not 64, but looks good and was group reviewed.
|
@tyeth thanks for the catch, set to |
Expander pins take the form
EXP_{I2c_Address}_Pin#. Themax_sizefield for a PWM pin is 6 characters, too small for the component API to support expanders.This pull request aims to match the size for the
pinfield used bypwm.protowithdigitalio.optionsandanalogio.options.