Low power WIFI module user manual
Jinan USR IOT Technology Limited
Page 67/72
B.1.6 PWM <channel> SET
Function: Save PWM
Channel setting
Parameters:
channel:PWM Channel number, it can be 11
、
12
、
18
、
20(GPIO Pin
number)
Return Data:
PWM OK: Command successful
PWM NOK: Command failed
B.2
Hexadecimal Network Command
Send hexadecimal data to fastly read module’s port status.
B.2.1 Read All PWM
Channel Frequency
Send Data:
【
30
】
:
Return Data:
【
b0 <value1 value2 value3 value4 value5 value6
value7 value8>
】
value1: High byte of PWM Channel 0(GPIO11) frequency
value2: Low byte of PWM Channel 0(GPIO11) frequency
value3: High byte of PWM Channel 1(GPIO12) frequency
value4: Low byte of PWM Channel 1(GPIO12) frequency
value5: High byte of PWM Channel 2(GPIO18) frequency
value6: Low byte of PWM Channel 2(GPIO18) frequency
value7: Not used
value8: Not used
B.2.2 Write PWM Channel Frequency
Send Data:
【
32 <channel value1 value2
】
:
channel: PWM Channel number
value1: High byte of PWM Channel frequency
value2: Low byte of PWM Channel frequency
Return Data:
【
b2 <channel value1 value2>
】
Channel: PWM Channel number
value1: High byte of PWM Channel frequency
value2: Low byte of PWM Channel frequency
B.2.3 Read All PWM Channel Duty
Send Data:
【
20
】
:
Return Data:
【
a0 <value1 value2 value3 value4>
】
value1: Duty of PWM Channel 0
value2: Duty of PWM Channel 1
value3: Duty of PWM Channel 2
value4: Not used.
B.2.4 Write PWM Channel Duty