Wombat Environmental Node 1.0
An environmental node for SDI-12 and digital sensors.
Loading...
Searching...
No Matches
tones.h File Reference

Audio control for the onboard piezo buzzer. More...

#include <Arduino.h>
Include dependency graph for tones.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define PIEZO_BUZZER_PIN   GPIO_NUM_17
 GPIO pin to control the piezo buzzer. More...
 

Functions

static void init_tones ()
 Start tones by setting GPIO pin as an OUTPUT to control the onboard piezo buzzer. More...
 
static void startup_tone ()
 Used on device startup. More...
 
static void shutdown_tone ()
 Used on device shutdown. More...
 
static void completed_tone ()
 Command completed tone. More...
 
static void message_tone ()
 BluetoothLE message received tone. More...
 
static void error_tone ()
 Generic error tone. More...
 

Detailed Description

Audio control for the onboard piezo buzzer.

A GPIO pin is used to drive the gate of a transistor connected to an onboard piezo buzzer. Several tones are provided to enable audio feedback when the device is running.

Date
December 2022

Macro Definition Documentation

◆ PIEZO_BUZZER_PIN

#define PIEZO_BUZZER_PIN   GPIO_NUM_17

GPIO pin to control the piezo buzzer.

Function Documentation

◆ completed_tone()

static void completed_tone ( )
static

Command completed tone.

◆ error_tone()

static void error_tone ( )
static

Generic error tone.

◆ init_tones()

static void init_tones ( )
static

Start tones by setting GPIO pin as an OUTPUT to control the onboard piezo buzzer.

◆ message_tone()

static void message_tone ( )
static

BluetoothLE message received tone.

◆ shutdown_tone()

static void shutdown_tone ( )
static

Used on device shutdown.

◆ startup_tone()

static void startup_tone ( )
static

Used on device startup.