Stability | experimental |
---|---|
Maintainer | erkokl@gmail.com |
Safe Haskell | None |
Abstractions for piezo speakers.
Declaring a piezo speaker
A piezo speaker. Note that this type is abstract, use speaker
to
create an instance.
:: Int | Tempo. Higher numbers mean faster melodies; in general. |
-> Pin | Pin controlling the piezo. Should be a pin that supports PWM mode. |
-> Arduino Piezo |
Create a piezo speaker instance.