The plan slightly changed, now it's only one LED light. What i plan is when I press the button, the light will go on got weighted rings, and if I press the button and the button is unweighted, the light will not go on (maybe flash, not sure)
would this work?
Quote:
task main()
{
while(true) {
if(sensorvalue[bucketlight] > 5) {
turn red on;
}
else
{
turn red off;
}
}
}
|
(i know a margin of > 5 is very small, but it's the best i got)