PCA9632 PWM color LED support

Add support for the PCA9632 PWM color LED driver used on the Ultimaker 2 and Wanhao Duplicator 6.
This commit is contained in:
dot-bob
2017-06-10 00:02:15 -06:00
committed by Scott Lahteine
parent 896dfa0577
commit 0bc66bf22c
35 changed files with 292 additions and 41 deletions

View File

@@ -1482,6 +1482,9 @@
//define BlinkM/CyzRgb Support
//#define BLINKM
//define PCA9632 PWM LED driver Support
//#define PCA9632
/**
* RGB LED / LED Strip Control
*
@@ -1519,7 +1522,7 @@
* - Change to green once print has finished
* - Turn off after the print has finished and the user has pushed a button
*/
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED)
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632)
#define PRINTER_EVENT_LEDS
#endif

View File

@@ -1479,6 +1479,9 @@
//define BlinkM/CyzRgb Support
//#define BLINKM
//define PCA9632 PWM LED driver Support
//#define PCA9632
/**
* RGB LED / LED Strip Control
*
@@ -1516,7 +1519,7 @@
* - Change to green once print has finished
* - Turn off after the print has finished and the user has pushed a button
*/
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED)
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632)
#define PRINTER_EVENT_LEDS
#endif

View File

@@ -1463,6 +1463,9 @@
//define BlinkM/CyzRgb Support
//#define BLINKM
//define PCA9632 PWM LED driver Support
//#define PCA9632
/**
* RGB LED / LED Strip Control
*
@@ -1500,7 +1503,7 @@
* - Change to green once print has finished
* - Turn off after the print has finished and the user has pushed a button
*/
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED)
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632)
#define PRINTER_EVENT_LEDS
#endif

View File

@@ -1463,6 +1463,9 @@
//define BlinkM/CyzRgb Support
//#define BLINKM
//define PCA9632 PWM LED driver Support
//#define PCA9632
/**
* RGB LED / LED Strip Control
*
@@ -1500,7 +1503,7 @@
* - Change to green once print has finished
* - Turn off after the print has finished and the user has pushed a button
*/
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED)
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632)
#define PRINTER_EVENT_LEDS
#endif

View File

@@ -1485,6 +1485,9 @@
//define BlinkM/CyzRgb Support
//#define BLINKM
//define PCA9632 PWM LED driver Support
//#define PCA9632
/**
* RGB LED / LED Strip Control
*
@@ -1522,7 +1525,7 @@
* - Change to green once print has finished
* - Turn off after the print has finished and the user has pushed a button
*/
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED)
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632)
#define PRINTER_EVENT_LEDS
#endif

View File

@@ -1471,6 +1471,9 @@
//define BlinkM/CyzRgb Support
//#define BLINKM
//define PCA9632 PWM LED driver Support
//#define PCA9632
/**
* RGB LED / LED Strip Control
*
@@ -1508,7 +1511,7 @@
* - Change to green once print has finished
* - Turn off after the print has finished and the user has pushed a button
*/
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED)
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632)
#define PRINTER_EVENT_LEDS
#endif

View File

@@ -1474,6 +1474,9 @@
//define BlinkM/CyzRgb Support
//#define BLINKM
//define PCA9632 PWM LED driver Support
//#define PCA9632
/**
* RGB LED / LED Strip Control
*
@@ -1511,7 +1514,7 @@
* - Change to green once print has finished
* - Turn off after the print has finished and the user has pushed a button
*/
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED)
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632)
#define PRINTER_EVENT_LEDS
#endif

View File

@@ -1515,6 +1515,9 @@
//define BlinkM/CyzRgb Support
//#define BLINKM
//define PCA9632 PWM LED driver Support
//#define PCA9632
/**
* RGB LED / LED Strip Control
*
@@ -1552,7 +1555,7 @@
* - Change to green once print has finished
* - Turn off after the print has finished and the user has pushed a button
*/
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED)
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632)
#define PRINTER_EVENT_LEDS
#endif

View File

@@ -1481,6 +1481,9 @@
//define BlinkM/CyzRgb Support
//#define BLINKM
//define PCA9632 PWM LED driver Support
//#define PCA9632
/**
* RGB LED / LED Strip Control
*
@@ -1518,7 +1521,7 @@
* - Change to green once print has finished
* - Turn off after the print has finished and the user has pushed a button
*/
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED)
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632)
#define PRINTER_EVENT_LEDS
#endif

View File

@@ -1481,6 +1481,9 @@
//define BlinkM/CyzRgb Support
//#define BLINKM
//define PCA9632 PWM LED driver Support
//#define PCA9632
/**
* RGB LED / LED Strip Control
*
@@ -1518,7 +1521,7 @@
* - Change to green once print has finished
* - Turn off after the print has finished and the user has pushed a button
*/
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED)
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632)
#define PRINTER_EVENT_LEDS
#endif

View File

@@ -1508,6 +1508,9 @@
//define BlinkM/CyzRgb Support
//#define BLINKM
//define PCA9632 PWM LED driver Support
//#define PCA9632
/**
* RGB LED / LED Strip Control
*
@@ -1545,7 +1548,7 @@
* - Change to green once print has finished
* - Turn off after the print has finished and the user has pushed a button
*/
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED)
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632)
#define PRINTER_EVENT_LEDS
#endif

View File

@@ -1481,6 +1481,9 @@
//define BlinkM/CyzRgb Support
//#define BLINKM
//define PCA9632 PWM LED driver Support
//#define PCA9632
/**
* RGB LED / LED Strip Control
*
@@ -1518,7 +1521,7 @@
* - Change to green once print has finished
* - Turn off after the print has finished and the user has pushed a button
*/
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED)
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632)
#define PRINTER_EVENT_LEDS
#endif

View File

@@ -1481,6 +1481,9 @@
//define BlinkM/CyzRgb Support
//#define BLINKM
//define PCA9632 PWM LED driver Support
//#define PCA9632
/**
* RGB LED / LED Strip Control
*
@@ -1518,7 +1521,7 @@
* - Change to green once print has finished
* - Turn off after the print has finished and the user has pushed a button
*/
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED)
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632)
#define PRINTER_EVENT_LEDS
#endif

View File

@@ -1496,6 +1496,9 @@
//define BlinkM/CyzRgb Support
//#define BLINKM
//define PCA9632 PWM LED driver Support
//#define PCA9632
/**
* RGB LED / LED Strip Control
*
@@ -1533,7 +1536,7 @@
* - Change to green once print has finished
* - Turn off after the print has finished and the user has pushed a button
*/
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED)
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632)
#define PRINTER_EVENT_LEDS
#endif

View File

@@ -1500,6 +1500,9 @@
//define BlinkM/CyzRgb Support
//#define BLINKM
//define PCA9632 PWM LED driver Support
//#define PCA9632
/**
* RGB LED / LED Strip Control
*
@@ -1537,7 +1540,7 @@
* - Change to green once print has finished
* - Turn off after the print has finished and the user has pushed a button
*/
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED)
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632)
#define PRINTER_EVENT_LEDS
#endif

View File

@@ -1537,6 +1537,9 @@
//define BlinkM/CyzRgb Support
//#define BLINKM
//define PCA9632 PWM LED driver Support
//#define PCA9632
/**
* RGB LED / LED Strip Control
*
@@ -1574,7 +1577,7 @@
* - Change to green once print has finished
* - Turn off after the print has finished and the user has pushed a button
*/
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED)
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632)
#define PRINTER_EVENT_LEDS
#endif

View File

@@ -1471,6 +1471,9 @@
//define BlinkM/CyzRgb Support
//#define BLINKM
//define PCA9632 PWM LED driver Support
//#define PCA9632
/**
* RGB LED / LED Strip Control
*
@@ -1508,7 +1511,7 @@
* - Change to green once print has finished
* - Turn off after the print has finished and the user has pushed a button
*/
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED)
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632)
#define PRINTER_EVENT_LEDS
#endif

View File

@@ -1481,6 +1481,9 @@
//define BlinkM/CyzRgb Support
//#define BLINKM
//define PCA9632 PWM LED driver Support
//#define PCA9632
/**
* RGB LED / LED Strip Control
*
@@ -1518,7 +1521,7 @@
* - Change to green once print has finished
* - Turn off after the print has finished and the user has pushed a button
*/
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED)
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632)
#define PRINTER_EVENT_LEDS
#endif

View File

@@ -1602,6 +1602,9 @@
//define BlinkM/CyzRgb Support
//#define BLINKM
//define PCA9632 PWM LED driver Support
//#define PCA9632
/**
* RGB LED / LED Strip Control
*
@@ -1639,7 +1642,7 @@
* - Change to green once print has finished
* - Turn off after the print has finished and the user has pushed a button
*/
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED)
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632)
#define PRINTER_EVENT_LEDS
#endif

View File

@@ -1603,6 +1603,9 @@
//define BlinkM/CyzRgb Support
//#define BLINKM
//define PCA9632 PWM LED driver Support
//#define PCA9632
/**
* RGB LED / LED Strip Control
*
@@ -1640,7 +1643,7 @@
* - Change to green once print has finished
* - Turn off after the print has finished and the user has pushed a button
*/
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED)
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632)
#define PRINTER_EVENT_LEDS
#endif

View File

@@ -1592,6 +1592,9 @@
//define BlinkM/CyzRgb Support
//#define BLINKM
//define PCA9632 PWM LED driver Support
//#define PCA9632
/**
* RGB LED / LED Strip Control
*
@@ -1629,7 +1632,7 @@
* - Change to green once print has finished
* - Turn off after the print has finished and the user has pushed a button
*/
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED)
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632)
#define PRINTER_EVENT_LEDS
#endif

View File

@@ -1595,6 +1595,9 @@
//define BlinkM/CyzRgb Support
//#define BLINKM
//define PCA9632 PWM LED driver Support
//#define PCA9632
/**
* RGB LED / LED Strip Control
*
@@ -1632,7 +1635,7 @@
* - Change to green once print has finished
* - Turn off after the print has finished and the user has pushed a button
*/
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED)
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632)
#define PRINTER_EVENT_LEDS
#endif

View File

@@ -1600,6 +1600,9 @@
//define BlinkM/CyzRgb Support
//#define BLINKM
//define PCA9632 PWM LED driver Support
//#define PCA9632
/**
* RGB LED / LED Strip Control
*
@@ -1637,7 +1640,7 @@
* - Change to green once print has finished
* - Turn off after the print has finished and the user has pushed a button
*/
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED)
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632)
#define PRINTER_EVENT_LEDS
#endif

View File

@@ -1658,6 +1658,9 @@
//define BlinkM/CyzRgb Support
//#define BLINKM
//define PCA9632 PWM LED driver Support
//#define PCA9632
/**
* RGB LED / LED Strip Control
*
@@ -1695,7 +1698,7 @@
* - Change to green once print has finished
* - Turn off after the print has finished and the user has pushed a button
*/
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED)
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632)
#define PRINTER_EVENT_LEDS
#endif

View File

@@ -1497,6 +1497,9 @@
//define BlinkM/CyzRgb Support
//#define BLINKM
//define PCA9632 PWM LED driver Support
//#define PCA9632
/**
* RGB LED / LED Strip Control
*
@@ -1534,7 +1537,7 @@
* - Change to green once print has finished
* - Turn off after the print has finished and the user has pushed a button
*/
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED)
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632)
#define PRINTER_EVENT_LEDS
#endif

View File

@@ -1484,6 +1484,9 @@
//define BlinkM/CyzRgb Support
//#define BLINKM
//define PCA9632 PWM LED driver Support
//#define PCA9632
/**
* RGB LED / LED Strip Control
*
@@ -1521,7 +1524,7 @@
* - Change to green once print has finished
* - Turn off after the print has finished and the user has pushed a button
*/
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED)
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632)
#define PRINTER_EVENT_LEDS
#endif

View File

@@ -1476,6 +1476,9 @@
//define BlinkM/CyzRgb Support
//#define BLINKM
//define PCA9632 PWM LED driver Support
//#define PCA9632
/**
* RGB LED / LED Strip Control
*
@@ -1513,7 +1516,7 @@
* - Change to green once print has finished
* - Turn off after the print has finished and the user has pushed a button
*/
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED)
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632)
#define PRINTER_EVENT_LEDS
#endif

View File

@@ -1486,6 +1486,9 @@
//define BlinkM/CyzRgb Support
//#define BLINKM
//define PCA9632 PWM LED driver Support
//#define PCA9632
// Support for an RGB LED using 3 separate pins with optional PWM
//#define RGB_LED
//#define RGBW_LED
@@ -1507,7 +1510,7 @@
* - Change to green once print has finished
* - Turn off after the print has finished and the user has pushed a button
*/
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED)
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632)
#define PRINTER_EVENT_LEDS
#endif