Ejemplo n.º 1
0
        protected virtual void OnIOPortCapacitiveTouchStateChange(IOPortCapacitiveTouchEventArgs e)
        {
            IOPortCapacitiveTouchEventHandler handler = CapacitiveTouchStateChanged;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Will be fired when capacitive touch interrupt state is changed.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="args"></param>
        private void CapacitiveTouch_ValueChanged(GpioPin sender, GpioPinValueChangedEventArgs args)
        {
            IOPortCapacitiveTouchEventArgs ea = new IOPortCapacitiveTouchEventArgs(1, true);

            OnIOPortCapacitiveTouchStateChange(ea);
        }