feat(firmware): ssd1306 initial
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include <Arduino.h>
|
||||
#include <Wire.h>
|
||||
#include <WiFiManager.h>
|
||||
#include <Preferences.h>
|
||||
#include <string.h>
|
||||
@@ -7,6 +8,7 @@
|
||||
#include <MicroOcppMongooseClient.h>
|
||||
#include <MicroOcpp/Core/Context.h>
|
||||
|
||||
#include <Adafruit_SSD1306.h>
|
||||
#include <SmartLeds.h>
|
||||
#include <MFRC522.h>
|
||||
|
||||
@@ -49,6 +51,8 @@ void saveConfigCallback()
|
||||
|
||||
struct mg_mgr mgr;
|
||||
|
||||
Adafruit_SSD1306 display(128, 64, &Wire, -1);
|
||||
|
||||
/**
|
||||
* WS2812B LED Pin
|
||||
* - GPIO 17 - RYMCU ESP32-DevKitC
|
||||
@@ -174,6 +178,9 @@ void setup()
|
||||
leds[0] = Rgb{255, 255, 0};
|
||||
leds.show();
|
||||
|
||||
// Initialize IIC OLED
|
||||
Wire.begin(4, 15);
|
||||
|
||||
// Load configuration from Preferences
|
||||
Preferences preferences;
|
||||
preferences.begin("ocpp-config", false);
|
||||
|
||||
Reference in New Issue
Block a user