Thread: changing pin orders in a #define varaible?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Mar 2010
    Posts
    8

    changing pin orders in a #define varaible?

    Hi,
    Im trying to write a simple bit of C to multiplex some 7seg displays. For practical purposes on the layout it made sense to muddle up the order of some pins (ie abcdefg corresponds to PA0,PA1,PA4,PB0 etc..)

    I was just wondering how you might #define a variable, say UNITS, that has these pins rearranged in an order you want! Sort of like a virtual PORT...

    Thanks
    Last edited by graeme; 03-31-2010 at 07:45 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Buidl Library with ./configure script
    By Jardon in forum C Programming
    Replies: 6
    Last Post: 07-24-2009, 09:36 AM
  2. Pointer within a Struct
    By Bladactania in forum C Programming
    Replies: 11
    Last Post: 04-03-2009, 10:20 PM
  3. Why?!?
    By p3rry in forum C Programming
    Replies: 3
    Last Post: 01-08-2009, 12:52 PM
  4. size of an integer pointer
    By onebrother in forum C Programming
    Replies: 5
    Last Post: 07-09-2008, 11:49 AM
  5. My graphics library
    By stupid_mutt in forum C Programming
    Replies: 3
    Last Post: 11-26-2001, 06:05 PM