touchRead()

名称

touchRead()

説明

タッチセンサの値を読み取る。ピンに触れると値が小さくなる。

書式

touch_value_t touchRead(uint8_t);

引数

pin利用するピン番号。T0~T9の10個から選択する。

シンボル(T0~T9)とピン番号の対応は以下の通り。

シンボル ピン番号
T0 GPIO4
T1 GPIO0
T2 GPIO2
T3 GPIO15
T4 GPIO13
T5 GPIO12
T6 GPIO14
T7 GPIO27
T8 GPIO33
T9 GPIO32

戻り値

タッチセンサの値。

使用例

バージョン

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

最終更新日

September 4, 2022

inserted by FC2 system