feat(firmware): ssd1306 initial
This commit is contained in:
@@ -1 +0,0 @@
|
|||||||
../../.agents/skills/heroui-react
|
|
||||||
@@ -17,5 +17,6 @@ lib_deps =
|
|||||||
roboticsbrno/SmartLeds@^3.1.5
|
roboticsbrno/SmartLeds@^3.1.5
|
||||||
miguelbalboa/MFRC522@^1.4.12
|
miguelbalboa/MFRC522@^1.4.12
|
||||||
tzapu/WiFiManager@^2.0.17
|
tzapu/WiFiManager@^2.0.17
|
||||||
|
adafruit/Adafruit SSD1306@^2.5.16
|
||||||
build_flags = -DMO_PLATFORM=MO_PLATFORM_ARDUINO -DMO_MG_USE_VERSION=MO_MG_V715 -DMO_NUMCONNECTORS=3
|
build_flags = -DMO_PLATFORM=MO_PLATFORM_ARDUINO -DMO_MG_USE_VERSION=MO_MG_V715 -DMO_NUMCONNECTORS=3
|
||||||
board_build.partitions = partitions.csv
|
board_build.partitions = partitions.csv
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
#include <Arduino.h>
|
#include <Arduino.h>
|
||||||
|
#include <Wire.h>
|
||||||
#include <WiFiManager.h>
|
#include <WiFiManager.h>
|
||||||
#include <Preferences.h>
|
#include <Preferences.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@@ -7,6 +8,7 @@
|
|||||||
#include <MicroOcppMongooseClient.h>
|
#include <MicroOcppMongooseClient.h>
|
||||||
#include <MicroOcpp/Core/Context.h>
|
#include <MicroOcpp/Core/Context.h>
|
||||||
|
|
||||||
|
#include <Adafruit_SSD1306.h>
|
||||||
#include <SmartLeds.h>
|
#include <SmartLeds.h>
|
||||||
#include <MFRC522.h>
|
#include <MFRC522.h>
|
||||||
|
|
||||||
@@ -49,6 +51,8 @@ void saveConfigCallback()
|
|||||||
|
|
||||||
struct mg_mgr mgr;
|
struct mg_mgr mgr;
|
||||||
|
|
||||||
|
Adafruit_SSD1306 display(128, 64, &Wire, -1);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* WS2812B LED Pin
|
* WS2812B LED Pin
|
||||||
* - GPIO 17 - RYMCU ESP32-DevKitC
|
* - GPIO 17 - RYMCU ESP32-DevKitC
|
||||||
@@ -174,6 +178,9 @@ void setup()
|
|||||||
leds[0] = Rgb{255, 255, 0};
|
leds[0] = Rgb{255, 255, 0};
|
||||||
leds.show();
|
leds.show();
|
||||||
|
|
||||||
|
// Initialize IIC OLED
|
||||||
|
Wire.begin(4, 15);
|
||||||
|
|
||||||
// Load configuration from Preferences
|
// Load configuration from Preferences
|
||||||
Preferences preferences;
|
Preferences preferences;
|
||||||
preferences.begin("ocpp-config", false);
|
preferences.begin("ocpp-config", false);
|
||||||
|
|||||||
14
helios-evcs.code-workspace
Normal file
14
helios-evcs.code-workspace
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"folders": [
|
||||||
|
{
|
||||||
|
"path": "."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "firmware",
|
||||||
|
"path": "hardware/firmware"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"settings": {
|
||||||
|
"stm32-for-vscode.makePath": false
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user