I have recently been working on a GPIO/I2C library for the RPI and have been trying to come up with a good method for keeping track of which GPIO pins are in use. Specifically for things like serial communication (i.e. I2C, SPI, ect.). I was thinking that I could use an array and put the pins in use into that but I'm worried that that might be bad practice. The important thing to remember is that I can't use the std library because this is for embedded programming and their is no OS. I also c...