diff --git a/main.ts b/main.ts index 29fdd84..bb6363d 100644 --- a/main.ts +++ b/main.ts @@ -49,13 +49,6 @@ namespace gamepad { return (buttonStates & button) !== 0; // Use the button enum directly as a mask } -// // Add logic block for checking button press in 'if' statements -// //% block="if button $button is pressed" -// //% group="Buttons" -// export function ifButtonPressed(button: Button): boolean { -// return isButtonPressed(button); -// } - function readShiftRegister(): number { pins.digitalWritePin(parallelLoad, 0); control.waitMicros(5);