1
0
mirror of https://github.com/whowechina/aic_pico.git synced 2024-11-24 14:00:09 +01:00

More current to drive regular LED

This commit is contained in:
whowechina 2024-05-18 14:28:36 +08:00
parent 0b602f1b05
commit 23d2cbc408

View File

@ -427,6 +427,7 @@ void light_init()
for (int i = 0; i < LED_NUM; i++) {
gpio_init(led_gpio[i]);
gpio_set_dir(led_gpio[i], GPIO_OUT);
gpio_set_drive_strength(RGB_PIN, GPIO_DRIVE_STRENGTH_12MA);
gpio_set_function(led_gpio[i], GPIO_FUNC_PWM);
int slice = pwm_gpio_to_slice_num(led_gpio[i]);