Corrected LCD only error

If only an LCD is defined and no menu or keyboard defined, there is a
compilation error.

Added conditional compilation.
This commit is contained in:
fmalpartida
2013-10-30 21:52:46 +01:00
parent b5a964fcc5
commit 5b3f60ea2e
3 changed files with 3 additions and 0 deletions

29
Marlin/BlinkM.cpp Normal file
View File

@@ -0,0 +1,29 @@
/*
BlinkM.cpp - Library for controlling a BlinkM over i2c
Created by Tim Koster, August 21 2013.
*/
#include "Marlin.h"
#ifdef BLINKM
#if (ARDUINO >= 100)
# include "Arduino.h"
#else
# include "WProgram.h"
#endif
#include "BlinkM.h"
void SendColors(byte red, byte grn, byte blu)
{
Wire.begin();
Wire.beginTransmission(0x09);
Wire.write('o'); //to disable ongoing script, only needs to be used once
Wire.write('n');
Wire.write(red);
Wire.write(grn);
Wire.write(blu);
Wire.endTransmission();
}
#endif //BLINKM