Chengdu Ebyte Electronic Technology Co., Ltd.
E103-W01 User Manual
Copyright ©2012–2018
Chengdu Ebyte Electronic Technology Co., Ltd.
19
6.4 Usage of GPIO
No.
Remark
1
E103-W01 provides 5 GPIOs: GPIO4\GPIO5\GPIO12\GPIO13\GPIO14.
2
The user can set the pin through the AT+SYSIO series of instructions, the instructions are as follows:
AT+SYSIOSETCFG: Set the IO working mode;
AT+SYSIOGETCFG: Query working mode;
AT+SYSGPIODIR: Set GPIO work as input and output;
AT+SYSGPIOWRITE: Set the output level of GPIO;
AT+SYSGPIOREAD: Read the level status of GPIO;
6.5 Usage of ADC
No.
Remark
1
E103-W01 provides one ADC with 10-byte precision, with which 0.0V ~ 1.0V voltage can be detected.
2
User can get current ADC value by AT command (AT+SYSADC?), then obtain the real voltage by calculation.
3
Input voltage=ADC value/1024
For example, ADC value is 45, so the really voltage is equal to 45/1024=0.044V.