Update API_Reference_EN.md

This commit is contained in:
hificat 2022-10-08 11:49:03 +08:00 committed by GitHub
parent 3a61873f76
commit 3da7bc5c04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: