Created
November 26, 2019 18:28
-
-
Save Xayer/72cb1a063d80ab959125cf1c578d0ef9 to your computer and use it in GitHub Desktop.
RGB light test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| input.onButtonPressed(Button.A, function () { | |
| while (true) { | |
| for (let index = 0; index <= 3; index++) { | |
| pins.digitalWritePin(DigitalPin.P0, 1) | |
| basic.pause(500) | |
| pins.digitalWritePin(DigitalPin.P0, 0) | |
| basic.pause(500) | |
| } | |
| } | |
| }) | |
| basic.forever(function () { | |
| }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment