From b962aa70af8ad48b379eec471ec3409e18288062 Mon Sep 17 00:00:00 2001 From: Aron Eggens Date: Wed, 10 Jul 2024 23:42:52 +0100 Subject: [PATCH] Removed if block --- main.ts | 7 ------- 1 file changed, 7 deletions(-) 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);