Files

17 lines
345 B
Markdown
Raw Permalink Normal View History

2018-11-30 17:31:47 +08:00
# Speaker
2018-12-04 15:00:14 +08:00
中文 | [English](/en/api_reference/micropython/api_speaker) | [日本語](/ja/api_reference/micropython/api_speaker)
2018-11-30 17:31:47 +08:00
### <mark>tone</mark>
> M5.Speaker.tone(uint32_t freq);
设置声音音高
| Param | Type | Description |
| --- | --- | --- |
| freq | <code>uint32_t</code> | 频率 |
**例程**
```c++
M5.Speaker.tone(100);
```