Browse Source

led not working

qwiic_hub
Jack Humbert 5 years ago
parent
commit
75f1181ad6
6 changed files with 10 additions and 13 deletions
  1. +1
    -1
      keyboards/qwiic_hub/chconf.h
  2. +1
    -6
      keyboards/qwiic_hub/config.h
  3. +1
    -1
      keyboards/qwiic_hub/halconf.h
  4. +3
    -3
      keyboards/qwiic_hub/mcuconf.h
  5. +3
    -1
      keyboards/qwiic_hub/qwiic_hub.c
  6. +1
    -1
      quantum/rgblight.c

+ 1
- 1
keyboards/qwiic_hub/chconf.h View File

@ -41,7 +41,7 @@
* @brief System time counter resolution.
* @note Allowed values are 16 or 32 bits.
*/
#define CH_CFG_ST_RESOLUTION 32
#define CH_CFG_ST_RESOLUTION 16
/**
* @brief System tick frequency.


+ 1
- 6
keyboards/qwiic_hub/config.h View File

@ -134,11 +134,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define NO_USB_STARTUP_CHECK
#define WS2812_LED_N 1
#define RGBLED_NUM WS2812_LED_N
#define WS2812_TIM_N 2
#define WS2812_TIM_CH 2
#define PORT_WS2812 GPIOB
#define PIN_WS2812 8
#define RGBLED_NUM 1
#endif

+ 1
- 1
keyboards/qwiic_hub/halconf.h View File

@ -118,7 +118,7 @@
* @brief Enables the PWM subsystem.
*/
#if !defined(HAL_USE_PWM) || defined(__DOXYGEN__)
#define HAL_USE_PWM FALSE
#define HAL_USE_PWM TRUE
#endif
/**


+ 3
- 3
keyboards/qwiic_hub/mcuconf.h View File

@ -183,8 +183,8 @@
*/
#define STM32_PWM_USE_ADVANCED FALSE
#define STM32_PWM_USE_TIM1 FALSE
#define STM32_PWM_USE_TIM2 FALSE
#define STM32_PWM_USE_TIM3 FALSE
#define STM32_PWM_USE_TIM2 TRUE
#define STM32_PWM_USE_TIM3 TRUE
#define STM32_PWM_USE_TIM4 FALSE
#define STM32_PWM_USE_TIM8 FALSE
#define STM32_PWM_TIM1_IRQ_PRIORITY 7
@ -225,7 +225,7 @@
* ST driver system settings.
*/
#define STM32_ST_IRQ_PRIORITY 8
#define STM32_ST_USE_TIMER 2
#define STM32_ST_USE_TIMER 4
/*
* UART driver system settings.


+ 3
- 1
keyboards/qwiic_hub/qwiic_hub.c View File

@ -19,7 +19,7 @@
uint8_t *o_fb;
void matrix_init_kb(void) {
ledDriverInit(8, GPIOB, 0b00000010, &o_fb);
ledDriverInit(1, GPIOB, 0b100000000, &o_fb);
testPatternFB(o_fb);
matrix_init_user();
@ -30,6 +30,8 @@ bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
}
void matrix_scan_kb(void) {
testPatternFB(o_fb);
matrix_scan_user();
}


+ 1
- 1
quantum/rgblight.c View File

@ -328,7 +328,7 @@ void rgblight_disable_noeeprom(void) {
#ifdef RGBLIGHT_ANIMATIONS
rgblight_timer_disable();
#endif
_delay_ms(50);
wait_ms(50);
rgblight_set();
}


Loading…
Cancel
Save