Code for an accelerometer controlled pixel bracelet