From 60610eb628a2f3a64abefa53eaf1561f8c0943fd Mon Sep 17 00:00:00 2001 From: Andrea Zorzi Date: Sun, 2 Jun 2019 15:45:12 +0200 Subject: [PATCH] initialize Wire lib in I2C setup --- src/hardware.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/hardware.cpp b/src/hardware.cpp index 31a0dbf..e2bc2e8 100644 --- a/src/hardware.cpp +++ b/src/hardware.cpp @@ -83,7 +83,8 @@ void MicroOLED::spiTransfer(byte data) **/ void MicroOLED::i2cSetup() { - + // Initialize Wire library (I2C) + Wire.begin(); } /** \brief Write a byte over I2C