Code cleaning
This commit is contained in:
parent
ed2439febc
commit
0ede06588f
|
@ -81,8 +81,8 @@ void hardwareInit()
|
|||
FastLED.addLeds<WS2812B, OBP_BACKLIGHT_LED, GRB>(backlight, NUM_BACKLIGHT_LED);
|
||||
|
||||
// Init PCF8574 digital outputs
|
||||
Wire.setClock(I2C_SPEED); // Set I2C clock on 10 kHz
|
||||
if(pcf8574_Out.begin()){ // Initialize PCF8574
|
||||
Wire.setClock(I2C_SPEED); // Set I2C clock on 10 kHz
|
||||
pcf8574_Out.write8(255); // Clear all outputs
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
#include "Pagedata.h" // Data exchange for pages
|
||||
#include "OBP60Hardware.h" // PIN definitions
|
||||
#include <Wire.h> // I2C connections
|
||||
#include <RTClib.h> // DS1388 RTC
|
||||
#include <MCP23017.h> // MCP23017 extension Port
|
||||
#include <N2kTypes.h> // NMEA2000
|
||||
#include <N2kMessages.h>
|
||||
|
@ -24,9 +23,6 @@
|
|||
#include "OBP60QRWiFi.h" // Functions lib for WiFi QR code
|
||||
#include "OBPSensorTask.h" // Functions lib for sensor data
|
||||
|
||||
// RTC DS1388
|
||||
RTC_DS1388 ds1388;
|
||||
|
||||
// Global vars
|
||||
bool initComplete = false; // Initialization complete
|
||||
int taskRunCounter = 0; // Task couter for loop section
|
||||
|
|
Loading…
Reference in New Issue