You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 14, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+7-2Lines changed: 7 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -60,7 +60,7 @@ a pin based GPIO access library written in C.
60
60
You can grab the latest version of PowerShell IoT by running:
61
61
62
62
```powershell
63
-
sudo pwsh
63
+
sudo WIRINGPI_CODES=1 pwsh
64
64
Install-Module Microsoft.PowerShell.IoT
65
65
```
66
66
@@ -133,9 +133,14 @@ _NOTE: If you'd rather not use the script, simply copy the `out/Microsoft.PowerS
133
133
First, you must run pwsh with sudo:
134
134
135
135
```powershell
136
-
sudo pwsh
136
+
sudo WIRINGPI_CODES=1 pwsh
137
137
```
138
138
139
+
##### About `WIRINGPI_CODES` environment variable
140
+
141
+
`Microsoft.PowerShell.IoT` module internally uses [WiringPi library](http://wiringpi.com/reference/setup) which has a default behavior of terminating current process (in this case - PowerShell) even on non-critical errors in setup functions.
142
+
To avoid such crashes define `WIRINGPI_CODES` environment variable either when starting PowerShell (see example above) or through configuration scripts - example for an interactive login shell - `echo "export WIRINGPI_CODES=1"|sudo tee -a /etc/profile.d/WiringPiCodes.sh`
143
+
139
144
If you have the `Microsoft.PowerShell.IoT` module in your PSModulePath:
0 commit comments