Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Question on port I/O

Hey everyone,
I was wondering if there was a way to cycle through the individual bits of a port without having to write each one out individually
i.e. P1.0, P1.1..etc.
I need to light up some LEDs and just wanted to save myself from lengthy code. I'd be particularly interested in some sort of "variable" I could define to equate to each bit like say P1.port and then just increment port. Thanks
Sign In or Register to comment.