|
Re: Single Click On/Off Using the Trigger in EasyC
Quote:
Originally Posted by lukevanoort
Since the value of a trigger is already essentially a boolean you can just use it as itself, no == needed. So what he has is the same thing as (p1_sw_trig == 1 && n == 0)
|
Yep, I have the variable p1_sw_trig set when the trigger is pressed.
__________________
Many respectable physicists said that they weren't going to stand for this - partly because it was a debasement of science, but mostly because they didn't get invited to those sort of parties."
-Douglas Adams The Hitchhiker's Guide to the Galaxy
2007 Galileo #6 seed, 5th Alliance Captain, Semi-finalist
2007 Philly Regional #4 Seed, Philly Regional GM Industrial Design Award Winner
2006 Philly Regional Highest Rookie Seed,Philly Regional Rookie All Star
|