Dear all,
I have a code that has been working for more than 2 years.
However, I made cosmetic changes to the code and it does not work anymore.
The setup uses an nRF24L01, a TFT display runing on an ESP32 Dev kit rev1 board.
I have tried diderent earlier revisions dating back one year and none of them works.
There have been updates in the library used ( RF24 by thmr20 and TFT_eSPI by Bodmer) as well as in the expressif ESP32 board files.
It sounds like the API has changed, roll back the library to when it last worked, you may also need to roll back the boards entry.
In the future, show all code in code tags and error log in code tags.
Thank you for your reply,
However, since I intend to keep using this code on the place where it is installed (it has been working for 3 years), I am looking for a solution that could be used in future revisions.
Rolling back seem a risky solution for a code wich is in "production" not development.
Not risky at all, if the working code was developed at for instance rel 5.6.7 and now the library is rel 8.4.6 then some changes between those two rel may break your code. Reverting to 5.6.7 is guaranteed to work.
not sure if this is what you are looking for
in my setup for the LI9341 display on the ESP32 in file
Documents\Arduino\libraries\TFT_eSPI\User_Setup_Select.h
I uncommented the line
#include <User_Setups/Setup42_ILI9341_ESP32.h> // Setup file for ESP32 and SPI ILI9341 240x320
the file Setup42_ILI9341_ESP32.h specifies the SPI pins etc
Hi horace,
The parameters listed above are the ones needed in the instruction,
In my code the radio and tft woks but there are these issues listed ....
And the serial monitor keeps printing only 3 lines of the more than 100 lines that should be printed when the debug option is active.
More curious, these lines are located around 50% of the total of lines that are supposed to be printed.
And they are printed repeatedly because the debug printing command are in a loop.
The other lines keep being ommited
It never happened to me before.
Have no idea of what is happening and how to fix it.
AND the strange behavior of the serial monitor that only prints two lines (in a loop) of the total of about 100 lines expected when the "sketch debug option" is active.
I made some changes to your test sketch (since I do not have the other device code) AND the messages are printed OK in the serial monitor.
One difference between the two codes is that in the modified test sketch I am using delay() to make it simpler and on my sketch I use non blocking timers.
Is this important?
assuming you are implementing the timers correctly it should work
perhaps replace the delays with your non-blocking timers and see if it still works OK