I am trying to use the "Bruh Automation" LED controller code on https://raw.githubusercontent.com/bruha ... l_LEDs.ino, which was written for an ESP8266, on a ESP32. I have tried it on an ESP8266 that I have, and that works just fine. The only change that I made to the original code was add
Code: Select all
#define FASTLED_INTERRUPT_RETRY_COUNT 0
I then changed the imports to match the ESP32 header files:
Before (ESP8266):
Code: Select all
#include <ArduinoJson.h>
#include <ESP8266WiFi.h>
#include <PubSubClient.h>
#include "FastLED.h"
#include <ESP8266mDNS.h>
#include <WiFiUdp.h>
#include <ArduinoOTA.h>
Code: Select all
#include <ArduinoJson.h>
#include <WiFi.h>
#include <PubSubClient.h>
#include "FastLED.h"
#include <ESPmDNS.h>
#include <WiFiUdp.h>
#include <ArduinoOTA.h>
I then see the following in the console over and over and over again:
Code: Select all
rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0018,len:4
load:0x3fff001c,len:956
load:0x40078000,len:0
load:0x40078000,len:13076
entry 0x40078a58
Connecting to pwlan
.......
WiFi connected
IP address:
192.168.2.123
Ready
IP Address: 192.168.2.123
Attempting MQTT connection...connected
Setting LEDs:
r: 0, g: 0, b: 0
Guru Meditation Error: Core 0 panic'ed (Interrupt wdt timeout on CPU0)
Register dump:
PC : 0x40085b7b PS : 0x00060034 A0 : 0x80086545 A1 : 0x3ffc0510
A2 : 0x3ffc1128 A3 : 0x3ffc0588 A4 : 0x00000008 A5 : 0x3ffd4bc4
A6 : 0x00000017 A7 : 0x00000000 A8 : 0x0000abab A9 : 0x0000cdcd
A10 : 0xb33fffff A11 : 0x0000abab A12 : 0x00000000 A13 : 0x00000001
A14 : 0x00060023 A15 : 0x00000000 SAR : 0x0000001e EXCCAUSE: 0x00000005
EXCVADDR: 0x00000000 LBEG : 0x4000c2e0 LEND : 0x4000c2f6 LCOUNT : 0xffffffff
Backtrace: 0x40085b7b:0x3ffc0510 0x40086542:0x3ffc0530 0x400850c1:0x3ffc0550 0x40084482:0x3ffc0570 0x400843cd:0x3ffc05c0 0x400849ae:0x3ffc05e0 0x40081625:0x3ffc0610 0x400e310b:0x00000000