Skip to content

Commit 4bcf73b

Browse files
committed
Non Atmega sleep/wake support. Possibly Closes #6
1 parent a564d33 commit 4bcf73b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/SparkFunMLX90614.h

+10
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,16 @@ SparkFun IR Thermometer Evaluation Board - MLX90614
2020
#include <Arduino.h>
2121
#include <Wire.h>
2222

23+
///////////////////////////////////////////
24+
// Default I2C PIN for non Atmega Boards //
25+
///////////////////////////////////////////
26+
#ifndef SDA
27+
#define SDA (digitalPinToPinName(PIN_WIRE_SDA))
28+
#endif
29+
#ifndef SCL
30+
#define SCL (digitalPinToPinName(PIN_WIRE_SCL))
31+
#endif
32+
2333
//////////////////////////////////
2434
// MLX90614 Default I2C Address //
2535
//////////////////////////////////

0 commit comments

Comments
 (0)