summaryrefslogtreecommitdiff
path: root/src/driver
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2021-04-12 22:33:31 +0200
committerDaniel Friesel <derf@finalrewind.org>2021-04-12 22:33:31 +0200
commitb650f2ac498df4ba18d23ad7f02637f40917c28e (patch)
treef5c44e669295988a7c626a6be7df6003a5f0b918 /src/driver
parentde46e19c47842dc3e2050b0c7e948b9884e9a1f5 (diff)
add ssd1306 test app
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)
{