Skip to content

Commit

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

0 comments on commit 149ef88

Please sign in to comment.