Skip to content

Commit

Permalink
Add APA102_LED_COUNT define (qmk#22530)
Browse files Browse the repository at this point in the history
  • Loading branch information
fauxpark authored and mechlovin committed Jan 19, 2024
1 parent b5bcd5b commit be414ea
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions drivers/led/apa102.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@

#include "color.h"

#if defined(RGBLED_NUM)
# define APA102_LED_COUNT RGBLED_NUM
#elif defined(RGB_MATRIX_LED_COUNT)
# define APA102_LED_COUNT RGB_MATRIX_LED_COUNT
#endif

#ifndef APA102_DEFAULT_BRIGHTNESS
# define APA102_DEFAULT_BRIGHTNESS 31
#endif
Expand Down

0 comments on commit be414ea

Please sign in to comment.