| Copyright | (c) Levent Erkok |
|---|---|
| License | BSD3 |
| Maintainer | erkokl@gmail.com |
| Stability | experimental |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
System.Hardware.Arduino.Parts.Piezo
Description
Abstractions for piezo speakers.
Synopsis
Declaring a piezo speaker
A piezo speaker. Note that this type is abstract, use speaker to
create an instance.
Arguments
| :: 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