Encender y apagar un LED en Raspberry Pi realizando una conexión SSH desde PowerShell
New-SSHSession -ComputerName 192.168.1.162 -Credential (Get-Credential) -Force Invoke-SSHCommand -Index 0 'python -c "import RPi.GPIO as GPIO;GPIO.setmode(GPIO.BOARD);GPIO.setup(11, GPIO.OUT);GPIO.output(11, True);"' Start-Sleep -Seconds 10 Invoke-SSHCommand -Index 0 'python -c "import RPi.GPIO as GPIO;GPIO.setmode(GPIO.BOARD);GPIO.setup(11, GPIO.OUT);GPIO.output(11, False);GPIO.cleanup();"'
View On WordPress
















