Skip to content

Commit cd0fa9a

Browse files
committed
ssd1306 black / ToF build errors
1 parent fe1cc3a commit cd0fa9a

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/components/i2c/WipperSnapper_I2C.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@
8585
#include "drivers/WipperSnapper_I2C_Driver_VL53L0X.h"
8686
#include "drivers/WipperSnapper_I2C_Driver_VL53L1X.h"
8787
#include "drivers/WipperSnapper_I2C_Driver_VL53L4CD.h"
88+
#ifdef PALDevDataSet
89+
#undef PALDevDataSet
90+
#endif
8891
#include "drivers/WipperSnapper_I2C_Driver_VL53L4CX.h"
8992
#include "drivers/WipperSnapper_I2C_Driver_VL6180X.h"
9093

src/components/i2c/drivers/WipperSnapper_I2C_Driver_Out_Ssd1306.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
#define WIPPERSNAPPER_I2C_DRIVER_OUT_SSD1306_H
1818

1919
#include "WipperSnapper_I2C_Driver_Out.h"
20+
#ifdef BLACK
21+
#undef BLACK
22+
#endif
2023
#include <Adafruit_SSD1306.h>
2124
#include <Arduino.h>
2225

@@ -163,4 +166,4 @@ class WipperSnapper_I2C_Driver_Out_Ssd1306
163166
uint8_t _text_sz; ///< Text size of the display
164167
};
165168

166-
#endif // WIPPERSNAPPER_I2C_DRIVER_OUT_SSD1306_H
169+
#endif // WIPPERSNAPPER_I2C_DRIVER_OUT_SSD1306_H

0 commit comments

Comments
 (0)