After a few hours debugging and stripping back code, I’ve come across the weirdest issue I’ve ever seen.
As soon as I include #include <TFT_eSPI.h>
into the file, the FreeRTOS task that is responsible for flashing the LEDs using the Adafruit_NeoPixel
package stops executing as intended. The serial logging will mention that the LEDs are changing colour, but nothing physically happens on my desk. I don’t beleive it is a wiring issue.
I’m very new to the world of microprocessors, has anybody ever seen this happen before?
The full code (the display and GIF code is stripped out due to debugging) is supposed to do the following: When the door sensor state changes, the display wakes up, the lights flash and the sound plays. This happens until the door is closed again or until the elapsed time has passed.
I recently started using FreeRTOS as I was running into issues with running project components in parallel.
If anybody can shine some light on why this happens, and a potential solution I’d be very appreciative.