Browse Source

Added ifdefs to blinkm

pull/1/head
Erik van der Zalm 11 years ago
parent
commit
87e28c0599
  1. 4
      Marlin/BlinkM.cpp
  2. 2
      Marlin/Marlin_main.cpp

4
Marlin/BlinkM.cpp

@ -2,6 +2,8 @@
BlinkM.cpp - Library for controlling a BlinkM over i2c
Created by Tim Koster, August 21 2013.
*/
#ifdef BLINKM
#if (ARDUINO >= 100)
# include "Arduino.h"
#else
@ -22,3 +24,5 @@ void SendColors(byte red, byte grn, byte blu)
Wire.endTransmission();
}
#endif //BLINKM

2
Marlin/Marlin_main.cpp

@ -44,8 +44,10 @@
#include "language.h"
#include "pins_arduino.h"
#ifdef BLINKM
#include "BlinkM.h"
#include "Wire.h"
#endif
#if NUM_SERVOS > 0
#include "Servo.h"

Loading…
Cancel
Save