|
@@ -40,6 +40,9 @@
|
40
|
40
|
#include "language.h"
|
41
|
41
|
#include "pins_arduino.h"
|
42
|
42
|
|
|
43
|
+#include "BlinkM.h"
|
|
44
|
+#include "Wire.h"
|
|
45
|
+
|
43
|
46
|
#if NUM_SERVOS > 0
|
44
|
47
|
#include "Servo.h"
|
45
|
48
|
#endif
|
|
@@ -109,6 +112,7 @@
|
109
|
112
|
// M128 - EtoP Open (BariCUDA EtoP = electricity to air pressure transducer by jmil)
|
110
|
113
|
// M129 - EtoP Closed (BariCUDA EtoP = electricity to air pressure transducer by jmil)
|
111
|
114
|
// M140 - Set bed target temp
|
|
115
|
+// M150 - Set BlinkM Colour Output R: Red<0-255> U(!): Green<0-255> B: Blue<0-255> over i2c, G for green does not work.
|
112
|
116
|
// M190 - Sxxx Wait for bed current temp to reach target temp. Waits only when heating
|
113
|
117
|
// Rxxx Wait for bed current temp to reach target temp. Waits when heating and cooling
|
114
|
118
|
// M200 - Set filament diameter
|
|
@@ -1613,6 +1617,19 @@ void process_commands()
|
1613
|
1617
|
#endif
|
1614
|
1618
|
break;
|
1615
|
1619
|
//TODO: update for all axis, use for loop
|
|
1620
|
+ case 150: // M150
|
|
1621
|
+ {
|
|
1622
|
+ byte red;
|
|
1623
|
+ byte grn;
|
|
1624
|
+ byte blu;
|
|
1625
|
+
|
|
1626
|
+ if(code_seen('R')) red = code_value();
|
|
1627
|
+ if(code_seen('U')) grn = code_value();
|
|
1628
|
+ if(code_seen('B')) blu = code_value();
|
|
1629
|
+
|
|
1630
|
+ SendColors(red,grn,blu);
|
|
1631
|
+ }
|
|
1632
|
+ break;
|
1616
|
1633
|
case 201: // M201
|
1617
|
1634
|
for(int8_t i=0; i < NUM_AXIS; i++)
|
1618
|
1635
|
{
|