From 609551212afc02f0c0b30fda165f90211eed23df Mon Sep 17 00:00:00 2001 From: Hayden Donald Date: Fri, 20 Dec 2024 17:22:21 +1100 Subject: [PATCH] AP_HAL_ChibiOS: Here4FC change WS2812 led PWM to 10/11 Changed the PWM from 9/10 to 10/11 for the WS2812 leds --- libraries/AP_HAL_ChibiOS/hwdef/Here4FC/defaults.parm | 4 ++-- libraries/AP_HAL_ChibiOS/hwdef/Here4FC/hwdef.dat | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Here4FC/defaults.parm b/libraries/AP_HAL_ChibiOS/hwdef/Here4FC/defaults.parm index 3cbd92be76..a7cd077b5f 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/Here4FC/defaults.parm +++ b/libraries/AP_HAL_ChibiOS/hwdef/Here4FC/defaults.parm @@ -1,6 +1,6 @@ # setup for ProfiLED -SERVO9_FUNCTION 132 -SERVO10_FUNCTION 129 +SERVO10_FUNCTION 132 +SERVO11_FUNCTION 129 NTF_LED_TYPES 512 NTF_LED_BRIGHT 2 NTF_LED_LEN 4 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Here4FC/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/Here4FC/hwdef.dat index 94d07648d6..a54a014ded 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/Here4FC/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/Here4FC/hwdef.dat @@ -116,8 +116,8 @@ IMU Invensensev3 SPI:icm42688 ROTATION_YAW_270 define HAL_DEFAULT_INS_FAST_SAMPLE 5 # WS2812 LED -PB8 TIM4_CH3 TIM4 PWM(9) -PB9 TIM4_CH4 TIM4 PWM(10) +PB8 TIM4_CH3 TIM4 PWM(10) +PB9 TIM4_CH4 TIM4 PWM(11) PD11 GPS_TP1 OUTPUT LOW GPIO(5) PD7 GPS_PPS INPUT PULLUP GPIO(6)