Download BLE 4.0 Module ZBModule User Manual
Transcript
Example: 0xA5 0xA3 0x01 0x0d 0x0d 0x5A 0x0e: Save the current setting of PWM This command is used remotely to save the current setting of PWM, so that the PWM status can be restored after power cycle. One typical application of this function is the RGB control of LEDs. Example: 0xA5 0xA3 0x01 0x0e 0x0e 0x5A 0x10: Clear the settings of the ZBmodule (including serial port setting, PWM setting, GPIO setting) Example: 0xA5 0xA3 0x01 0x10 0x10 0x5A After this command is executed, the serial port is restored to be 9600bps, 8N1. GPIOs will be all low level, and duty cycle of PWM will be 0 (i.e, no output). Complementary Commands: 0x05: Control 4 PWMS at the same time 0xA5 0xA3 0x06 0x05 CHMsk CH1_Duty CH2_Duty CH3_Cuty CH4_Duty CHMsk is the mask of the PWM channels. We can define multiple channel outputs by output=Ch1|Ch2|Ch3|Ch4. Ch1: 0x01 Ch2: 0x02 Ch3: 0x04 13 / 15 0xXX 0x5A