Chengdu Ebyte Electronic Technology Co.,Ltd.
Copyright ©2012–2019
,
Chengdu Ebyte Electronic Technology Co.,Ltd.
3-28
0
:
Disabled
1
:
Enabled
Setting
:
AT+LOGMSG=[para]
+OK
:
Success
+ERR=[NUM]
:
Error
Description: It takes effect immediately, save when power off
6.40 Read IO input
Command
Response
Parameter
Query
:
AT+READGPIO?
+OK=[para]
para: 0~F
Description: It takes effect immediately
INPUTGPIO3, 2, 1, 00:00, which means that all collected data is low level, hexadecimal: 0, INPUTGPIO3, 2, 1, 0: 1001, which means
INPUTGPIO3, 0 is high level INPUTGPIO2, 1 bit Low level, hexadecimal: 9
6.41 Set and read IO output
Command
Response
Parameter
Query
:
AT+OUTGPIO?
+OK=[para]
para: 0~F
(
Hexadecimal code
)
Setting
:
AT+OUTGPIO=[para]
+OK
:
Success
+ERR=[NUM]
:
Error
Description: It takes effect immediately, save when power off
OUTGPIO3, 2, 1, 0: 0000, which means that they are all low level, and the hexadecimal number is 0; OUTGPIO3, 2, 1, 0: 1010, which
means that OUTGPIO3, 1 outputs high, OUTGPIO2, 0 output low, and the hexadecimal number is A.
6.42 Set and read PWM enable
Command
Response
Parameter
Query
:
AT+PWMx?
+OK=[para]
x:No.
para:
0 Disable PWM
1 Enable PWM
Setting
:
AT+PWMx=[para]
+OK
:
Success
+ERR=[NUM]
:
Error
Description: It takes effect immediately, save when power off. Foe example, setting PWM1 enabled: AT + PWM1 = 1
6.43 Set and query PWM output period
Command
Response
Parameter
Query
:
AT+PERIODx?
+OK=[para]
para: 10~100000 Unit us
x: No.
Setting
:
AT+PERIODx=[para]
+OK
:
Success
+ERR=[NUM]
:
Error
Description: