Skip to content

wxzed/DFRobot_IIS

 
 

Repository files navigation

FireBeetle Covers-Camera&Audio Media Board

ESP32 Audio&Video Board with IIS

SVG1

DFRobot_IIS Library for Arduino

Provides an Arduino library for FireBeetle Covers-Camera&Audio Media Board

Table of Contents

Summary

The library is used to Play music file from SD card,Record sound and save in SD card,take photo and save in SD card

Methods

/*
 * @brief Init SD card
 */
void SDCardInit(void);

/*
 * @brief Set operational mode 
 *
 * @param mode Work mode settings
 *     AUDIO:Audio mode 
 *     CAMERA:Camera mode
 */
void init(uint8_t mode);

/*
 * @brief Set speakers volume in when play music
 *
 * @param volume Set volume from 0 to 99
 */
void setSpeakersVolume(uint8_t volume);

/*
 * @brief Set headphones volume in when play music
 *
 * @param volume Set volume from 0 to 99
 */
void setHeadphonesVolume(uint8_t volume);

/*
 * @brief Set speakers in mute mode
 */
void muteSpeakers(void);

/*
 * @brief Set headphones in mute mode
 */
void muteHeadphones(void);

/*
 * @brief Init music player
 */
void initPlayer();

/*
 * @brief Play music
 *
 * @param *filename The name of the file used to play
 */
int playMusic(const char *filename);

/*
 * @brief Control the music player
 *
 * @param cmd Command to control music player
 *     PLAY   Begin or continue play music
 *     PAUSE  Pause play music
 *     STOP   Stop play music
 */
void playerControl(uint8_t cmd);

/*
 * @brief Init Recorder
 */
void initRecorder();

/*
 * @brief Record sound
 *
 * @param *outputFilename The name of the file to save record
 */ 
int recordSound(const char *outputFilename);

/*
 * @brief Control the recorder
 *
 * @param cmd Command to control recorder
 *     BEGIN  Begin recording
 *     STOP   Stop recording
 */
void recorderControl(uint8_t cmd);

/*
 * @brief Set photo siez
 *
 * @param photoSize Size of photo
 *     Possible values: QQVGA(160x120) QQVGA2(128x160) QICF(176x144) HQVGA(240x160) QVGA(320x240)
 *
 */
void setFramesize(uint8_t photoSize);

/*
 * @brief Take photo
 *
 * @param *pictureFilename The name of the file to save picture
 */ 
void snapshot(const char *pictureFilename);

Compatibility

MCU Work Well Work Wrong Untested Remarks
FireBeetle-ESP32
FireBeetle-ESP8266
FireBeetle-BLE4.1

History

  • date 2017-9-29
  • version V1.0

Credits

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 66.0%
  • C 34.0%