So I'm working on a project where I need to count time in hour format. Like a elapsed time counter. But there are many parts where I need to do the same conversion again and again in this way : millis/3600000
So I tried to make a extra function that'll return the 'time' variable if it gets hours as input. But I was trying to define the data type as unsigned long. Ide isn't compiling it showing error. What am I doing wrong? Can int data type do the job? I don't need 100% precision. So I'm ditching rtc. Any suggestions is appreciated.
In the IDE there is a "copy error messsage" button. That will copy the entire error message to the clipboard. Then you can paste the message into a post. Paraphrasing the error messsge leaves out important information.