Esempio n. 1
0
        private void Initialize(GpioDriver driver, PinNumberingScheme numbering)
        {
            Driver    = driver;
            Numbering = numbering;
            _pins     = new Dictionary <int, GpioPin>();

            driver.ValueChanged += OnPinValueChanged;
        }
        public GpioController(GpioDriver driver, PinNumberingScheme numbering)
        {
            Driver    = driver;
            Numbering = numbering;
            _pins     = new Pin[driver.PinCount];

            driver.ValueChanged += OnPinValueChanged;
        }
Esempio n. 3
0
 public GpioController(GpioDriver driver, PinNumberingScheme numbering = PinNumberingScheme.Gpio)
 {
     Initialize(driver, numbering);
 }