AnsweredAssumed Answered

LED Array question

Question asked by rossi.alexander on Jul 10, 2011
Latest reply on Jul 13, 2011 by Andrew Neil
I apologize if I am oversimplifying this question, but I'm on the newer side to MCU's.

   Anyways, I was trying to figure out putting together a LED array using GPIOC 8-12 and GPIOA 8-12 to make a 4x6 array. I had figured upon using a kind of row addressing to individually light the LED's in the array, but that involves being able to 'ground out' an input pin and set the other on, and vice versa to allow for (4*6)*2=48 total independent LED's. 

  Down to specifics though, if you didn't care to read the above:

If i have this
GPIOC->CRH |= 0x00000001; // Set pin 8 at General purpose Push/Pull
GPIOC->BSRR = 1UL<<8; // Turn on LED

and would like to, instead of grounding 8 into the GND pin on the board, ground it into GPIOC pin 9. Is there any way that is done?