Browse Source

Added ifdefs to blinkm

Erik van der Zalm 11 years ago
parent
commit
87e28c0599
2 changed files with 6 additions and 0 deletions
  1. 4
    0
      Marlin/BlinkM.cpp
  2. 2
    0
      Marlin/Marlin_main.cpp

+ 4
- 0
Marlin/BlinkM.cpp View File

2
   BlinkM.cpp - Library for controlling a BlinkM over i2c
2
   BlinkM.cpp - Library for controlling a BlinkM over i2c
3
   Created by Tim Koster, August 21 2013.
3
   Created by Tim Koster, August 21 2013.
4
 */
4
 */
5
+#ifdef BLINKM
6
+
5
 #if (ARDUINO >= 100)
7
 #if (ARDUINO >= 100)
6
   # include "Arduino.h"
8
   # include "Arduino.h"
7
 #else
9
 #else
22
   Wire.endTransmission();
24
   Wire.endTransmission();
23
 }
25
 }
24
 
26
 
27
+#endif //BLINKM
28
+

+ 2
- 0
Marlin/Marlin_main.cpp View File

44
 #include "language.h"
44
 #include "language.h"
45
 #include "pins_arduino.h"
45
 #include "pins_arduino.h"
46
 
46
 
47
+#ifdef BLINKM
47
 #include "BlinkM.h"
48
 #include "BlinkM.h"
48
 #include "Wire.h" 
49
 #include "Wire.h" 
50
+#endif
49
 
51
 
50
 #if NUM_SERVOS > 0
52
 #if NUM_SERVOS > 0
51
 #include "Servo.h"
53
 #include "Servo.h"

Loading…
Cancel
Save