PowerShell / PowerShell-IoT

Interact with I2C, SPI & GPIO devices using PowerShell Core!
https://www.powershellgallery.com/packages/Microsoft.PowerShell.IoT
MIT License
129 stars 28 forks source link

Set-gpiopin not working as expected #44

Closed jaswalters closed 5 years ago

jaswalters commented 5 years ago

I set everything up on the pi and built a small led circuit on a breadboard with gpio #18. I run set-gpiopin -id 18 -value High and the Led does nothing.

I try the same via python code and works no issues.

Am I missing something here?

TylerLeonhardt commented 5 years ago

@jaswalters can you do me a favor and double check you have the right pin?

https://github.com/PowerShell/PowerShell-IoT/blob/master/docs/rpi3_pin_layout.md

jaswalters commented 5 years ago

@TylerLeonhardt TY! That did it. I saw that diagram a while back but did not put the correlation together.

TylerLeonhardt commented 5 years ago

No worries! Enjoy your PowerShell powered hardware 😎