Chengdu Ebyte Electronic Technology Co.,Ltd
Copyright ©2012–2019
,
Chengdu Ebyte Electronic Technology Co., Ltd.
4-23
Note: After the maximum number of rejoin attempts, if the previous network has not been restored, the previous
network information will be cleared. The power consumption of the new network scanned by Rejoin period is higher
than that of the network before the restoration. Therefore, for devices with high power consumption requirements, the
two parameters of rejoin period and Rejoin maxcount need to be set larger by default, both of which are set to 5 by
default.
6.6.18Wireless remote configuration ID
Remote Header:
0x0000 indicates the wireless network configuration is turned off, 0x0001
~
0xFFFFindicates the
remote configuration is turned on, and the default setting is 0xA88A(0xA8 0x8A).
6.6.19 User gpio parameter
Gpio: Format of peripheral configuration data
(
3 Byte
):
GpioId In/Out level
。
gpioid : Channel ID
Channel ID
GPIO Port
00
PE3 Port
01
PA1 Port
02
PE1 Port
In/Out: Channel output / input mode
0 Output
1 Input
level: Channel Level state
0 Low level
1 High level
2 Flip
Note: When configured as input, the level indicates the input level value is 0 (low level) or 1 (high level). When
the output is configured, the level indicates 0 (low level), 1 (high level), 2 (Level flip) output.
6.6.20 User pwm parameter
Pwm : Peripheral configuration data format
(
6 Byte
):
PwmId start/stop Period1 Period2
duty1 duty2
PwmId : Channel ID
Channel ID
PWM GPIO Port
0x00
PB4 Port
0x01
PA0 Port
0x02
PA3 Port
0x03
PC5 Port
start/stop: Start/stop channel PWM output
0xFF Start PWM
0x00 Stop PWM