mirror of
https://github.com/hzkincony/kc868-arduino-library.git
synced 2024-11-21 13:08:25 +01:00
Update API_Reference_EN.md
This commit is contained in:
parent
3a61873f76
commit
3da7bc5c04
@ -138,7 +138,7 @@ This library for KC868-H32B Pro smart controller based on ESP32 chip, you should
|
||||
|
||||
- **boolean readSensor(int idx)**
|
||||
|
||||
- Read the state of the input sensor with the specified channel number. The range of the parameter 'idx' is 1-6, corresponding to 6 digital input ports.
|
||||
- Read the state of the input sensor with the specified channel number. The range of the parameter `idx` is 1-6, corresponding to 6 digital input ports.
|
||||
- The return value is of type `boolean`, `true` is triggered, `flase` is not triggered.
|
||||
- Code example:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user