Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/Unit_4RELAY.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@ bool UNIT_4RELAY::begin(TwoWire *wire, uint8_t sda, uint8_t scl)
_wire = wire;
_sda = sda;
_scl = scl;
#if defined(ARDUINO_ARCH_AVR)
_wire->begin();
return true;
#else
return _wire->begin((int)_sda, (int)_scl, (uint32_t)0U);
#endif
}

/*! @brief Write a certain length of data to the specified register address. */
Expand Down