Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let secureState = 0
- basic.forever(function () {
- while (secureState == 0) {
- if (input.buttonIsPressed(Button.A)) {
- secureState = 1
- }
- }
- while (secureState == 1) {
- if (input.buttonIsPressed(Button.B)) {``
- secureState = 0
- }
- if (pins.analogReadPin(AnalogPin.P1) > 900) {
- basic.showLeds(`
- # . . . #
- . # . # .
- . . # . .
- . # . # .
- # . . . #
- `)
- basic.forever(function () {
- music.ringTone(Note.C)
- })
- } else { }
- }
- })
Advertisement
Add Comment
Please, Sign In to add comment