Arduino101 录音机

« 返回首页

Arduino101SoundRecorder 录音机

Arduino 101 录音机扩展模块允许用户控制连接到 Grove Shield 的录音机和播放设备。

更多链接

属性

  • BluetoothDevice – 与Arduino 101连接的BluetoothLE组件。

get Arduino101SoundRecorder1 BluetoothDevice

set Arduino101SoundRecorder1 BluetoothDevice  to

  • PlayPin – 用于触发播放的数字引脚。如果使用Grove连接器,这与数字引脚端口号相同(D4对应4)。

get Arduino101SoundRecorder1 PlayPin

set Arduino101SoundRecorder1 PlayPin  to

  • RecordPin – 用于触发录音的数字引脚。如果使用Grove连接器,这比数字引脚端口号大1(D4对应5)。

get Arduino101SoundRecorder1 RecordPin

set Arduino101SoundRecorder1 RecordPin  to

方法

  • IsSupported – 测试蓝牙低功耗设备是否广播支持该服务。如果为真, 调用TurnOn和TurnOff应该能正常工作。否则将通过 屏幕的ErrorOccurred事件报告错误。

call Arduino101SoundRecorder1 IsSupported

  • PlayRecordedSound – 触发播放录制的音频。

call Arduino101SoundRecorder1 PlayRecordedSound

  • StartRecording – 使用录音机的麦克风开始录音。

call Arduino101SoundRecorder1 StartRecording

  • StopRecording – 停止录音。录音限制为约80秒的音频。如果达到此限制, 录音将自动停止。

call Arduino101SoundRecorder1 StopRecording

文档反馈