austinbv / dino

Dino is a ruby gem that helps you bootstrap prototyping with an Arduino
MIT License
388 stars 84 forks source link

Added value attribute to Sensor to allow for analog read #67

Closed efatsi closed 10 years ago

efatsi commented 10 years ago

This would let you call .value on a Dino::Components::Sensor object and get the analog value at any time.

justinledwards commented 10 years ago

This is a nice feature. It'd be cool if it worked on some of the other sensor libs too

efatsi commented 10 years ago

Sure thing, it's a simple enough feature. Do you want me to throw it on all things which use the analog pins?

austinbv commented 10 years ago

@efatsi sure that would be great!