...
Why not posting the code the same way as first time? Many helpers can't read n .ino file and You get less readers.
I wired up the display and switches as in the diagram and loaded and ran your code. I fixed these warnings and tried the code. It is getting stuck somewhere. Add a Serial.begin() to setup and insert serial prints to follow the program execution to see where the problem is. Serial prints are your best debugging tool.
Your switches are wired to ground but show no pullup resistors nor are the internal resistors enabled in the pinMode() functions. I enabled the pullups and the switches read, but no help.
displayPage == 2;
= for assignment, == for comparison. If you turn on compiler warnings in the IDE, Files, Preferences that will show a warning
warning: statement has no effect [-Wunused-value]
displayPage == 2;
UVI_previous == UVI_current;
last_UVI == UVI_previous;
Same as above. = for assignment, == for comparison. And these generates warnings.
if (displayItem = 1)
Same as above.
Okey. Then You did the right thing.
Several lines like displayPage ==
Check up all == !
This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.
