Menu items for Separate NeoPixel (#19280)
This commit is contained in:
@ -2119,18 +2119,20 @@ static_assert(hbm[Z_AXIS] >= 0, "HOMING_BUMP_MM.Z must be greater than or equal
|
||||
#if !(_RGB_TEST && PIN_EXISTS(RGB_LED_W))
|
||||
#error "RGBW_LED requires RGB_LED_R_PIN, RGB_LED_G_PIN, RGB_LED_B_PIN, and RGB_LED_W_PIN."
|
||||
#endif
|
||||
#elif ENABLED(NEOPIXEL_LED)
|
||||
#if !(PIN_EXISTS(NEOPIXEL) && NEOPIXEL_PIXELS > 0)
|
||||
#endif
|
||||
#undef _RGB_TEST
|
||||
|
||||
// NeoPixel requirements
|
||||
#if ENABLED(NEOPIXEL_LED)
|
||||
#if !PIN_EXISTS(NEOPIXEL) || NEOPIXEL_PIXELS == 0
|
||||
#error "NEOPIXEL_LED requires NEOPIXEL_PIN and NEOPIXEL_PIXELS."
|
||||
#endif
|
||||
#elif ENABLED(NEOPIXEL2_SEPARATE)
|
||||
#if !(PIN_EXISTS(NEOPIXEL2) && NEOPIXEL2_PIXELS > 0)
|
||||
#error "NEOPIXEL2 requires NEOPIXEL2_PIN and NEOPIXEL2_PIXELS."
|
||||
#elif ENABLED(NEOPIXEL2_SEPARATE) && !(NEOPIXEL2_TYPE && PIN_EXISTS(NEOPIXEL2) && NEOPIXEL2_PIXELS > 0)
|
||||
#error "NEOPIXEL2_SEPARATE requires NEOPIXEL2_PIN, NEOPIXEL2_TYPE and NEOPIXEL2_PIXELS."
|
||||
#elif ENABLED(NEO2_COLOR_PRESETS) && DISABLED(NEOPIXEL2_SEPARATE)
|
||||
#error "NEO2_COLOR_PRESETS requires NEOPIXEL2_SEPARATE to be enabled."
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#undef _RGB_TEST
|
||||
|
||||
#if DISABLED(NO_COMPILE_TIME_PWM)
|
||||
#define _TEST_PWM(P) PWM_PIN(P)
|
||||
#else
|
||||
|
Reference in New Issue
Block a user