Circuits.GPIO.Chip.listen_event
You're seeing just the function
listen_event
, go back to Circuits.GPIO.Chip module for more information.
Specs
Listen to line events on the line offset
Circuits.GPIO.Chip.listen_event(mygpio_chip, 24)
# cause the offset to change value
flush
{:circuits_cdev, 24, timestamp, new_value}
The timestamp will be in nanoseconds so as you do time calculations and conversions be sure to take that into account.
The new_value
will be the value the offset value changed to either 1
or
0
.