Does anyone know the proper syntax for basic math operators when working with variables? I need to create a variable that is based on another variable divided by a number, but am not sure what the syntax is.
This obviously is not working, but I don’t know what it should look like. I need to eventually create a function that relates the speed of one of my steppers to a time and then run another stepper based on that time. I just don’t know the syntax though.
Here is a bad example:
Where I was trying to do some math with setting a pwm 0 - 255 value for some LED’s based on temperature inputs.
but everytime the temp would exceeds the max temp (overshoot) it would error saying led cant be set to above 1.0 (was going to next use the target instead of max but got busy doin other things than bling