#include <Speaker.h>
◆ Speaker()
| spikeapi::Speaker::Speaker |
( |
void | | ) |
|
|
default |
コンストラクタ
- Parameters
-
- Returns
- -
◆ hasError()
| bool spikeapi::Speaker::hasError |
( |
| ) |
|
|
inline |
インスタンス生成が正常にできたかどうかを確認するための共通メソッド Speakerでは複数生成が問題ないので、常にfalseを返す
◆ playTone()
| void spikeapi::Speaker::playTone |
( |
uint16_t | frequency, |
|
|
int32_t | duration ) const |
|
inline |
指定した周波数でトーンを再生する
- Parameters
-
| frequency | トーンの周波数(Hz) |
| duration | 出力持続時間(ミリ秒)SOUND_MANUAL_STOPを指定した場合は手動で停止する必要がある |
◆ setVolume()
| void spikeapi::Speaker::setVolume |
( |
uint8_t | volume | ) |
const |
|
inline |
◆ stop()
| void spikeapi::Speaker::stop |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following file: