objc

Instance Methods
<GPIODelegate> Protocol Reference

A protocol that defines the methods for a GPIO delegate. More...

#import <Application/Application.h>

Instance Methods

(void) - gpio:changed:
 Called when the GPIO input changes. More...
 

Detailed Description

A protocol that defines the methods for a GPIO delegate.

Examples:
examples/Application/gpio/main.m.

Definition at line 17 of file GPIODelegate+Protocol.h.

Method Documentation

◆ gpio:changed:()

- (void) gpio: (id sender
changed: (GPIOEvent event 
required

Called when the GPIO input changes.

Parameters
senderThe GPIO that triggered the event.
eventThe event that occurred.

This method is called when the GPIO input changes, either GPIOEventRising (from low to high) or GPIOEventFalling (from high to low). When both edges are detected, the event will include both GPIOEventRising and GPIOEventFalling (GPIOEventChanged).


The documentation for this protocol was generated from the following file: