JSC-TechMinds/ObjectButton

Improve initialization with Builder pattern

Opened this issue · 0 comments

Analog buttons will usually share the same pin. At the moment, we allow setting pin and inputPullUp flag for each button individually. This is not correct. Imagine that one button sets pin as inputPullUp and another sets the same pin to input only.

Builder pattern should solve this problem by not allowing to setup this flag on each individual button. Take into consideration memory restrictions.