确认 HPW422 V1.3 通道及对码版本
This commit is contained in:
@@ -154,13 +154,13 @@ void app_key_callback_handler(uint16_t key_value) //按键回调函数
|
||||
case MODE_DOUBLE_CLICK: //双击
|
||||
|
||||
key_state=KEY_SHORT;
|
||||
power=3;
|
||||
power=4;
|
||||
led_state=2;
|
||||
break;
|
||||
|
||||
case MODE_QUAD_CLICK: //四击
|
||||
key_state=KEY_SHORT;
|
||||
power=4;
|
||||
power=3;
|
||||
led_state=2;
|
||||
break;
|
||||
|
||||
@@ -181,14 +181,14 @@ void ble_mode_scan(void)
|
||||
case 1:
|
||||
receive_mode=0;
|
||||
key_state=KEY_SHORT;
|
||||
power=3;
|
||||
power=4;
|
||||
led_state=2;
|
||||
break;
|
||||
|
||||
case 2:
|
||||
receive_mode=0;
|
||||
key_state=KEY_SHORT;
|
||||
power=4;
|
||||
power=3;
|
||||
led_state=2;
|
||||
break;
|
||||
|
||||
@@ -439,4 +439,3 @@ void scan_433(void)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -32,14 +32,14 @@ void scan_uart(uint8_t *arr)
|
||||
switch(user_rx_buf[1])
|
||||
{
|
||||
case 0x01:
|
||||
xc_gpio_toggle_pin(GPIO_2);
|
||||
flash_ch2_state=xc_gpio_read_pin(GPIO_2);
|
||||
xc_gpio_toggle_pin(GPIO_5);
|
||||
flash_ch1_state=xc_gpio_read_pin(GPIO_5);
|
||||
flash_run();
|
||||
break;
|
||||
|
||||
case 0x02:
|
||||
xc_gpio_toggle_pin(GPIO_5);
|
||||
flash_ch1_state=xc_gpio_read_pin(GPIO_5);
|
||||
xc_gpio_toggle_pin(GPIO_2);
|
||||
flash_ch2_state=xc_gpio_read_pin(GPIO_2);
|
||||
flash_run();
|
||||
break;
|
||||
|
||||
@@ -104,5 +104,3 @@ void ble_message_process(void)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user