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
Copy file name to clipboardExpand all lines: README.md
+4-12
Original file line number
Diff line number
Diff line change
@@ -48,10 +48,8 @@ Please see our [docs folder here](/docs) for an API reference, pin layout and ot
48
48
49
49
### Dependencies
50
50
51
-
This project relies on [RaspberryIO](https://github.com/unosquare/raspberryio).
52
-
It's an easy-to-use .NET library for interacting with Raspberry Pi's IO functionality.
53
-
RaspberryIO is built on [Wiring Pi](http://wiringpi.com/) -
54
-
a pin based GPIO access library written in C.
51
+
This project relies on [.NET Core IoT Libraries](https://github.com/dotnet/iot).
52
+
It is a .NET library for interacting with Raspberry Pi's IO functionality.
55
53
56
54
## Installation
57
55
@@ -60,7 +58,6 @@ a pin based GPIO access library written in C.
60
58
You can grab the latest version of PowerShell IoT by running:
61
59
62
60
```powershell
63
-
sudo WIRINGPI_CODES=1 pwsh
64
61
Install-Module Microsoft.PowerShell.IoT
65
62
```
66
63
@@ -130,17 +127,12 @@ _NOTE: If you'd rather not use the script, simply copy the `out/Microsoft.PowerS
130
127
131
128
#### Running
132
129
133
-
First, you must run pwsh with sudo:
130
+
Start PowerShell:
134
131
135
132
```powershell
136
-
sudo WIRINGPI_CODES=1 pwsh
133
+
pwsh
137
134
```
138
135
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
-
144
136
If you have the `Microsoft.PowerShell.IoT` module in your PSModulePath:
// System.NotSupportedException : Get - GpioPin : Pin Pin15 'BCM 14 (UART Transmit)' does not support mode 'Input'.Pin capabilities are limited to: UARTTXD
50
-
// at the same time we need to return PinInfo for such pins, so we need to continue processing
0 commit comments