View Single Post
  #3   Spotlight this post!  
Unread 29-11-2012, 15:23
Kazroid Kazroid is offline
hopeless promgrammer
AKA: Brian Kasner
FTC #5264 (ILITE Blue Chips)
Team Role: Programmer
 
Join Date: Oct 2012
Rookie Year: 2012
Location: Haymarket
Posts: 3
Kazroid is an unknown quantity at this point
Re: Programming ordeal

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)
__________________
Simply The Greatest

Last edited by Kazroid : 30-11-2012 at 11:03.