mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-23 12:04:19 +00:00
Added #ifdef BLINKM around new code. Also refined BlinkM.h.
This commit is contained in:
parent
88dfeefca3
commit
61db046b32
@ -7,6 +7,7 @@
|
||||
#else
|
||||
# include "WProgram.h"
|
||||
#endif
|
||||
|
||||
#include "BlinkM.h"
|
||||
|
||||
void SendColors(byte red, byte grn, byte blu)
|
||||
|
@ -8,7 +8,11 @@
|
||||
# include "WProgram.h"
|
||||
#endif
|
||||
|
||||
#ifndef BLINKM
|
||||
#define BLINKM
|
||||
|
||||
#include "Wire.h"
|
||||
|
||||
void SendColors(byte red, byte grn, byte blu);
|
||||
|
||||
#endif
|
||||
|
@ -558,7 +558,7 @@ const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
|
||||
//#define BARICUDA
|
||||
|
||||
//define BlinkM/CyzRgb Support
|
||||
//#define BlinkM
|
||||
//#define BLINKM
|
||||
|
||||
/*********************************************************************\
|
||||
* R/C SERVO support
|
||||
|
@ -1617,6 +1617,7 @@ void process_commands()
|
||||
#endif
|
||||
break;
|
||||
//TODO: update for all axis, use for loop
|
||||
#ifdef BLINKM
|
||||
case 150: // M150
|
||||
{
|
||||
byte red;
|
||||
@ -1630,6 +1631,7 @@ void process_commands()
|
||||
SendColors(red,grn,blu);
|
||||
}
|
||||
break;
|
||||
#endif //BLINKM
|
||||
case 201: // M201
|
||||
for(int8_t i=0; i < NUM_AXIS; i++)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user