EasyManua.ls Logo

DFRobot FIREBEETLE BOARD-ESP32 - Page 44

DFRobot FIREBEETLE BOARD-ESP32
49 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Welcome to DFRobot: www.DFRobot.com.cn 44 / 49
delay(1000);
}
Please click verify/compile to review and please upload it after the confirmation.
Once you click Upload, IDE will send codes to FireBeetle Board-ESP32.
Once the upload finishes, open the built-in serial monitor of Arduino IDE, touch D9 with your hand
(T2 corresponds to D9) print 1 shown as below.
Code analysis:
Obtaining GPIO state of the capacitance sensors only requiring calling touchRead. The antitype
of touchRead is as below:
uint16_t touchRead(uint8_t pin)
0 means no touch, 1 means touch. From T0 to T9 are pins, the corresponding pins of Firebeetle
shown in the list as below.
Sequence No.
Corresponding Hardware
FireBeetle Board-ESP32
T0
GPIO4
DO/IO4
T1
GPIO0
IO0
T2
GPIO2
IO2/D9
T3
MTDO
A4/IO15
T4
MTCK
IO13/D7
T5
MTD1
MCLK/IO12
T6
MTMS
BCLK/EO14
T7
GPIO27
IO27/D4
T8
32K_XN
External crystal
T9
32K_XP
External crystal
Caution: Please do not use T8/T9 for touch input. They have already been connect to outer crystals
of 32.768 KHz.