I can controll my LCD for error codes. Now I'm going to write a bit-bang communication to drive it. The functions will be included via .h and .c files into the "to be debugged" programm.
My question is: do you have tips for writing code that can be easily compiled for different (AVR) microcontrollers? I do know about the #if, #endif etc compiler instructions but never used them.
Well, maybe there is no need for #if at all, since I only bit-bang two GPIO pins and use some nops for timing. I'll use #define for the port names though. It's an interesting issue anyway and I appreciate any link or comment :)