        }
                }
                return groupStatus;
            }

            function parseButtonState(buttonMap) {
                const pressedButtons = [];
                for (const [button, mask] of Object.entries(BUTTON_MASKS)) {
                    if ((buttonMap & mask) === 0) {
                        pressedButtons.push(button);
                    }
                }
                return pressedButtons;
            }

            function parseAnalogMessage(data) {
               