WS2812: Better error message when trying to use `bitbang` driver on RP2040 (#23025)

master
Ryan 2024-02-06 18:09:22 +11:00 committed by GitHub
parent fa2fb9bbe0
commit 45ae4dec4d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 1 deletions

View File

@ -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