Copyright | (c) Levent Erkok |
---|---|
License | BSD3 |
Maintainer | erkokl@gmail.com |
Stability | experimental |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Abstractions for piezo speakers.
Synopsis
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.
Notes you can play, and durations
Musical notes, notes around middle-C