Driver and firmware library for MSP430 processors