Added ifdefs to blinkm

This commit is contained in:
Erik van der Zalm 2013-10-20 09:55:15 +02:00
parent 24c6b2ab35
commit 87e28c0599
2 changed files with 6 additions and 0 deletions

View File

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

View File

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