MCU firmware for the Treehopper device