ledcWriteTone()

名称

ledcWriteTone()

説明

LED PWMを利用して、指定した周波数をPWM出力する。

書式

uint32_t ledcWriteTone(uint8_t chan, uint32_t freq);

引数

chan 利用するチャネル。0~15。
freq 出力する周波数。

戻り値

実際に出力した周波数。

使用例

バージョン

Hardware:ESP-WROOM-32
Software:Arduino core for the ESP32 2.0.4

最終更新日

September 4, 2022

inserted by FC2 system