Skip to content

Commit

Permalink
Added ifdefs to blinkm
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikZalm committed Oct 20, 2013
1 parent 24c6b2a commit 87e28c0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Marlin/BlinkM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -22,3 +24,5 @@ void SendColors(byte red, byte grn, byte blu)
Wire.endTransmission();
}

#endif //BLINKM

2 changes: 2 additions & 0 deletions Marlin/Marlin_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 87e28c0

Please sign in to comment.