Hey all
I’m new with this Squirrel coding, and I have a problem with a division:
led3.write(pot1.read()/65535);
Pot1.read is input from a variable resistor and I can see from the log that the value is between 0 and 65535.
The result is always 0 or 1. How do I get a decimal number to write to PWM_OUT?
Thanks in advance :o)
Mike