Support for an RGB LED using 3 pins

This commit is contained in:
Scott Lahteine
2016-11-29 19:51:13 -06:00
parent 092e949b58
commit 65c50e062e
24 changed files with 238 additions and 10 deletions

View File

@ -885,6 +885,17 @@
#endif
#endif
/**
* RGB_LED Requirements
*/
#if ENABLED(RGB_LED)
#if !(PIN_EXISTS(RGB_LED_R) && PIN_EXISTS(RGB_LED_G) && PIN_EXISTS(RGB_LED_B))
#error "RGB_LED requires RGB_LED_R_PIN, RGB_LED_G_PIN, and RGB_LED_B_PIN."
#elif ENABLED(BLINKM)
#error "RGB_LED and BLINKM are currently incompatible (both use M150)."
#endif
#endif
/**
* Auto Fan check for PWM pins
*/