Skip to content

Commit

Permalink
Relocate base WS2812 code (#24850)
Browse files Browse the repository at this point in the history
  • Loading branch information
fauxpark authored Jan 25, 2025
1 parent 2dd2d4e commit a6e9314
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions builddefs/common_features.mk
Original file line number Diff line number Diff line change
Expand Up @@ -944,6 +944,8 @@ ifeq ($(strip $(WS2812_DRIVER_REQUIRED)), yes)

OPT_DEFS += -DWS2812_$(strip $(shell echo $(WS2812_DRIVER) | tr '[:lower:]' '[:upper:]'))

COMMON_VPATH += $(DRIVER_PATH)/led

SRC += ws2812.c ws2812_$(strip $(WS2812_DRIVER)).c

ifeq ($(strip $(PLATFORM)), CHIBIOS)
Expand Down
File renamed without changes.
File renamed without changes.
5 changes: 4 additions & 1 deletion keyboards/ibm/model_m/mschwingen/mschwingen.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,12 @@
#include "uart.h"
#include "print.h"
#include "sendchar.h"
#include "ws2812.h"
#include "sleep_led.h"

#ifdef KEYBOARD_ibm_model_m_mschwingen_led_ws2812
#include "ws2812.h"
#endif

#ifdef UART_DEBUG
# undef sendchar
static int8_t capture_sendchar(uint8_t c) {
Expand Down

0 comments on commit a6e9314

Please sign in to comment.