GithubHelp home page GithubHelp logo

dfrobot_iis's Introduction

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 size
 *
 * @param photoSize Size of photo
 *     Possible values: QQVGA(160x120) QQVGA2(128x160) QICF(176x144) HQVGA(240x160) QVGA(320x240)
 */
void setFreamsize(uint8_t photoSize);

/*
 * @brief Set photo pixel format 
 *
 * @param pixelFormat Photo pixel format
 *     Possible values: GRAYSCALE RGB555
 */
void setPixformat(uint8_t pixelFormat)

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

/*
 * @brief Content  WIFI
 *
 * @param ssid     WIFI name
 *
 * @param password WIFI password
 */
void connectNet(const char* ssid,const char* password);
 
/*
 * @brief send photo to internet
 */
void sendPhoto(void);

Compatibility

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

History

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

Credits

dfrobot_iis's People

Contributors

chocho2018 avatar gboldwang avatar ndmluckyl avatar wxzed avatar zedwu avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.