I only want to toggle an LED!
kutalinelucas
Posts: 80
This is my first day into the prop chip and I'm already a little coffuffled...
Does anybody know why this statement works...
but not this...
I can choose any arbitary number and send it over 2 nibbles to the prop, but for some reason the less-than 30 statement won't toggle an LED! quite fustrated falling over at such an early stage and I'd really appriciate a suggestion...can post my code so far if it'll help. cheers
Does anybody know why this statement works...
if(reconstructed_data := 27) !OUTA[8] reconstructed_data := 0 RETURN
but not this...
if(reconstructed_data < 30) !OUTA[8] reconstructed_data := 0 RETURN
I can choose any arbitary number and send it over 2 nibbles to the prop, but for some reason the less-than 30 statement won't toggle an LED! quite fustrated falling over at such an early stage and I'd really appriciate a suggestion...can post my code so far if it'll help. cheers
Comments
In your second snippet you are doing a comparison which I guess is never TRUE.
Thanks for the help