Hello I am getting this error that has to do with the wait function. I have tried commenting out the bits that use the wait function one by one and compiling the code and I receive the same error every time. I have tried copying and pasting my code here but it exceeds the character limit. I tried removing files of code from the code list and it was still over the limit. Therefore I decided to download the sketch from arduino create (where I am editing the sketch) and upload it here :).
Here is the error:
/tmp/611229924/build/sketch/Timing.cpp:3:67: error: non-member function 'bool wait(long unsigned int&, long unsigned int)' cannot have cv-qualifier bool wait(unsigned long& prev_time, unsigned long const interval) const ^ exit status 1
Bicycle_computer_nextion.zip (16.2 KB)