Last active
March 18, 2019 00:33
-
-
Save DanielSSilva/6c7b15f87271cd7f7a71a885f672edcb to your computer and use it in GitHub Desktop.
Simple script that turns a led on and off each second
This file contains 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
$ledPinNumber = 8 | |
while($true){ | |
Set-GpioPin -Id $ledPinNumber -Value Low | |
Start-Sleep -Seconds 1 | |
Set-GpioPin -Id $ledPinNumber -Value High | |
Start-Sleep -Seconds 1 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment