Alright first map the various ports ie PA0 PA4 PB5 etc. to the segment displays a-g and then tell us how you want 'em pulsed (high/low).
What I think he wants is map a variable to a set of bits. Eg. that he can write "PINX = HIGH;" to set bit X.
Am I right?
In that case, you should probably use a function like so:
Or something similar. It theoretically is possible the way you want it, but it's going to be messy and probably unportable (well, if you defined the bitset yourself then you can use a union).Code:setPin(PINX, HIGH);
So am I right with what you want? And if so, is the setPin/getPin good enough as well?