From 149ef88df9fd2c4533c9a906879658a8eb626be8 Mon Sep 17 00:00:00 2001 From: Aron Eggens Date: Wed, 10 Jul 2024 23:32:54 +0100 Subject: [PATCH] Some test --- main.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/main.ts b/main.ts index 7786745..29fdd84 100644 --- a/main.ts +++ b/main.ts @@ -49,12 +49,12 @@ 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); - } +// // 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);