Hey! So my system is a ATmega1284P + ENC28J60 (EthernetENC), no SD card. It certainly wouldn’t have been my first choice but I’ve adopted it.
I’m looking into this and a few things I’ve noticed are
- I need more than 50% of flash free
- The readme says, “Please, don’t use this library with platformio.”
- There’s some fuse settings, okay no big deal
- I can’t find any command line (not arduino IDE) flashing examples
I’ve added this…
diff --git a/src/main.cpp b/src/main.cpp
index 0ac523d..95df605 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -6,6 +6,9 @@
#include <Watchdog.h>
#include <Wire.h>
+#define OTETHERNET
+#include <ArduinoOTA.h>
+
#include "Board.h"
#include "Config.h"
#include "Display.h"
@@ -194,6 +197,9 @@ void setup()
);
Serial.printf("Free Memory: %d\n\r", freeMemory());
+ ArduinoOTA.begin(
+ Ethernet.localIP(), "Arduino", "password", InternalStorage
+ );
}
void vIdleTask(void* pvParameters)
@@ -202,6 +208,7 @@ void vIdleTask(void* pvParameters)
const TickType_t xDelay = pdMS_TO_TICKS(250);
for (;;) {
+ ArduinoOTA.poll();
watchdog.reset();
digitalWrite(gess::board::LED_A_PIN, LOW);
vTaskDelay(xDelay);
Has anyone done this before with pio?