unosquare / wiringpi-dotnet

Provides complete managed access to the popular wiringpi C library
MIT License
68 stars 13 forks source link

The name 'Pi' does not exist in the current context #31

Closed mikmas closed 3 years ago

mikmas commented 3 years ago

I tried to use your example: // All 3 methods below are exactly equivalent var blinkingPin = Pi.Gpio[17]; blinkingPin = Pi.Gpio[BcmPin.Gpio17]; blinkingPin = Pi.Gpio.Pin17; There is only Unosquare.WiringPi namespace, which does not have "Pi" class

geoperez commented 3 years ago

You need to add RaspberryIO Nuget too (https://github.com/unosquare/raspberryio)