Hey has anyone else experienced SOS hard faults with minor changes on working code?
I do somewhat frequently, it is confusing and annoying. I wish there was a better way to debug things like this then SOS lights.
Here is my current one. (snippet for larger code) this compiles and works fine:
#define DATAPIN3 D2
#define CLOCKPIN3 D3
Adafruit_DotStar BOTLEFT = Adafruit_DotStar(NUMPIXELS, DATAPIN3, CLOCKPIN3, DOTSTAR_BGR);
#define DATAPIN4 D4
#define CLOCKPIN4 D5
Adafruit_DotStar BOTRIGHT = Adafruit_DotStar(NUMPIXELS, DATAPIN4, CLOCKPIN4, DOTSTAR_BGR);
this causes a SOS hardfault (all I did was swap the variable names BOTLEFT and BOTRIGHT
#define DATAPIN3 D2
#define CLOCKPIN3 D3
Adafruit_DotStar BOTRIGHT = Adafruit_DotStar(NUMPIXELS, DATAPIN3, CLOCKPIN3, DOTSTAR_BGR);
#define DATAPIN4 D4
#define CLOCKPIN4 D5
Adafruit_DotStar BOTLEFT = Adafruit_DotStar(NUMPIXELS, DATAPIN4, CLOCKPIN4, DOTSTAR_BGR);
I “undo” and re-flash and everything is back to normal.
WHY DOES THIS MATTER? Please help me understand…