Firmware for controller and modules of Cubic Haptic Construction Kit