# `NestGen2.Piezo`
[🔗](https://github.com/integration-technology/nest_gen2_sdk/blob/v0.6.6/lib/nest_gen2/piezo.ex#L1)

The piezo buzzer (pwm-beeper on `/dev/input/event0`).

`click/0` plays Nest's own dial click: 2000 Hz for 3 ms, from the stock
`product.config`.

# `child_spec`

Returns a specification to start this module under a supervisor.

See `Supervisor`.

# `click`

```elixir
@spec click() :: :ok
```

Plays Nest's dial click. Clicks closer than 15 ms together are dropped.

# `set_click_on_step`

```elixir
@spec set_click_on_step(boolean()) :: :ok
```

Whether the dial clicks on every step (see `NestGen2.Dial.set_step/1`).

# `start_link`

# `tone`

```elixir
@spec tone(pos_integer(), pos_integer()) :: :ok
```

Plays a tone; returns immediately.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
