In EasyC is it possible to determine the value (0 or 1, true or false) of an interrupt? We want to program autonomous mode for both the 15 and 21 inch goals (different logic) and use an interrupt to differentiate the two.
yes,
IF digital input(x)== 1,
program A
ELSE
program B
Do you want to specifically use an interrupt (one of the 6 interrupt ports), or just use a jumper to select a sub-program? If the latter, then IGMpower’s code with a jumper in a digital input (dig/analog slots 5-10, unless you reconfigure one of the analog port) works.
EasyC Pro has an Interrupt block that you can use to monitor one of the six interrupt ports and you can upgrade to the Pro version for only $50 if you don’t already have it.