austinbv / dino

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

Add support for Sound/Piezo/Buzzer #70

Closed Hammit closed 6 years ago

Hammit commented 10 years ago

Just watched the Ruby Con talk Austin gave. Awesome :)

I have a piezo/sound/buzzer I'd like to add support for. Looks like I need to modify the Dino.cpp and Dino.h files though to call functions not currently supported by Dino.

tone() and noTone() are what I need to call on the Arduino. Need some assistance to make this happen though.

I've made what looks to be the right-sort-of changes to the cpp and h files, but I don't know if Dino can support tone(pin, feq, duration) in it's current form.