API to ease microcontroller programming