Browse Source

V11调整指示灯亮度

V13
zhaohe 1 year ago
parent
commit
3517a0a9ca
  1. 2
      app/src/basic/version.h
  2. 2
      app/src/board/board_light_ctrl.c

2
app/src/basic/version.h

@ -2,7 +2,7 @@
#define CATEGORY "M1002" // Èýµ¼Áª
#define MANUFACTURER_NAME "iflytop"
#define FIRMWARE_VERSION (10)
#define FIRMWARE_VERSION (11)
#define BLESTACK_VERSION 1
#define BOOTLOADER_VERSION 1
#define HARDWARE_VERSION (1)

2
app/src/board/board_light_ctrl.c

@ -64,7 +64,7 @@ void BoardLight_setGreenLightState(bool state) {
m_boardlight_greenlightstate = state;
#if LIGHT_PWM_DRIVER
if (state) {
light_ctrl.seq_values.channel_0 = 99; // top_value
light_ctrl.seq_values.channel_0 = 97; // top_value
nrfx_pwm_simple_playback(&light_ctrl.driver, &light_ctrl.seq, 1, NRF_DRV_PWM_FLAG_LOOP);
} else {
nrfx_pwm_stop(&light_ctrl.driver, true);

Loading…
Cancel
Save