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

You sound as if you might be referring to a microcontroller, rather than the x86 family of processors this site is mainly concerned with. If that is so, you might be better of on a forum which is dedicated to that family of microcontrollers. Possibly, the manufacturer might host one.