added code for a device that converts #knocks into colors