Browse Source

Merge pull request #5330 from thinkyhead/rc_rgb_led

Support for an RGB LED using 3 pins
Scott Lahteine 8 years ago
parent
commit
415294801f
24 changed files with 238 additions and 10 deletions
  1. 8
    0
      Marlin/Configuration.h
  2. 51
    10
      Marlin/Marlin_main.cpp
  3. 11
    0
      Marlin/SanityCheck.h
  4. 8
    0
      Marlin/example_configurations/Cartesio/Configuration.h
  5. 8
    0
      Marlin/example_configurations/Felix/Configuration.h
  6. 8
    0
      Marlin/example_configurations/Felix/DUAL/Configuration.h
  7. 8
    0
      Marlin/example_configurations/Hephestos/Configuration.h
  8. 8
    0
      Marlin/example_configurations/Hephestos_2/Configuration.h
  9. 8
    0
      Marlin/example_configurations/K8200/Configuration.h
  10. 8
    0
      Marlin/example_configurations/K8400/Configuration.h
  11. 8
    0
      Marlin/example_configurations/K8400/Dual-head/Configuration.h
  12. 8
    0
      Marlin/example_configurations/RepRapWorld/Megatronics/Configuration.h
  13. 8
    0
      Marlin/example_configurations/RigidBot/Configuration.h
  14. 8
    0
      Marlin/example_configurations/SCARA/Configuration.h
  15. 8
    0
      Marlin/example_configurations/TAZ4/Configuration.h
  16. 8
    0
      Marlin/example_configurations/WITBOX/Configuration.h
  17. 8
    0
      Marlin/example_configurations/adafruit/ST7565/Configuration.h
  18. 8
    0
      Marlin/example_configurations/delta/biv2.5/Configuration.h
  19. 8
    0
      Marlin/example_configurations/delta/generic/Configuration.h
  20. 8
    0
      Marlin/example_configurations/delta/kossel_mini/Configuration.h
  21. 8
    0
      Marlin/example_configurations/delta/kossel_pro/Configuration.h
  22. 8
    0
      Marlin/example_configurations/delta/kossel_xl/Configuration.h
  23. 8
    0
      Marlin/example_configurations/makibox/Configuration.h
  24. 8
    0
      Marlin/example_configurations/tvrrug/Round2/Configuration.h

+ 8
- 0
Marlin/Configuration.h View File

@@ -1375,6 +1375,14 @@
1375 1375
 //define BlinkM/CyzRgb Support
1376 1376
 //#define BLINKM
1377 1377
 
1378
+// Support for an RGB LED using 3 separate pins with optional PWM
1379
+//#define RGB_LED
1380
+#if ENABLED(RGB_LED)
1381
+  #define RGB_LED_R_PIN 34
1382
+  #define RGB_LED_G_PIN 43
1383
+  #define RGB_LED_B_PIN 35
1384
+#endif
1385
+
1378 1386
 /*********************************************************************\
1379 1387
 * R/C SERVO support
1380 1388
 * Sponsored by TrinityLabs, Reworked by codexmas

+ 51
- 10
Marlin/Marlin_main.cpp View File

@@ -113,7 +113,7 @@
113 113
  * M108 - Break out of heating loops (M109, M190, M303). With no controller, breaks out of M0/M1. (Requires EMERGENCY_PARSER)
114 114
  * M109 - Sxxx Wait for extruder current temp to reach target temp. Waits only when heating
115 115
  *        Rxxx Wait for extruder current temp to reach target temp. Waits when heating and cooling
116
- *        IF AUTOTEMP is enabled, S<mintemp> B<maxtemp> F<factor>. Exit autotemp by any M109 without F
116
+ *        If AUTOTEMP is enabled, S<mintemp> B<maxtemp> F<factor>. Exit autotemp by any M109 without F
117 117
  * M110 - Set the current line number. (Used by host printing)
118 118
  * M111 - Set debug flags: "M111 S<flagbits>". See flag bits defined in enum.h.
119 119
  * M112 - Emergency stop.
@@ -131,7 +131,7 @@
131 131
  * M140 - Set bed target temp. S<temp>
132 132
  * M145 - Set heatup values for materials on the LCD. H<hotend> B<bed> F<fan speed> for S<material> (0=PLA, 1=ABS)
133 133
  * M149 - Set temperature units. (Requires TEMPERATURE_UNITS_SUPPORT)
134
- * M150 - Set BlinkM Color R<red> U<green> B<blue>. Values 0-255. (Requires BLINKM)
134
+ * M150 - Set Status LED Color as R<red> U<green> B<blue>. Values 0-255. (Requires BLINKM or RGB_LED)
135 135
  * M155 - Auto-report temperatures with interval of S<seconds>. (Requires AUTO_REPORT_TEMPERATURES)
136 136
  * M163 - Set a single proportion for a mixing extruder. (Requires MIXING_EXTRUDER)
137 137
  * M164 - Save the mix as a virtual extruder. (Requires MIXING_EXTRUDER and MIXING_VIRTUAL_TOOLS)
@@ -5958,20 +5958,55 @@ inline void gcode_M121() { endstops.enable_globally(false); }
5958 5958
   }
5959 5959
 #endif // HAVE_TMC2130DRIVER
5960 5960
 
5961
-#if ENABLED(BLINKM)
5961
+#if ENABLED(BLINKM) || ENABLED(RGB_LED)
5962
+
5963
+  void set_led_color(const uint8_t r, const uint8_t g, const uint8_t b) {
5964
+
5965
+    #if ENABLED(BLINKM)
5966
+
5967
+      // This variant uses i2c to send the RGB components to the device.
5968
+      SendColors(
5969
+        code_seen('R') ? code_value_byte() : 0,
5970
+        code_seen('U') ? code_value_byte() : 0,
5971
+        code_seen('B') ? code_value_byte() : 0
5972
+      );
5973
+
5974
+    #else
5975
+
5976
+      // This variant uses 3 separate pins for the RGB components.
5977
+      // If the pins can do PWM then their intensity will be set.
5978
+      digitalWrite(RGB_LED_R_PIN, r ? HIGH : LOW);
5979
+      digitalWrite(RGB_LED_G_PIN, g ? HIGH : LOW);
5980
+      digitalWrite(RGB_LED_B_PIN, b ? HIGH : LOW);
5981
+      analogWrite(RGB_LED_R_PIN, r);
5982
+      analogWrite(RGB_LED_G_PIN, g);
5983
+      analogWrite(RGB_LED_B_PIN, b);
5984
+
5985
+    #endif
5986
+  }
5962 5987
 
5963 5988
   /**
5964 5989
    * M150: Set Status LED Color - Use R-U-B for R-G-B
5990
+   *
5991
+   * Always sets all 3 components. If a component is left out, set to 0.
5992
+   *
5993
+   * Examples:
5994
+   *
5995
+   *   M150 R255       ; Turn LED red
5996
+   *   M150 R255 U127  ; Turn LED orange (PWM only)
5997
+   *   M150            ; Turn LED off
5998
+   *   M150 R U B      ; Turn LED white
5999
+   *
5965 6000
    */
5966 6001
   inline void gcode_M150() {
5967
-    SendColors(
5968
-      code_seen('R') ? code_value_byte() : 0,
5969
-      code_seen('U') ? code_value_byte() : 0,
5970
-      code_seen('B') ? code_value_byte() : 0
6002
+    set_led_color(
6003
+      code_seen('R') ? (code_has_value() ? code_value_byte() : 255) : 0,
6004
+      code_seen('U') ? (code_has_value() ? code_value_byte() : 255) : 0,
6005
+      code_seen('B') ? (code_has_value() ? code_value_byte() : 255) : 0
5971 6006
     );
5972 6007
   }
5973 6008
 
5974
-#endif // BLINKM
6009
+#endif // BLINKM || RGB_LED
5975 6010
 
5976 6011
 /**
5977 6012
  * M200: Set filament diameter and set E axis units to cubic units
@@ -8147,9 +8182,9 @@ void process_next_command() {
8147 8182
           break;
8148 8183
       #endif
8149 8184
 
8150
-      #if ENABLED(BLINKM)
8185
+      #if ENABLED(BLINKM) || ENABLED(RGB_LED)
8151 8186
 
8152
-        case 150: // M150: Set the BlinkM LCD color
8187
+        case 150: // M150: Set Status LED Color
8153 8188
           gcode_M150();
8154 8189
           break;
8155 8190
 
@@ -10071,6 +10106,12 @@ void setup() {
10071 10106
     OUT_WRITE(STAT_LED_BLUE_PIN, LOW); // turn it off
10072 10107
   #endif
10073 10108
 
10109
+  #if ENABLED(RGB_LED)
10110
+    pinMode(RGB_LED_R_PIN, OUTPUT);
10111
+    pinMode(RGB_LED_G_PIN, OUTPUT);
10112
+    pinMode(RGB_LED_B_PIN, OUTPUT);
10113
+  #endif
10114
+
10074 10115
   lcd_init();
10075 10116
   #if ENABLED(SHOW_BOOTSCREEN)
10076 10117
     #if ENABLED(DOGLCD)

+ 11
- 0
Marlin/SanityCheck.h View File

@@ -886,6 +886,17 @@
886 886
 #endif
887 887
 
888 888
 /**
889
+ * RGB_LED Requirements
890
+ */
891
+#if ENABLED(RGB_LED)
892
+  #if !(PIN_EXISTS(RGB_LED_R) && PIN_EXISTS(RGB_LED_G) && PIN_EXISTS(RGB_LED_B))
893
+    #error "RGB_LED requires RGB_LED_R_PIN, RGB_LED_G_PIN, and RGB_LED_B_PIN."
894
+  #elif ENABLED(BLINKM)
895
+    #error "RGB_LED and BLINKM are currently incompatible (both use M150)."
896
+  #endif
897
+#endif
898
+
899
+/**
889 900
  * Auto Fan check for PWM pins
890 901
  */
891 902
 #if HAS_AUTO_FAN && EXTRUDER_AUTO_FAN_SPEED != 255

+ 8
- 0
Marlin/example_configurations/Cartesio/Configuration.h View File

@@ -1375,6 +1375,14 @@
1375 1375
 //define BlinkM/CyzRgb Support
1376 1376
 //#define BLINKM
1377 1377
 
1378
+// Support for an RGB LED using 3 separate pins with optional PWM
1379
+//#define RGB_LED
1380
+#if ENABLED(RGB_LED)
1381
+  #define RGB_LED_R_PIN 34
1382
+  #define RGB_LED_G_PIN 43
1383
+  #define RGB_LED_B_PIN 35
1384
+#endif
1385
+
1378 1386
 /*********************************************************************\
1379 1387
 * R/C SERVO support
1380 1388
 * Sponsored by TrinityLabs, Reworked by codexmas

+ 8
- 0
Marlin/example_configurations/Felix/Configuration.h View File

@@ -1358,6 +1358,14 @@
1358 1358
 //define BlinkM/CyzRgb Support
1359 1359
 //#define BLINKM
1360 1360
 
1361
+// Support for an RGB LED using 3 separate pins with optional PWM
1362
+//#define RGB_LED
1363
+#if ENABLED(RGB_LED)
1364
+  #define RGB_LED_R_PIN 34
1365
+  #define RGB_LED_G_PIN 43
1366
+  #define RGB_LED_B_PIN 35
1367
+#endif
1368
+
1361 1369
 /*********************************************************************\
1362 1370
 * R/C SERVO support
1363 1371
 * Sponsored by TrinityLabs, Reworked by codexmas

+ 8
- 0
Marlin/example_configurations/Felix/DUAL/Configuration.h View File

@@ -1358,6 +1358,14 @@
1358 1358
 //define BlinkM/CyzRgb Support
1359 1359
 //#define BLINKM
1360 1360
 
1361
+// Support for an RGB LED using 3 separate pins with optional PWM
1362
+//#define RGB_LED
1363
+#if ENABLED(RGB_LED)
1364
+  #define RGB_LED_R_PIN 34
1365
+  #define RGB_LED_G_PIN 43
1366
+  #define RGB_LED_B_PIN 35
1367
+#endif
1368
+
1361 1369
 /*********************************************************************\
1362 1370
 * R/C SERVO support
1363 1371
 * Sponsored by TrinityLabs, Reworked by codexmas

+ 8
- 0
Marlin/example_configurations/Hephestos/Configuration.h View File

@@ -1367,6 +1367,14 @@
1367 1367
 //define BlinkM/CyzRgb Support
1368 1368
 //#define BLINKM
1369 1369
 
1370
+// Support for an RGB LED using 3 separate pins with optional PWM
1371
+//#define RGB_LED
1372
+#if ENABLED(RGB_LED)
1373
+  #define RGB_LED_R_PIN 34
1374
+  #define RGB_LED_G_PIN 43
1375
+  #define RGB_LED_B_PIN 35
1376
+#endif
1377
+
1370 1378
 /*********************************************************************\
1371 1379
 * R/C SERVO support
1372 1380
 * Sponsored by TrinityLabs, Reworked by codexmas

+ 8
- 0
Marlin/example_configurations/Hephestos_2/Configuration.h View File

@@ -1369,6 +1369,14 @@
1369 1369
 //define BlinkM/CyzRgb Support
1370 1370
 //#define BLINKM
1371 1371
 
1372
+// Support for an RGB LED using 3 separate pins with optional PWM
1373
+//#define RGB_LED
1374
+#if ENABLED(RGB_LED)
1375
+  #define RGB_LED_R_PIN 34
1376
+  #define RGB_LED_G_PIN 43
1377
+  #define RGB_LED_B_PIN 35
1378
+#endif
1379
+
1372 1380
 /*********************************************************************\
1373 1381
 * R/C SERVO support
1374 1382
 * Sponsored by TrinityLabs, Reworked by codexmas

+ 8
- 0
Marlin/example_configurations/K8200/Configuration.h View File

@@ -1409,6 +1409,14 @@
1409 1409
 //define BlinkM/CyzRgb Support
1410 1410
 //#define BLINKM
1411 1411
 
1412
+// Support for an RGB LED using 3 separate pins with optional PWM
1413
+//#define RGB_LED
1414
+#if ENABLED(RGB_LED)
1415
+  #define RGB_LED_R_PIN 34
1416
+  #define RGB_LED_G_PIN 43
1417
+  #define RGB_LED_B_PIN 35
1418
+#endif
1419
+
1412 1420
 /*********************************************************************\
1413 1421
 * R/C SERVO support
1414 1422
 * Sponsored by TrinityLabs, Reworked by codexmas

+ 8
- 0
Marlin/example_configurations/K8400/Configuration.h View File

@@ -1375,6 +1375,14 @@
1375 1375
 //define BlinkM/CyzRgb Support
1376 1376
 //#define BLINKM
1377 1377
 
1378
+// Support for an RGB LED using 3 separate pins with optional PWM
1379
+//#define RGB_LED
1380
+#if ENABLED(RGB_LED)
1381
+  #define RGB_LED_R_PIN 34
1382
+  #define RGB_LED_G_PIN 43
1383
+  #define RGB_LED_B_PIN 35
1384
+#endif
1385
+
1378 1386
 /*********************************************************************\
1379 1387
 * R/C SERVO support
1380 1388
 * Sponsored by TrinityLabs, Reworked by codexmas

+ 8
- 0
Marlin/example_configurations/K8400/Dual-head/Configuration.h View File

@@ -1375,6 +1375,14 @@
1375 1375
 //define BlinkM/CyzRgb Support
1376 1376
 //#define BLINKM
1377 1377
 
1378
+// Support for an RGB LED using 3 separate pins with optional PWM
1379
+//#define RGB_LED
1380
+#if ENABLED(RGB_LED)
1381
+  #define RGB_LED_R_PIN 34
1382
+  #define RGB_LED_G_PIN 43
1383
+  #define RGB_LED_B_PIN 35
1384
+#endif
1385
+
1378 1386
 /*********************************************************************\
1379 1387
 * R/C SERVO support
1380 1388
 * Sponsored by TrinityLabs, Reworked by codexmas

+ 8
- 0
Marlin/example_configurations/RepRapWorld/Megatronics/Configuration.h View File

@@ -1375,6 +1375,14 @@
1375 1375
 //define BlinkM/CyzRgb Support
1376 1376
 //#define BLINKM
1377 1377
 
1378
+// Support for an RGB LED using 3 separate pins with optional PWM
1379
+//#define RGB_LED
1380
+#if ENABLED(RGB_LED)
1381
+  #define RGB_LED_R_PIN 34
1382
+  #define RGB_LED_G_PIN 43
1383
+  #define RGB_LED_B_PIN 35
1384
+#endif
1385
+
1378 1386
 /*********************************************************************\
1379 1387
 * R/C SERVO support
1380 1388
 * Sponsored by TrinityLabs, Reworked by codexmas

+ 8
- 0
Marlin/example_configurations/RigidBot/Configuration.h View File

@@ -1375,6 +1375,14 @@
1375 1375
 //define BlinkM/CyzRgb Support
1376 1376
 //#define BLINKM
1377 1377
 
1378
+// Support for an RGB LED using 3 separate pins with optional PWM
1379
+//#define RGB_LED
1380
+#if ENABLED(RGB_LED)
1381
+  #define RGB_LED_R_PIN 34
1382
+  #define RGB_LED_G_PIN 43
1383
+  #define RGB_LED_B_PIN 35
1384
+#endif
1385
+
1378 1386
 /*********************************************************************\
1379 1387
 * R/C SERVO support
1380 1388
 * Sponsored by TrinityLabs, Reworked by codexmas

+ 8
- 0
Marlin/example_configurations/SCARA/Configuration.h View File

@@ -1390,6 +1390,14 @@
1390 1390
 //define BlinkM/CyzRgb Support
1391 1391
 //#define BLINKM
1392 1392
 
1393
+// Support for an RGB LED using 3 separate pins with optional PWM
1394
+//#define RGB_LED
1395
+#if ENABLED(RGB_LED)
1396
+  #define RGB_LED_R_PIN 34
1397
+  #define RGB_LED_G_PIN 43
1398
+  #define RGB_LED_B_PIN 35
1399
+#endif
1400
+
1393 1401
 /*********************************************************************\
1394 1402
 * R/C SERVO support
1395 1403
 * Sponsored by TrinityLabs, Reworked by codexmas

+ 8
- 0
Marlin/example_configurations/TAZ4/Configuration.h View File

@@ -1396,6 +1396,14 @@
1396 1396
 //define BlinkM/CyzRgb Support
1397 1397
 //#define BLINKM
1398 1398
 
1399
+// Support for an RGB LED using 3 separate pins with optional PWM
1400
+//#define RGB_LED
1401
+#if ENABLED(RGB_LED)
1402
+  #define RGB_LED_R_PIN 34
1403
+  #define RGB_LED_G_PIN 43
1404
+  #define RGB_LED_B_PIN 35
1405
+#endif
1406
+
1399 1407
 /*********************************************************************\
1400 1408
 * R/C SERVO support
1401 1409
 * Sponsored by TrinityLabs, Reworked by codexmas

+ 8
- 0
Marlin/example_configurations/WITBOX/Configuration.h View File

@@ -1367,6 +1367,14 @@
1367 1367
 //define BlinkM/CyzRgb Support
1368 1368
 //#define BLINKM
1369 1369
 
1370
+// Support for an RGB LED using 3 separate pins with optional PWM
1371
+//#define RGB_LED
1372
+#if ENABLED(RGB_LED)
1373
+  #define RGB_LED_R_PIN 34
1374
+  #define RGB_LED_G_PIN 43
1375
+  #define RGB_LED_B_PIN 35
1376
+#endif
1377
+
1370 1378
 /*********************************************************************\
1371 1379
 * R/C SERVO support
1372 1380
 * Sponsored by TrinityLabs, Reworked by codexmas

+ 8
- 0
Marlin/example_configurations/adafruit/ST7565/Configuration.h View File

@@ -1375,6 +1375,14 @@
1375 1375
 //define BlinkM/CyzRgb Support
1376 1376
 //#define BLINKM
1377 1377
 
1378
+// Support for an RGB LED using 3 separate pins with optional PWM
1379
+//#define RGB_LED
1380
+#if ENABLED(RGB_LED)
1381
+  #define RGB_LED_R_PIN 34
1382
+  #define RGB_LED_G_PIN 43
1383
+  #define RGB_LED_B_PIN 35
1384
+#endif
1385
+
1378 1386
 /*********************************************************************\
1379 1387
 * R/C SERVO support
1380 1388
 * Sponsored by TrinityLabs, Reworked by codexmas

+ 8
- 0
Marlin/example_configurations/delta/biv2.5/Configuration.h View File

@@ -1471,6 +1471,14 @@
1471 1471
 //define BlinkM/CyzRgb Support
1472 1472
 //#define BLINKM
1473 1473
 
1474
+// Support for an RGB LED using 3 separate pins with optional PWM
1475
+//#define RGB_LED
1476
+#if ENABLED(RGB_LED)
1477
+  #define RGB_LED_R_PIN 34
1478
+  #define RGB_LED_G_PIN 43
1479
+  #define RGB_LED_B_PIN 35
1480
+#endif
1481
+
1474 1482
 /*********************************************************************\
1475 1483
 * R/C SERVO support
1476 1484
 * Sponsored by TrinityLabs, Reworked by codexmas

+ 8
- 0
Marlin/example_configurations/delta/generic/Configuration.h View File

@@ -1465,6 +1465,14 @@
1465 1465
 //define BlinkM/CyzRgb Support
1466 1466
 //#define BLINKM
1467 1467
 
1468
+// Support for an RGB LED using 3 separate pins with optional PWM
1469
+//#define RGB_LED
1470
+#if ENABLED(RGB_LED)
1471
+  #define RGB_LED_R_PIN 34
1472
+  #define RGB_LED_G_PIN 43
1473
+  #define RGB_LED_B_PIN 35
1474
+#endif
1475
+
1468 1476
 /*********************************************************************\
1469 1477
 * R/C SERVO support
1470 1478
 * Sponsored by TrinityLabs, Reworked by codexmas

+ 8
- 0
Marlin/example_configurations/delta/kossel_mini/Configuration.h View File

@@ -1468,6 +1468,14 @@
1468 1468
 //define BlinkM/CyzRgb Support
1469 1469
 //#define BLINKM
1470 1470
 
1471
+// Support for an RGB LED using 3 separate pins with optional PWM
1472
+//#define RGB_LED
1473
+#if ENABLED(RGB_LED)
1474
+  #define RGB_LED_R_PIN 34
1475
+  #define RGB_LED_G_PIN 43
1476
+  #define RGB_LED_B_PIN 35
1477
+#endif
1478
+
1471 1479
 /*********************************************************************\
1472 1480
 * R/C SERVO support
1473 1481
 * Sponsored by TrinityLabs, Reworked by codexmas

+ 8
- 0
Marlin/example_configurations/delta/kossel_pro/Configuration.h View File

@@ -1467,6 +1467,14 @@
1467 1467
 //define BlinkM/CyzRgb Support
1468 1468
 //#define BLINKM
1469 1469
 
1470
+// Support for an RGB LED using 3 separate pins with optional PWM
1471
+//#define RGB_LED
1472
+#if ENABLED(RGB_LED)
1473
+  #define RGB_LED_R_PIN 34
1474
+  #define RGB_LED_G_PIN 43
1475
+  #define RGB_LED_B_PIN 35
1476
+#endif
1477
+
1470 1478
 /*********************************************************************\
1471 1479
 * R/C SERVO support
1472 1480
 * Sponsored by TrinityLabs, Reworked by codexmas

+ 8
- 0
Marlin/example_configurations/delta/kossel_xl/Configuration.h View File

@@ -1471,6 +1471,14 @@
1471 1471
 //define BlinkM/CyzRgb Support
1472 1472
 //#define BLINKM
1473 1473
 
1474
+// Support for an RGB LED using 3 separate pins with optional PWM
1475
+//#define RGB_LED
1476
+#if ENABLED(RGB_LED)
1477
+  #define RGB_LED_R_PIN 34
1478
+  #define RGB_LED_G_PIN 43
1479
+  #define RGB_LED_B_PIN 35
1480
+#endif
1481
+
1474 1482
 /*********************************************************************\
1475 1483
 * R/C SERVO support
1476 1484
 * Sponsored by TrinityLabs, Reworked by codexmas

+ 8
- 0
Marlin/example_configurations/makibox/Configuration.h View File

@@ -1378,6 +1378,14 @@
1378 1378
 //define BlinkM/CyzRgb Support
1379 1379
 //#define BLINKM
1380 1380
 
1381
+// Support for an RGB LED using 3 separate pins with optional PWM
1382
+//#define RGB_LED
1383
+#if ENABLED(RGB_LED)
1384
+  #define RGB_LED_R_PIN 34
1385
+  #define RGB_LED_G_PIN 43
1386
+  #define RGB_LED_B_PIN 35
1387
+#endif
1388
+
1381 1389
 /*********************************************************************\
1382 1390
 * R/C SERVO support
1383 1391
 * Sponsored by TrinityLabs, Reworked by codexmas

+ 8
- 0
Marlin/example_configurations/tvrrug/Round2/Configuration.h View File

@@ -1371,6 +1371,14 @@
1371 1371
 //define BlinkM/CyzRgb Support
1372 1372
 //#define BLINKM
1373 1373
 
1374
+// Support for an RGB LED using 3 separate pins with optional PWM
1375
+//#define RGB_LED
1376
+#if ENABLED(RGB_LED)
1377
+  #define RGB_LED_R_PIN 34
1378
+  #define RGB_LED_G_PIN 43
1379
+  #define RGB_LED_B_PIN 35
1380
+#endif
1381
+
1374 1382
 /*********************************************************************\
1375 1383
 * R/C SERVO support
1376 1384
 * Sponsored by TrinityLabs, Reworked by codexmas

Loading…
Cancel
Save