mirror of
https://github.com/letscontrolit/ESPEasy.git
synced 2026-07-28 04:07:47 +00:00
15 lines
514 B
Arduino
15 lines
514 B
Arduino
/********************************************************************************************\
|
|
* Initialize specific hardware setings (only global ones, others are set through devices)
|
|
\*********************************************************************************************/
|
|
|
|
void hardwareInit()
|
|
{
|
|
// configure hardware pins according to eeprom settings.
|
|
if (Settings.Pin_i2c_sda != -1)
|
|
{
|
|
Serial.println(F("INIT : I2C"));
|
|
Wire.begin(Settings.Pin_i2c_sda, Settings.Pin_i2c_scl);
|
|
}
|
|
}
|
|
|