Skip to content

Commit

Permalink
Removed if block
Browse files Browse the repository at this point in the history
  • Loading branch information
mac-aron committed Jul 10, 2024
1 parent 149ef88 commit b962aa7
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b962aa7

Please sign in to comment.