Chengdu Ebyte Electronic Technology Co., Ltd.
E103-W01-IPX User Manual
Copyright ©2012–2018
,成都亿佰特电子科技有限公司
26
7 AT command
Only list some special AT command for your reference, more AT command please refer to the official datasheet.
1
AT+EBPWM-PWM Set or modify
T+EBPWM=<channel_num>,<period>,<duty0>[,<du
ty1>][,<duty2>][,<duty3>]
Parameter specification
:
channel_num
:
channel number
period
:
cycle
(
1000~10000corresponding
to1~10ms
)
duty0~duty3
:
PWM0~PWM3Duty cycle setting
(
high level time=duty*45ns
)
Duty number should keep the same with channel
number.
Response:
First transmission response
:
PWM Start!
Non-first transmission response
:
OK
Error response
:
ERROR
Example: Set PWM0 duty cycle 25% PWM1 duty cycle 50% cycle 10ms
AT+EBPWM=2,10000,55555,111111
Notes
:
PWM cannot be closed after booting, and channel number cannot be modified.
2
AT+EBIOGET to get IO input status
AT+EBIOGET=<gpio_num>
Parameter specification
:
gpio_num
:
GPIO number, 4,5,12,13 and 14 are
available.
Response
:
0 or 1
OK
Example
:
AT+EBIOGET=4
Notes
:
The pins which could been used to be the PWM output, is not suitable for this command.
3
AT+EBIOSET to configure IO output status
AT+EBIOSET=<gpio_num>
,
<value>
Parameter specification
:
gpio_num
:
GPIO number, 4,5,12,13 and 14 are
available.
Value: Pin status can be configure to 0,1
Response
:
OK
Example
:
AT+EBIOSET=4
,
1
Notes
:
The pins which could been used to be the PWM output, is not suitable for this command.
4
AT+EBADC to get ADC value
AT+EBADC
Parameter specification
:
Range of input voltage
:
DC 0.0V~1.0V
Response
:
45
(
real voltage=45/1024
)
OK
Example
:
AT+EBADC
5
AT+EBSTATE register GPIO13 as Wi-Fi indicator