Sound recorder and playback device
Dependents: Seeed_Grove_Recorder_Example
ISD1820P Class Reference
#include <ISD1820P.h>
Public Member Functions | |
ISD1820P (PinName recordPin, PinName playPin) | |
Constructor. | |
void | startRecording (float time) |
Starts a new recording. | |
void | startRecordingMaxTime () |
Starts a new recording with a length of the maximum time. | |
void | stopRecording () |
Stops the current recording. | |
void | startPlaying (float time) |
Starts playback of the previous recording. | |
void | startPlayingMaxTime () |
Starts playback of the previous recording up to the maximum time. | |
void | stopPlaying () |
Stops the current playback. | |
void | setMaxSoundTime (float maxTime) |
Set the default max recording and playback time. |
Detailed Description
ISD1820P class.
Used to control recording and playblack of sounds using this component: http://www.seeedstudio.com/depot/Grove-Recorder-p-1825.html
Definition at line 9 of file ISD1820P.h.
Constructor & Destructor Documentation
ISD1820P | ( | PinName | recordPin, |
PinName | playPin | ||
) |
Constructor.
Initializes the maximum record/playback sound to defaultMaxSoundTime.
- Parameters:
-
recordPin The pin that controls recording. playPin The pin that controls playback.
Definition at line 3 of file ISD1820P.cpp.
Member Function Documentation
void setMaxSoundTime | ( | float | maxTime ) |
Set the default max recording and playback time.
The default is 10 seconds.
- Parameters:
-
maxTime The maximum time in seconds to record and playback sounds.
void startPlaying | ( | float | time ) |
Starts playback of the previous recording.
- Parameters:
-
time Controls how long to play the last recording.
Definition at line 31 of file ISD1820P.cpp.
void startPlayingMaxTime | ( | ) |
Starts playback of the previous recording up to the maximum time.
Definition at line 42 of file ISD1820P.cpp.
void startRecording | ( | float | time ) |
Starts a new recording.
- Parameters:
-
time Controls how long to record.
Definition at line 12 of file ISD1820P.cpp.
void startRecordingMaxTime | ( | ) |
Starts a new recording with a length of the maximum time.
Definition at line 23 of file ISD1820P.cpp.
void stopPlaying | ( | ) |
Stops the current playback.
Definition at line 27 of file ISD1820P.cpp.
void stopRecording | ( | ) |
Stops the current recording.
Definition at line 8 of file ISD1820P.cpp.
Generated on Wed Jul 13 2022 00:04:16 by
![doxygen](doxygen.png)