Skip to content

Commit 9194c34

Browse files
authored
Fix accessing gpio controller (#164)
1 parent 44fc946 commit 9194c34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

M5StackCommon/Core2ToughCommon.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,8 @@ public static void InitializeScreen(int memoryBitMapAllocation = Screen.DefaultM
174174
_startThread = new();
175175
_callbackThread = new(ThreadTouchCallback);
176176
_callbackThread.Start();
177-
_gpio.OpenPin(TouchPinInterrupt, PinMode.Input);
178-
_gpio.RegisterCallbackForPinValueChangedEvent(TouchPinInterrupt, PinEventTypes.Rising | PinEventTypes.Falling, TouchCallback);
177+
GpioController.OpenPin(TouchPinInterrupt, PinMode.Input);
178+
GpioController.RegisterCallbackForPinValueChangedEvent(TouchPinInterrupt, PinEventTypes.Rising | PinEventTypes.Falling, TouchCallback);
179179
}
180180
}
181181

0 commit comments

Comments
 (0)