Arduboy2 Library
6.0.0
Main Page
Related Pages
Classes
Files
File List
File Members
Arduboy2Audio.h
Go to the documentation of this file.
1
7
#ifndef ARDUBOY2_AUDIO_H
8
#define ARDUBOY2_AUDIO_H
9
10
#include <Arduino.h>
11
#include <EEPROM.h>
12
73
class
Arduboy2Audio
74
{
75
friend
class
Arduboy2Ex;
76
77
public
:
85
static
void
begin
();
86
97
static
void
on
();
98
109
static
void
off
();
110
122
static
void
toggle
();
123
138
static
void
saveOnOff
();
139
152
static
bool
enabled
();
153
154
protected
:
155
static
bool
audio_enabled;
156
};
157
158
#endif
Arduboy2Audio::off
static void off()
Turn sound off (mute).
Definition:
Arduboy2Audio.cpp:23
Arduboy2Audio::on
static void on()
Turn sound on.
Definition:
Arduboy2Audio.cpp:11
Arduboy2Audio
Provide speaker and sound control.
Definition:
Arduboy2Audio.h:74
Arduboy2Audio::begin
static void begin()
Initialize the speaker based on the current mute setting.
Definition:
Arduboy2Audio.cpp:48
Arduboy2Audio::saveOnOff
static void saveOnOff()
Save the current sound state in EEPROM.
Definition:
Arduboy2Audio.cpp:43
Arduboy2Audio::toggle
static void toggle()
Toggle the sound on/off state.
Definition:
Arduboy2Audio.cpp:35
Arduboy2Audio::enabled
static bool enabled()
Get the current sound state.
Definition:
Arduboy2Audio.cpp:56
Arduboy2Audio.h
Generated on Tue Sep 29 2020 14:29:54 for Arduboy2 Library by
1.8.18