~~ command
hacksign23
Posts: 15
Well. I just got my Propeller education kit and I was wondering...
In one of the tutorials, it contains this line:
thanks.
In one of the tutorials, it contains this line:
dira[LEDs_START..LEDs_END]~~I assume... dira means set direction from pins LEDs_start to LEDs_END (both variables) but what does ~~ mean?
thanks.
Comments
~~ used as a post set operator will set all bits high.
It is a quick way to set the included pins to output.
Look in the manual under Unary Operators.
It sets individual bits of dira to one. -- output --
hope this helps
Good luck!
So for the dira command, ~~ just sets all of the pins within the two variables to high, which dira interprets as set to output, right?
thank you so much
is equivalent to
dira[LEDs_START..LEDs_END] := 1
Steve