I don't know if it's a dumb question, but I'm really struggling with solving this problem.
I'm coding with the obd library. Now my problem with that is the continuous actualization of my variables. For instance, one variable outputs the actual speed of the car. This variable has to be updated every second or 2 seconds. To do this update I have to run 2 lines of code
cmd = obd.commands.RPM
rpm = connection.query(cmd)
but I have to check the rpm variable in some while loops and if statements. (in realtime)
Is there any opportunity to get this thing done ? (another class or thread or something) It would really help me take a leap forward in my programming project.
Thanks :)