OK, I think I follow your points, but the suggestions are no along the lines I wanted to go. Let me restate the question this way...
I have 8 I/O pins that are NOT in succession.
I want to assign names to the pins. I want those names to be an array, so I can cycle through them in succession in a loop. By assigning the bits to the array name, I should be able to rearrange them logically to fit my physical setup.
Is that achievable in PBPro, and if so, what do I need to do so?
I attempted to do this by creating the array led[x]. I then defined each bit of led[x] to a specific I/O pin (porta.2 = led[1]) I have also tried this with led[1] var porta.2, and that did not work either. It does work if I do NOT use an array ( led1 var porta.2 ), but then I can't use the name led1 in a loop, cycling from led1 to led9...
Is that question more clear?
Bookmarks