fix: 修改灯条与蜂鸣器输出
This commit is contained in:
@@ -151,13 +151,13 @@ void by_messy_loop(void)
|
||||
case 0x61: // 设置闪灯
|
||||
by_frame_send(cmd, buff);
|
||||
memcpy(buff_t_u8, buff, sizeof(buff[1]));
|
||||
gpio_bits_write(GPIOC, GPIO_PINS_3, buff_t_u8[0] ? FALSE : TRUE); // 灯条
|
||||
gpio_bits_write(GPIOB, GPIO_PINS_6, buff_t_u8[0] ? TRUE : FALSE); // 灯条
|
||||
break;
|
||||
|
||||
case 0x62: // 设置蜂鸣器
|
||||
by_frame_send(cmd, buff);
|
||||
memcpy(buff_t_u8, buff, sizeof(buff[1]));
|
||||
gpio_bits_write(GPIOC, GPIO_PINS_2, buff_t_u8[0] ? FALSE : TRUE); // 灯条
|
||||
gpio_bits_write(GPIOB, GPIO_PINS_7, buff_t_u8[0] ? TRUE : FALSE); // 灯条
|
||||
break;
|
||||
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user