Changed compiler structure for including I2C

This commit is contained in:
pyr0ball 2019-07-05 23:51:58 -07:00
parent 513d03a4bf
commit 7877456277
2 changed files with 2 additions and 3 deletions

View file

@ -82,9 +82,6 @@ long voltMeterConstant = 1125300L; // For fine tuning input voltage sense
// i2c input toggle. Uncomment to enable
#define I2C true
#ifdef I2C
#include "pP_i2c.h"
#endif
void setup() {
pinMode(TRG_OUT, OUTPUT); // declare the Trigger as as OUTPUT

View file

@ -1,3 +1,4 @@
#ifdef I2C
#ifndef _pP_i2c_h_
#define _pP_i2c_h_
@ -31,3 +32,4 @@ class pP_i2c {
};
#endif
#endif