Hi,
My initialize code is
#include "Nextion.h"
NexText t0 = NexText(0, 2, "t0");
NexText t1 = NexText(0, 3, "t1");
NexText t2 = NexText(0, 4, "t2");
NexText t3 = NexText(0, 5, "t3");
NexText t4 = NexText(0, 6, "t4");
NexText t5 = NexText(0, 7, "t5");
NexText t6 = NexText(0, 8, "t6");
NexText t7 = NexText(0, 9, "t7");
And i fill them like this
t0.setText(fdata);
t4.setText(fdata);
I use bluetooth, wifi, RTC module. Code is not easy like above.
When i JUST print numbers on the screen, there is not any problem like the below code.
while(1){
i = i + 1
t0.setText(i);
delay(500);
}
The nextion display shows the numbers clearly. But as i said, my code is not just print the number on the screen. I also communication with bluetooth, wifi, RTC... etc. So let's talk about what happens.
Program starts clearly. I wait the data from BLE device. When i receive any data from BLE, i print datas on the screen like below.
t0.setText(fdata);
t4.setText(fdata);
Beginning display shows them clearly. But something happen later.. Display reset itself. Everydata is deleted. But i continue to listen the BLE device. When i receive any, i can also display them on the screen. The problem is just the reseting itself. Why is it happening? Do you have any idea? It could be related of capacity of arduino? or overlapping on serial ports?
I am sorry about my bad english.
Thank you.