Read Io Input; Set And Read Io Output; Set And Read Pwm Enable; Set And Query Pwm Output Period - Ebyte E104-BT51 User Manual

Cc2640r2f ble5.0 low power consumption, bluetooth to serial port module
Table of Contents

Advertisement

Chengdu Ebyte Electronic Technology Co.,Ltd.
Setting:AT+LOGMSG=[para]
Description: It takes effect immediately, save when power off

6.40 Read IO input

Query:AT+READGPIO?
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
Query:AT+OUTGPIO?
Setting:AT+OUTGPIO=[para]
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
Query:AT+PWMx?
Setting:AT+PWMx=[para]
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
Query:AT+PERIODx?
Setting:AT+PERIODx=[para]
Description:
Copyright ©2012–2019,Chengdu Ebyte Electronic Technology Co.,Ltd.
3-28
+OK:Success
+ERR=[NUM]:Error
Command
Response
+OK=[para]
Response
+OK=[para]
+OK:Success
+ERR=[NUM]:Error
Response
+OK=[para]
+OK:Success
+ERR=[NUM]:Error
Response
+OK=[para]
+OK:Success
+ERR=[NUM]:Error
E104-BT51 User Manual
0:Disabled
1:Enabled
Parameter
para: 0~F
Parameter
para: 0~F
(Hexadecimal code)
Parameter
x:No.
para:
0 Disable PWM
1 Enable PWM
Parameter
para: 10~100000 Unit us
x: No.

Advertisement

Table of Contents
loading

Table of Contents