0
작은 프로그램을 사용하여 모든 설정이 올바르게되었는지 확인하려고합니다. 그러나 "GPIO"를 참조하는 모든 것에 대해 오류가 발생합니다 (의견 참조) 또한 "이미 Windows IoT Extensions for UWP"를 참조했습니다. - 도움을 주셔서 감사합니다.Windows IoT VB .NET을 사용하는 GPL GPIO
Imports Windows.Devices.Gpio 'Imports statement is unnecessary
Public NotInheritable Class MainPage
Inherits Page
Private gpio
Private pin As GpioPin 'ERROR: GpioPin is not defined
Private Const LED_PIN = 18
Private Sub button_Click(sender As Object, e As RoutedEventArgs) Handles button.Click
Call TurnLedOnOff()
End Sub
Private Sub TurnLedOnOff()
'Check if gpio was already initialied
If gpio Is Nothing Then
gpio = GpioController.GetDefault 'ERROR: GpioController is not declared
End If
'Check if LED's pin was already initialied
If pin Is Nothing Then
pin = gpio.OpenPin(LED_PIN)
pin.Write(GpioPinValue.Low) 'ERROR: Not Declared
pin.SetDriveMode(GpioPinDriveMode.Output) 'ERROR: Not Declared
End If
'Read pin status and invert state
If pin.Read = GpioPinValue.High Then 'ERROR: Not Declared
pin.Write(GpioPinValue.Low) 'ERROR: Not Declared
Else
pin.Write(GpioPinValue.High) 'ERROR: Not Declared
End If
End Sub
End Class
이 보이는보십시오. Windows SDK 10586이 설치되어 있습니까? – Jackie