At Command - Ebyte E103-W01 User Manual

Esp8266ex uart to wifi module
Table of Contents

Advertisement

Chengdu Ebyte Electronic Technology Co., Ltd.

8 AT command

AT+SYSIOSETCFG- set IO working mode
AT+SYSIOSETCFG=<pin>,<mode>,<pull-up>
Response:
1
OK
AT+SYSIOSETCFG=12,3,1 //set GPIO12 working at GPIO mode
Note:E103-W02 has GPIO4\GPIO5\GPIO12\GPIO13\GPIO14 available for user.
AT+SYSIOGETCFG-inquiry IO working mode
AT+SYSIOGETCFG=<pin>
Response:
2
+SYSIOGETCFG:<pin>, <mode>, <pull-up>
OK
For example:AT+SYSIOGETCFG=4
AT+SYSGPIODIR-set GPIO working as input and output
AT+SYSGPIODIR=<pin>,<dir>
Response:
• When succeed,return
OK
• if IO
pins are not in GPIO
3
NOT GPIO MODE!
ERROR
For example:
AT+SYSIOSETCFG=12,3,1 //set GPIO12 working at GPIO mode
AT+SYSGPIODIR=12,0 //set GPIO12 as input
AT+SYSGPIOWRITE-set GPIO output level
AT+SYSGPIOWRITE=<pin>, <level>
Response:
• When succeed,return
OK
• if IO
pins are not in output
NOT OUTPUT!
4
ERROR
For example:
AT+SYSIOSETCFG=12,3,1 //set GPIO12 working at GPIO mode
AT+SYSGPIODIR=12,1 //set GPIO12 as output
AT+SYSGPIOWRITE=12,1 //set GPIO12 outputting high level
AT+SYSGPIOREAD- read GPIO communication level
5
Copyright ©2012–2018 Chengdu Ebyte Electronic Technology Co., Ltd.
mode,it reminds
mode,it reminds
• <pin>: IO
pin No.
• <mode>: IO
working day
• <pull-up>
‣ 0:Disenable
1: Enable
• <pin>: IO
pin No.
• <mode>: IO
working day
• <pull-up>
‣ 0:Disenable
1: Enable
• <pin>: GPIO
No.
• <dir>:
‣ 0:set GPIO as input
‣ 1:set GPIO as output
• <pin>: GPIO No.
• <level>:
‣ 0:low level
‣ 1:high level
E103-W01 User Manual
23

Advertisement

Table of Contents
loading

Table of Contents