The class definition has to be written once. It can be written in a separate file and reused between projects (given that the chip remains LPC23XX). It's included into the project once. Then each bit is declared with a single line: ``` IOPin pinMnemonicName(iPort, iBit) ``` Of course it's a matter of personal preference, but I wouldn't mind having a 100 of these one-line definitions.bobcousins:
It’s nice, but isn’t it also a lot of code? I wouldn’t like to type in definitions for a more than a few bits with that method.