|
|
@ -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); |
|
|
|