summaryrefslogtreecommitdiff
path: root/src/driver
diff options
context:
space:
mode:
Diffstat (limited to 'src/driver')
-rw-r--r--src/driver/ssd1306.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/driver/ssd1306.cc b/src/driver/ssd1306.cc
index cf36c13..1d4e1f3 100644
--- a/src/driver/ssd1306.cc
+++ b/src/driver/ssd1306.cc
@@ -4,8 +4,11 @@
* SPDX-License-Identifier: BSD-2-Clause
*/
#include "driver/ssd1306.h"
+#if defined(MULTIPASS_ARCH_HAS_I2C) && !defined(DRIVER_SOFTI2C)
#include "driver/i2c.h"
+#else
#include "driver/soft_i2c.h"
+#endif
void SSD1306::writeCommand(uint8_t command)
{