Beispiel #1
0
        public int ReadGPIO(int port)
        {
#if FINTEK
            return(_gpioInst.ReadPin(port));
#elif GPIO6854
            return(Gpio6854.GPIO_GetPortStatus(port));
#endif
        }
Beispiel #2
0
        public void UpdateGPIO()
        {
#if FINTEK
            return;
#elif GPIO6854
            Gpio6854.GPIO_Scan();
#endif
        }
Beispiel #3
0
        public bool Initialize()
        {
#if FINTEK
            _gpioInst = new GPIOFintek();
            _gpioInst.Initialize();
#elif GPIO6854
            Gpio6854.GPIO_Initialize();
#endif
            return(true);
        }