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
nickcolb
0
Newbie Poster
mathematician
0
Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.