mirror of
git://projects.qi-hardware.com/ben-blinkenlights.git
synced 2025-04-21 12:27:27 +03:00
ubbctl/: also support decoding and setting of interrupts and alternate functions
This commit is contained in:
@@ -30,7 +30,15 @@ respectively.
|
||||
pull-up is enabled.
|
||||
|
||||
"F0" and "F1" indicate that the pin configured as a function (i.e.,
|
||||
for the MMC controller) and does not operate as GPIO.
|
||||
for the MMC controller) and does not operate as GPIO. If the second
|
||||
function of the pin is selected, "Fb..." is shown instead of "F...".
|
||||
|
||||
"I..." indicates that the pin is configured as an interrupt. The
|
||||
next letter defines the type of interrupt, "r" for rising edge,
|
||||
"f" for falling edge, "h" for high level, and "l" for low level. If
|
||||
the pull-up is enabled, ubbctl adds an "R". Finally, it shows the
|
||||
pin status. E.g., "IfR1" would be an interrupt triggering on the
|
||||
falling edge, with pull-up enabled, and currently inactive.
|
||||
|
||||
ubbctl can run in continuous mode, in which it updates the status
|
||||
regularly (currently every 200 ms):
|
||||
|
||||
Reference in New Issue
Block a user