Expected A Label
HI!!
I have the parallax serial 2x16 LCD displaying readings from the DS1620 Digital thermometer. Also I want it to display the next reading of the thermometer, but it gets this "Expected a label" error on a "IF seconds = 60 then seconds = 0:" Command. What does that mean and how can I fix it. I attached the code of what I am playing with to this post, hope you guys can help me.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Thank, you
Lutamos
I have the parallax serial 2x16 LCD displaying readings from the DS1620 Digital thermometer. Also I want it to display the next reading of the thermometer, but it gets this "Expected a label" error on a "IF seconds = 60 then seconds = 0:" Command. What does that mean and how can I fix it. I attached the code of what I am playing with to this post, hope you guys can help me.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Thank, you
Lutamos
Comments
IF seconds = 60 THEN GOTO clear_seconds
...
clear_seconds:
· seconds = 0
· GOTO somewhere
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Thank, you
Lutamos
This line is valid. But you added another piece of code after the colon. A cleaner way to do what you did would be:
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Engineering