User's Manual

Chengdu Ebyte Electronic Technology Co., Ltd E104-BT5032A User Manual
Copyright ©2012–2019Chengdu Ebyte Electronic Technology Co., Ltd
19
below.
PinP0.xx
IO PWM
2
Available Available
3
Available Available
4
Available Available
5
Available Available
6
Available Available
7
Available Available
25
Available Available
26
Available Available
GPIO function pin
Note:
1. When IO and PWM are not used, it is recommended to turn off the corresponding function, otherwise it will affect
the low power performance of the module.
2. If GPIO is currently set. Before changing the function, the current function need to be closed.
3. PWM reset frequency is required. Close the current PWM before resetting it.
4. When setting GPIO, all are ordinary IO. No pull-up, no pull-down
5.9.1 Input and output
Input
1. Command AT+PINCONF=2,1, set pin 2 as input;
2. Command AT+ PINGET=2, set pin 2 as communication level
Module returns +OK=0, means pin 2 is low communication level.
Output
1. Command AT+PINCONF=3,2, Set pin 3 as output;
2. Command AT+PINSET=3,1, set pin 3 as high communication level.
Restore to default state turn off IO function
1. Command AT+PINCONF=3,0.
5.9.2 PWM
1. Command AT+PWMCONF=2,100000,50. Set pin 2 as PWMand frequency is 100KHZduty cycle is 50%.
2. Command AT+ PWMDUTYSET=2,10, set pin 2 as PWM and duty cycle is 10%.
3. Command AT+PWMUNINIT=2, turn off PWM.