rlogiacco / AnalogButtons

Arduino library to wire multiple buttons to one single analog pin
GNU Lesser General Public License v3.0
57 stars 14 forks source link

Minimized # of casts #9

Closed fraser125 closed 7 years ago

fraser125 commented 7 years ago

Reduced casting from 4 values to only the 2 on the minimum comparison. Max ADC value of 1023 shouldn't cause any problems on the max compare side.

fraser125 commented 7 years ago

Cleaning up my PR. Back soon with a 'cleaner' version.