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
3da7bc5c04
commit
6d9786d4dd
@ -76,7 +76,7 @@ This library for KC868-H32B Pro smart controller based on ESP32 chip, you should
|
|||||||
|
|
||||||
- **boolean writeSwitch(int idx, int value)**
|
- **boolean writeSwitch(int idx, int value)**
|
||||||
|
|
||||||
- Turn ON/OFF specified channel relay. The range of parameter 'idx' is 1-32, corresponding to 32 relays; the value of parameter value is 0 and 1, 0 is OFF, 1 is ON
|
- Turn ON/OFF specified channel relay. The range of parameter `idx` is 1-32, corresponding to 32 relays; the value of parameter value is 0 and 1, 0 is OFF, 1 is ON
|
||||||
- The return value is of type `boolean`, `true` means the operation succeeded, `false` means the operation failed.
|
- The return value is of type `boolean`, `true` means the operation succeeded, `false` means the operation failed.
|
||||||
- Code example:
|
- Code example:
|
||||||
|
|
||||||
@ -169,7 +169,7 @@ This library for KC868-H32B Pro smart controller based on ESP32 chip, you should
|
|||||||
|
|
||||||
`void SwitchUpdate(uint8_t idx, uint8_t state)`
|
`void SwitchUpdate(uint8_t idx, uint8_t state)`
|
||||||
|
|
||||||
function has two parameters, the range of 'idx' is 1-32, corresponding to the channel number of the relay that has changed, the value of state is 0 or 1, 0 means to OFF, and 1 means to ON.
|
function has two parameters, the range of `idx` is 1-32, corresponding to the channel number of the relay that has changed, the value of state is 0 or 1, 0 means to OFF, and 1 means to ON.
|
||||||
- Code example:
|
- Code example:
|
||||||
|
|
||||||
|
|
||||||
@ -188,7 +188,7 @@ This library for KC868-H32B Pro smart controller based on ESP32 chip, you should
|
|||||||
|
|
||||||
`void SwitchUpdate(uint8_t idx, uint8_t state)`
|
`void SwitchUpdate(uint8_t idx, uint8_t state)`
|
||||||
|
|
||||||
function has two parameters, the range of 'idx' is 1-6, corresponding to the channel number of the digital input that has changed, the value of state is 0 or 1, 0 means triggered, and 1 means not triggered.
|
function has two parameters, the range of `idx` is 1-6, corresponding to the channel number of the digital input that has changed, the value of state is 0 or 1, 0 means triggered, and 1 means not triggered.
|
||||||
- Code example:
|
- Code example:
|
||||||
|
|
||||||
```c++
|
```c++
|
||||||
|
Loading…
Reference in New Issue
Block a user