Adafruit Arcada Library
|
An abstraction class for something with a display, and possibly button controls or speaker. Makes targing games and UI to multiple hardware designs easier. More...
#include <arcadatype.h>
Public Member Functions | |
Adafruit_Arcada_SPITFT (void) | |
Instantiator for Arcada class, will allso inistantiate (but not init) the TFT. | |
bool | arcadaBegin (void) |
Initialize GPIO, NeoPixels, and speaker. More... | |
virtual bool | variantBegin (void)=0 |
Perform any specialized variant setup such as initializing accelerometers, seesaw, etc. More... | |
virtual uint32_t | variantReadButtons (void)=0 |
Perform any variant input reading (say if we use seesaw or whatnot) More... | |
bool | timerCallback (float freq, arcada_callback_t callback) |
Create a repetative callback to a function using a timer. More... | |
float | getTimerCallbackFreq (void) |
Get the final frequency created for the callback helper. More... | |
arcada_callback_t | getTimerCallback (void) |
Get the previous callback function we were using. More... | |
void | timerStop (void) |
Stop a previously-initiated timer. | |
void | printf (const char *format,...) |
printf wrapper to serial debug, handy for logging config, C inclusion More... | |
Arcada_FilesystemType | filesysBegin (Arcada_FilesystemType desiredFilesys=ARCADA_FILESYS_SD_AND_QSPI) |
Initialize the filesystem, either SD or QSPI. More... | |
int16_t | filesysListFiles (const char *path=NULL, const char *extensionFilter=NULL) |
Debugging helper, prints to Serial a list of files in a path. More... | |
bool | chdir (const char *path) |
Set working filesys directory to a given path (makes file naming easier) More... | |
File | open (const char *path=NULL, uint32_t flags=O_READ) |
Opens a file and returns the object, a wrapper for our filesystem. More... | |
File | openFileByIndex (const char *path, uint16_t index, uint32_t flags=O_READ, const char *extensionFilter=NULL) |
Opens a file as an indexed # in a directory (0 is first file), and returns the object. More... | |
bool | exists (const char *path) |
Tests if a file exists on the filesys. More... | |
bool | mkdir (const char *path) |
Make a directory in the filesys. More... | |
bool | remove (const char *path) |
Remove a file from the filesys. More... | |
uint8_t * | writeDataToFlash (uint8_t *data, uint32_t len) |
Write a block of data in RAM to the NEXT AVAILABLE position in flash memory (NOT a specific location). More... | |
uint8_t * | writeFileToFlash (const char *filename) |
Opens a file and writes the data contents to the internal chip flash memory. NOT the QSPI flash but the actual chip memory! More... | |
uint32_t | availableFlash (void) |
Determine amount of unused flash memory remaining. More... | |
bool | filesysBeginMSD (Arcada_FilesystemType desiredFilesys=ARCADA_FILESYS_SD_AND_QSPI) |
Make the raw filesystem of the Arcada board available over USB. More... | |
bool | recentUSB (uint32_t timeout=100) |
Hints whether we're doing a bunch of USB stuff recently. More... | |
bool | chooseFile (const char *path, char *filename, uint16_t filename_max, const char *extensionFilter=NULL) |
Presents a navigation menu for choosing a file from the filesys. More... | |
bool | hasControlPad (void) |
Does this board have a control pad - latch, buttons or analog joystick? More... | |
int16_t | readJoystickX (uint8_t oversampling=3) |
Read X analog joystick. More... | |
int16_t | readJoystickY (uint8_t oversampling=3) |
Read Y analog joystick. More... | |
uint32_t | readButtons (void) |
Read all buttons/joystick and return a bitmask of which buttons are pressed, check ARCADA_BUTTONMASK_* for valid bitmasks to check again. If there's an analog joystick, it will 'simulate' the button presses. More... | |
uint32_t | justPressedButtons (void) |
What buttons were just pressed as of the last readButtons() call. Use ARCADA_BUTTONMASK_* defines to extract which bits are true (just pressed) More... | |
uint32_t | justReleasedButtons (void) |
What buttons were just released as of the last readButtons() call. Use ARCADA_BUTTONMASK_* defines to extract which bits are true (just releasd) More... | |
bool | hasTouchscreen (void) |
Does this board have a touchscreen. More... | |
void | setTouchscreenCalibration (int16_t xmin, int16_t xmax, int16_t ymin, int16_t ymax) |
Set the X/Y calibration values for the touchscreen. More... | |
TSPoint | getTouchscreenPoint (void) |
Get a calibrated point that corresponds to the TFT. More... | |
uint16_t | readLightSensor (void) |
Read the light sensor onboard if there is one. More... | |
float | readBatterySensor (void) |
Read the batterysensor onboard if there is one. More... | |
virtual void | displayBegin (void)=0 |
Initialize TFT display, doesn't turn on the backlight. | |
bool | createFrameBuffer (uint16_t width, uint16_t height) |
Create (allocate) an internal GFX canvas of given width and height. More... | |
GFXcanvas16 * | getCanvas (void) |
Return pointer to GFX canvas (NULL if not allocated) More... | |
uint16_t * | getFrameBuffer (void) |
Return address of internal framebuffer (NULL if not allocated) More... | |
bool | blitFrameBuffer (uint16_t x, uint16_t y, bool blocking=false, bool bigEndian=false, Adafruit_SPITFT *display=NULL) |
Write the internal framebuffer to the display at coord (x, y) More... | |
uint16_t | ColorHSV565 (int16_t H, uint8_t S, uint8_t V) |
Convert hue, saturation and value into a packed 16-bit RGB color that can be passed to TFT. More... | |
bool | setBacklight (uint8_t brightness, bool saveToDisk=false) |
Set the backlight brightness and save to the configuration. More... | |
uint8_t | getBacklight (void) |
Get the backlight brightness. More... | |
bool | setVolume (uint8_t volume, bool saveToDisk=false) |
Set the audio volume (not working at this time) More... | |
uint8_t | getVolume (void) |
Get the audio volume (not working at this time) More... | |
void | enableSpeaker (bool flag) |
Turn on the speaker amplifier. More... | |
void | alertBox (const char *string, uint16_t boxColor, uint16_t textColor, uint32_t continueButtonMask) |
Display an alert box with optional 'press to continue' button. More... | |
void | infoBox (const char *string, uint32_t continueButtonMask=ARCADA_BUTTONMASK_A) |
Display an info box with optional 'press to continue' button. More... | |
void | warnBox (const char *string, uint32_t continueButtonMask=ARCADA_BUTTONMASK_A) |
Display an warning box with optional 'press to continue' button. More... | |
void | errorBox (const char *string, uint32_t continueButtonMask=ARCADA_BUTTONMASK_A) |
Display an error box with optional 'press to continue' button. More... | |
void | haltBox (const char *string) |
Display an error box and halt operation. More... | |
uint8_t | menu (const char **menu_strings, uint8_t menu_num, uint16_t boxColor, uint16_t textColor, bool cancellable=false) |
Draws a menu and lets a user select one of the menu items. More... | |
bool | loadConfigurationFile (const char *filename=ARCADA_DEFAULT_CONFIGURATION_FILENAME) |
Loads the configuration JSON from the filesystem (which must be initialized before this function is called) and stores parsed JSON data internally. More... | |
bool | saveConfigurationFile (const char *filename=ARCADA_DEFAULT_CONFIGURATION_FILENAME) |
Saves the configuration JSON to the filesystem (which must be initialized before this function is called) More... | |
bool | hasAccel (void) |
Getter for accelerometer existance. More... | |
bool | hasWiFi (void) |
Gets the status of the ESP32 module connected via SPI. More... | |
ImageReturnCode | drawBMP (char *filename, int16_t x, int16_t y, Adafruit_SPITFT *tft=0x0, boolean transact=true) |
Loads BMP image file from QSPI or SD card directly to SPITFT screen. More... | |
Adafruit_ImageReader * | getImageReader (void) |
Reques the ImageReader object used, either for SD or QSPI. More... | |
wavStatus | WavLoad (char *filename, uint32_t *samplerate) |
Load up a wave file from the filesystem, to prepare for playback. More... | |
wavStatus | WavLoad (File f, uint32_t *samplerate) |
Load up a wave file from the filesystem, to prepare for playback. More... | |
wavStatus | WavReadFile () |
Reads another buffer's full of wave data into the internal buffer from the filesystem. More... | |
wavStatus | WavPlayNextSample (void) |
Output the next sample to the DAC(s) - should be called at 'samplerate'! More... | |
bool | WavReadyForData () |
Checks if we need to load the double buffer with WavReadFile() soon! More... | |
wavStatus | WavPlayComplete (char *filename) |
Play a wave file completely thru by blocking until end of file. More... | |
wavStatus | WavPlayComplete (File f) |
Play a wave file completely thru by blocking until end of file. More... | |
Public Attributes | |
Adafruit_SPITFT * | display |
The Adafruit_GFX subclass display which the variant must create. More... | |
Adafruit_NeoPixel | pixels |
The neopixel strip, of length ARCADA_NEOPIXEL_NUM. | |
Protected Attributes | |
bool | _has_accel |
Internally tracked variable if accelerometer was found. More... | |
bool | _has_wifi |
Internally tracked variable if wifi module was found. More... | |
Adafruit_ImageReader * | QSPI_imagereader |
If initalized, the imagereader for the QSPI filesystem. More... | |
Adafruit_ImageReader * | SD_imagereader |
If initalized, the imagereader for the SD card filesystem. More... | |
An abstraction class for something with a display, and possibly button controls or speaker. Makes targing games and UI to multiple hardware designs easier.
bool Adafruit_Arcada_SPITFT::arcadaBegin | ( | void | ) |
Initialize GPIO, NeoPixels, and speaker.
|
pure virtual |
Perform any specialized variant setup such as initializing accelerometers, seesaw, etc.
|
pure virtual |
Perform any variant input reading (say if we use seesaw or whatnot)
bool Adafruit_Arcada_SPITFT::timerCallback | ( | float | freq, |
arcada_callback_t | callback | ||
) |
Create a repetative callback to a function using a timer.
freq | The callback frequency, must be between 0.75 Hz and 24MHz (slower is better) |
callback | A pointer to the function we'll call every time |
float Adafruit_Arcada_SPITFT::getTimerCallbackFreq | ( | void | ) |
Get the final frequency created for the callback helper.
arcada_callback_t Adafruit_Arcada_SPITFT::getTimerCallback | ( | void | ) |
Get the previous callback function we were using.
void Adafruit_Arcada_SPITFT::printf | ( | const char * | format, |
... | |||
) |
printf wrapper to serial debug, handy for logging config, C inclusion
format | The printf-compatible format and extra args |
Arcada_FilesystemType Adafruit_Arcada_SPITFT::filesysBegin | ( | Arcada_FilesystemType | desiredFilesys = ARCADA_FILESYS_SD_AND_QSPI | ) |
Initialize the filesystem, either SD or QSPI.
desiredFilesys | The filesystem we'd prefer to use, can be ARCADA_FILESYS_SD, ARCADA_FILESYS_QSPI, or ARCADA_FILESYS_SD_AND_QSPI |
int16_t Adafruit_Arcada_SPITFT::filesysListFiles | ( | const char * | path = NULL , |
const char * | extensionFilter = NULL |
||
) |
Debugging helper, prints to Serial a list of files in a path.
path | A string with the filename path, must start with / e.g. "/roms". If nothing is passed in, we use the CWD (default is "/") |
extensionFilter | The 3 letters to check at the end of the filename to match |
bool Adafruit_Arcada_SPITFT::chdir | ( | const char * | path | ) |
Set working filesys directory to a given path (makes file naming easier)
path | A string with the directory to change to |
File Adafruit_Arcada_SPITFT::open | ( | const char * | path = NULL , |
uint32_t | flags = O_READ |
||
) |
Opens a file and returns the object, a wrapper for our filesystem.
path | A string with the filename path, must start with / e.g. "/roms" |
flags | Defaults to O_READ but can use O_WRITE for writing (uses SDfat's flag system) |
File Adafruit_Arcada_SPITFT::openFileByIndex | ( | const char * | path, |
uint16_t | index, | ||
uint32_t | flags = O_READ , |
||
const char * | extensionFilter = NULL |
||
) |
Opens a file as an indexed # in a directory (0 is first file), and returns the object.
path | A string with the directory path, must start with / e.g. "/roms" |
index | The n'th file to open, 0 is first file |
flags | Defaults to O_READ but can use O_WRITE for writing (uses SDfat's flag system) |
extensionFilter | A 3 (or more?) string to match against the final characters of each file for them to count. If they don't match, the index isn't incremented at all. We toupper() the extension and filename so don't worry about it. |
bool Adafruit_Arcada_SPITFT::exists | ( | const char * | path | ) |
Tests if a file exists on the filesys.
path | A string with the filename path |
bool Adafruit_Arcada_SPITFT::mkdir | ( | const char * | path | ) |
Make a directory in the filesys.
path | A string with the new directory path |
bool Adafruit_Arcada_SPITFT::remove | ( | const char * | path | ) |
Remove a file from the filesys.
path | A string with the file to be deleted |
uint8_t * Adafruit_Arcada_SPITFT::writeDataToFlash | ( | uint8_t * | ramAddress, |
uint32_t | len | ||
) |
Write a block of data in RAM to the NEXT AVAILABLE position in flash memory (NOT a specific location).
ramAddress | Pointer to source RAM data |
len | Size in bytes of RAM data to store |
uint8_t * Adafruit_Arcada_SPITFT::writeFileToFlash | ( | const char * | filename | ) |
Opens a file and writes the data contents to the internal chip flash memory. NOT the QSPI flash but the actual chip memory!
filename | A string with the filename path, can be relative or absolute. |
uint32_t Adafruit_Arcada_SPITFT::availableFlash | ( | void | ) |
Determine amount of unused flash memory remaining.
bool Adafruit_Arcada_SPITFT::filesysBeginMSD | ( | Arcada_FilesystemType | desiredFilesys = ARCADA_FILESYS_SD_AND_QSPI | ) |
Make the raw filesystem of the Arcada board available over USB.
desiredFilesys | The filesystem we'd prefer to use, can be ARCADA_FILESYS_SD, ARCADA_FILESYS_QSPI, or ARCADA_FILESYS_SD_AND_QSPI |
bool Adafruit_Arcada_SPITFT::recentUSB | ( | uint32_t | timeout = 100 | ) |
Hints whether we're doing a bunch of USB stuff recently.
timeout | The timeperiod to look at, defaults to 100ms |
bool Adafruit_Arcada_SPITFT::chooseFile | ( | const char * | path, |
char * | selected_filename, | ||
uint16_t | selected_filename_maxlen, | ||
const char * | extensionFilter = NULL |
||
) |
Presents a navigation menu for choosing a file from the filesys.
path | A string with the starting directory path, must start with / e.g. "/roms" |
selected_filename | A buffer to put the final selection in. Given long filename support, make this big! |
selected_filename_maxlen | Maximum buffer available in 'selected_filename' |
extensionFilter | A 3 (or more?) string to match against the final characters of each file for them to count. If they don't match, the index isn't incremented at all. We toupper() the extension and filename so don't worry about it. |
bool Adafruit_Arcada_SPITFT::hasControlPad | ( | void | ) |
Does this board have a control pad - latch, buttons or analog joystick?
int16_t Adafruit_Arcada_SPITFT::readJoystickX | ( | uint8_t | sampling = 3 | ) |
Read X analog joystick.
sampling | How many samples to read and average, default is 3 |
int16_t Adafruit_Arcada_SPITFT::readJoystickY | ( | uint8_t | sampling = 3 | ) |
Read Y analog joystick.
sampling | How many samples to read and average, default is 3 |
uint32_t Adafruit_Arcada_SPITFT::readButtons | ( | void | ) |
Read all buttons/joystick and return a bitmask of which buttons are pressed, check ARCADA_BUTTONMASK_* for valid bitmasks to check again. If there's an analog joystick, it will 'simulate' the button presses.
uint32_t Adafruit_Arcada_SPITFT::justPressedButtons | ( | void | ) |
What buttons were just pressed as of the last readButtons() call. Use ARCADA_BUTTONMASK_* defines to extract which bits are true (just pressed)
uint32_t Adafruit_Arcada_SPITFT::justReleasedButtons | ( | void | ) |
What buttons were just released as of the last readButtons() call. Use ARCADA_BUTTONMASK_* defines to extract which bits are true (just releasd)
bool Adafruit_Arcada_SPITFT::hasTouchscreen | ( | void | ) |
Does this board have a touchscreen.
void Adafruit_Arcada_SPITFT::setTouchscreenCalibration | ( | int16_t | xmin, |
int16_t | xmax, | ||
int16_t | ymin, | ||
int16_t | ymax | ||
) |
Set the X/Y calibration values for the touchscreen.
xmin | The value of X which corresponds to 0 on that axis |
ymin | The value of Y which corresponds to 0 on that axis |
xmax | The value of X which corresponds to the TFT width on that axis |
ymax | The value of Y which corresponds to the TFT height on that axis |
TSPoint Adafruit_Arcada_SPITFT::getTouchscreenPoint | ( | void | ) |
Get a calibrated point that corresponds to the TFT.
uint16_t Adafruit_Arcada_SPITFT::readLightSensor | ( | void | ) |
Read the light sensor onboard if there is one.
float Adafruit_Arcada_SPITFT::readBatterySensor | ( | void | ) |
Read the batterysensor onboard if there is one.
bool Adafruit_Arcada_SPITFT::createFrameBuffer | ( | uint16_t | width, |
uint16_t | height | ||
) |
Create (allocate) an internal GFX canvas of given width and height.
width | Number of pixels wide |
height | Number of pixels tall |
|
inline |
Return pointer to GFX canvas (NULL if not allocated)
|
inline |
Return address of internal framebuffer (NULL if not allocated)
bool Adafruit_Arcada_SPITFT::blitFrameBuffer | ( | uint16_t | x, |
uint16_t | y, | ||
bool | blocking = false , |
||
bool | bigEndian = false , |
||
Adafruit_SPITFT * | blitdisplay = NULL |
||
) |
Write the internal framebuffer to the display at coord (x, y)
x | X coordinate in the TFT screen to write it to |
y | Y coordinate in the TFT screen to write it to |
blocking | If true, function waits until blit is done. Otherwise we let DMA do the blitting and return immediately (THIS ISN'T NECESSARILY TRUE, SEE NOTE BELOW) |
bigEndian | If true, frame buffer data is already in big-endian order (which is NOT SAMD-native order) and an actual background DMA blit can take place (SEE NOTE BELOW) |
blitdisplay | The pointer to display we'll blit to. If not passed in, we'll use the 'internal' default of 'display' that the variant creates |
uint16_t Adafruit_Arcada_SPITFT::ColorHSV565 | ( | int16_t | H, |
uint8_t | S, | ||
uint8_t | V | ||
) |
Convert hue, saturation and value into a packed 16-bit RGB color that can be passed to TFT.
H | The Hue ranging from 0 to 359 |
S | Saturation, 8-bit value, 0 (min or pure grayscale) to 100 (max or pure hue) |
V | Value (brightness), 8-bit value, 0 (min / black / off) to 100 (max or full brightness) |
bool Adafruit_Arcada_SPITFT::setBacklight | ( | uint8_t | brightness, |
bool | saveToDisk = false |
||
) |
Set the backlight brightness and save to the configuration.
brightness | From 0 (off) to 255 (full on) |
saveToDisk | Whether we save this permanently to disk, default is false |
uint8_t Adafruit_Arcada_SPITFT::getBacklight | ( | void | ) |
Get the backlight brightness.
bool Adafruit_Arcada_SPITFT::setVolume | ( | uint8_t | volume, |
bool | saveToDisk = false |
||
) |
Set the audio volume (not working at this time)
volume | From 0 (off) to 255 (full on) |
saveToDisk | Whether we save this permanently to disk, default is false |
uint8_t Adafruit_Arcada_SPITFT::getVolume | ( | void | ) |
Get the audio volume (not working at this time)
void Adafruit_Arcada_SPITFT::enableSpeaker | ( | bool | on | ) |
Turn on the speaker amplifier.
on | True to enable, False to disable |
void Adafruit_Arcada_SPITFT::alertBox | ( | const char * | string, |
uint16_t | boxColor, | ||
uint16_t | textColor, | ||
uint32_t | continueButtonMask | ||
) |
Display an alert box with optional 'press to continue' button.
string | The message to display |
boxColor | 16-bit color to use as background |
textColor | 16-bit color to use as outline and text |
continueButtonMask | ARCADA_BUTTONMASK_ value to wait for, or 0 for immediate return. |
void Adafruit_Arcada_SPITFT::infoBox | ( | const char * | string, |
uint32_t | continueButtonMask = ARCADA_BUTTONMASK_A |
||
) |
Display an info box with optional 'press to continue' button.
string | The message to display |
continueButtonMask | ARCADA_BUTTONMASK_ value to wait for, or 0 for immediate return. Default is ARCADA_BUTTONMASK_A |
void Adafruit_Arcada_SPITFT::warnBox | ( | const char * | string, |
uint32_t | continueButtonMask = ARCADA_BUTTONMASK_A |
||
) |
Display an warning box with optional 'press to continue' button.
string | The message to display |
continueButtonMask | ARCADA_BUTTONMASK_ value to wait for, or 0 for immediate return. Default is ARCADA_BUTTONMASK_A |
void Adafruit_Arcada_SPITFT::errorBox | ( | const char * | string, |
uint32_t | continueButtonMask = ARCADA_BUTTONMASK_A |
||
) |
Display an error box with optional 'press to continue' button.
string | The message to display |
continueButtonMask | ARCADA_BUTTONMASK_ value to wait for, or 0 for immediate return. Default is ARCADA_BUTTONMASK_A |
void Adafruit_Arcada_SPITFT::haltBox | ( | const char * | string | ) |
Display an error box and halt operation.
string | The message to display |
uint8_t Adafruit_Arcada_SPITFT::menu | ( | const char ** | menu_strings, |
uint8_t | menu_num, | ||
uint16_t | boxColor, | ||
uint16_t | textColor, | ||
bool | cancellable = false |
||
) |
Draws a menu and lets a user select one of the menu items.
menu_strings | List of menu-item strings |
menu_num | Number of menu items |
boxColor | 16-bit color to use as menu-background |
textColor | 16-bit color to use as outline and text |
cancellable | setting this to true will enable the user to exit the menu by pressing "B" |
bool Adafruit_Arcada_SPITFT::loadConfigurationFile | ( | const char * | filename = ARCADA_DEFAULT_CONFIGURATION_FILENAME | ) |
Loads the configuration JSON from the filesystem (which must be initialized before this function is called) and stores parsed JSON data internally.
filename | The path to the JSON file |
bool Adafruit_Arcada_SPITFT::saveConfigurationFile | ( | const char * | filename = ARCADA_DEFAULT_CONFIGURATION_FILENAME | ) |
Saves the configuration JSON to the filesystem (which must be initialized before this function is called)
filename | The path to the JSON file |
|
inline |
Getter for accelerometer existance.
|
inline |
Gets the status of the ESP32 module connected via SPI.
ImageReturnCode Adafruit_Arcada_SPITFT::drawBMP | ( | char * | filename, |
int16_t | x, | ||
int16_t | y, | ||
Adafruit_SPITFT * | tft = 0x0 , |
||
boolean | transact = true |
||
) |
Loads BMP image file from QSPI or SD card directly to SPITFT screen.
filename | Name of BMP image file to load. |
x | Horizontal offset in pixels; left edge = 0, positive = right. Value is signed, image will be clipped if all or part is off the screen edges. Screen rotation setting is observed. |
y | Vertical offset in pixels; top edge = 0, positive = down. |
tft | The display we'll be drawing to |
transact | Pass 'true' if TFT and SD are on the same SPI bus, in which case SPI transactions are necessary. If separate peripherals, can pass 'false'. |
Adafruit_ImageReader * Adafruit_Arcada_SPITFT::getImageReader | ( | void | ) |
Reques the ImageReader object used, either for SD or QSPI.
wavStatus Adafruit_Arcada_SPITFT::WavLoad | ( | char * | filename, |
uint32_t * | samplerate | ||
) |
Load up a wave file from the filesystem, to prepare for playback.
filename | Name of file to open, either relative or abs path |
samplerate | The uint32_t where the loaded wav files' sample rate will be stored for the caller to use. |
wavStatus Adafruit_Arcada_SPITFT::WavLoad | ( | File | f, |
uint32_t * | samplerate | ||
) |
Load up a wave file from the filesystem, to prepare for playback.
f | The already-opened file that we'll play |
samplerate | The uint32_t where the loaded wav files' sample rate will be stored for the caller to use. |
wavStatus Adafruit_Arcada_SPITFT::WavReadFile | ( | ) |
Reads another buffer's full of wave data into the internal buffer from the filesystem.
wavStatus Adafruit_Arcada_SPITFT::WavPlayNextSample | ( | void | ) |
Output the next sample to the DAC(s) - should be called at 'samplerate'!
bool Adafruit_Arcada_SPITFT::WavReadyForData | ( | ) |
Checks if we need to load the double buffer with WavReadFile() soon!
wavStatus Adafruit_Arcada_SPITFT::WavPlayComplete | ( | char * | filename | ) |
Play a wave file completely thru by blocking until end of file.
filename | Name of file to open, either relative or abs path |
wavStatus Adafruit_Arcada_SPITFT::WavPlayComplete | ( | File | f | ) |
Play a wave file completely thru by blocking until end of file.
f | The already-opened file that we'll play |
Adafruit_SPITFT* Adafruit_Arcada_SPITFT::display |
The Adafruit_GFX subclass display which the variant must create.
|
protected |
Internally tracked variable if accelerometer was found.
|
protected |
Internally tracked variable if wifi module was found.
|
protected |
If initalized, the imagereader for the QSPI filesystem.
|
protected |
If initalized, the imagereader for the SD card filesystem.