Skip to content

Instantly share code, notes, and snippets.

@DanielSSilva
Last active March 18, 2019 00:33
Show Gist options
  • Save DanielSSilva/6c7b15f87271cd7f7a71a885f672edcb to your computer and use it in GitHub Desktop.
Save DanielSSilva/6c7b15f87271cd7f7a71a885f672edcb to your computer and use it in GitHub Desktop.
Simple script that turns a led on and off each second
$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