By far the most common languages used for microcontrollers are C (not C++) and assembly language. Neither is instantly transportable from one type of micro to another because so much of the program involves tweaking hardware based modules like PWM, UARTS, SPI, and even GPIO. If you keep all...