31.10.2023, 18:32
(This post was last modified: 31.10.2023, 18:34 by Erwin van der Zwart.)
You are also reading an analog value and then you have a if x == true …
An analog value will not return a binary result but float/real so your if statement is incorrect..
Also a os.sleep(0) does not make sense as it does nothing..
An analog value will not return a binary result but float/real so your if statement is incorrect..
Also a os.sleep(0) does not make sense as it does nothing..