Browse Source

Added new gpiocontroller constructor.

woollybah 5 năm trước cách đây
mục cha
commit
e06f5fddf0
1 tập tin đã thay đổi với 6 bổ sung0 xóa
  1. 6 0
      core.mod/gpio/gpiocontroller.bmx

+ 6 - 0
core.mod/gpio/gpiocontroller.bmx

@@ -48,6 +48,12 @@ Public
 		driver = New TLibGpiodDriver()
 		openPins = New Int[PinCount()]
 	End Method
+	
+	Method New(numberingScheme:EPinNumberingScheme, driver:TGpioDriver)
+		Self.numberingScheme = numberingScheme
+		Self.driver = driver
+		openPins = New Int[PinCount()]
+	End Method
 
 	Rem
 	bbdoc: Returns the number of pins provided by the controller.