fix: 修改灯条与蜂鸣器输出

This commit is contained in:
bmy
2024-06-05 11:11:47 +08:00
parent 02b2b3ccc9
commit 26ae090e72

View File

@@ -151,13 +151,13 @@ void by_messy_loop(void)
case 0x61: // 设置闪灯 case 0x61: // 设置闪灯
by_frame_send(cmd, buff); by_frame_send(cmd, buff);
memcpy(buff_t_u8, buff, sizeof(buff[1])); 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; break;
case 0x62: // 设置蜂鸣器 case 0x62: // 设置蜂鸣器
by_frame_send(cmd, buff); by_frame_send(cmd, buff);
memcpy(buff_t_u8, buff, sizeof(buff[1])); 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; break;
default: default: