Skip to content

Commit

Permalink
WS2812: Better error message when trying to use bitbang driver on R…
Browse files Browse the repository at this point in the history
…P2040 (qmk#23025)
  • Loading branch information
fauxpark authored and nuess0r committed Sep 8, 2024
1 parent abf8a6f commit 56b44ff
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion platforms/chibios/drivers/ws2812_bitbang.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@
# if defined(STM32F0XX) || defined(STM32F1XX) || defined(GD32VF103) || defined(STM32F3XX) || defined(STM32F4XX) || defined(STM32L0XX) || defined(WB32F3G71xx) || defined(WB32FQ95xx)
# define NOP_FUDGE 0.4
# else
# error("NOP_FUDGE configuration required")
# if defined(RP2040)
# error "Please use `vendor` WS2812 driver for RP2040"
# else
# error "NOP_FUDGE configuration required"
# endif
# define NOP_FUDGE 1 // this just pleases the compile so the above error is easier to spot
# endif
#endif
Expand Down

0 comments on commit 56b44ff

Please sign in to comment.