4 #ifndef ADAFRUIT_CPLAY_SPEAKER_H 5 #define ADAFRUIT_CPLAY_SPEAKER_H 9 #if !defined(__AVR__) // circuit playground express has nicer amp w/shutdown 10 #define CPLAY_SPEAKER_SHUTDOWN 11 24 playSound(
const uint8_t *data, uint32_t length, uint16_t sampleRate,
26 say(
const uint8_t *addr);
50 #endif // ADAFRUIT_CPLAY_SPEAKER_H void playSound(const uint8_t *data, uint32_t length, uint16_t sampleRate, bool tenBit=false)
Plays digitized 8-bit audio (optionally 10 bits on Express board) from a PROGMEM (flash memory) buffe...
Definition: Adafruit_CPlay_Speaker.cpp:103
void off(void)
disable the speaker.
Definition: Adafruit_CPlay_Speaker.h:36
void say(const uint8_t *addr)
speak the data at the passed location
Definition: talkie.cpp:86
void enable(bool e)
enable or disable the speaker. This function only works on 'Express' boards.
Definition: Adafruit_CPlay_Speaker.cpp:50
void begin(void)
Sets up Circuit Playground speaker for PWM audio output: enables 48 KHz high-speed PWM mode...
Definition: Adafruit_CPlay_Speaker.cpp:14
void end(void)
Turns off PWM output to the speaker.
Definition: Adafruit_CPlay_Speaker.cpp:61
Class that stores state and functions for the speaker on CircuitPlayground boards.
Definition: Adafruit_CPlay_Speaker.h:18
void on(void)
enable the speaker.
Definition: Adafruit_CPlay_Speaker.h:44