Skip to content

Commit 8e68f4d

Browse files
committed
doc/configuration.rst: Add documentation for the new invert attribute for SysfsGPIO
Update the SysfsGPIO, MatchedSysfsGPIO to add the new invert (active-low) attribute. Signed-off-by: Perry Melange <[email protected]>
1 parent b8d3d4d commit 8e68f4d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

doc/configuration.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -610,9 +610,11 @@ A :any:`SysfsGPIO` resource describes a GPIO line.
610610
611611
SysfsGPIO:
612612
index: 12
613+
invert: False
613614
614615
Arguments:
615616
- index (int): index of the GPIO line
617+
- invert (bool, default=False): optional, whether the logic level is inverted(active-low)
616618

617619
Used by:
618620
- `GpioDigitalOutputDriver`_
@@ -636,6 +638,7 @@ USB based gpiochips.
636638
'@SUBSYSTEM': 'usb'
637639
'@ID_SERIAL_SHORT': 'D38EJ8LF'
638640
pin: 0
641+
invert: False
639642
640643
The example would search for a USB gpiochip with the key `ID_SERIAL_SHORT`
641644
and the value `D38EJ8LF` and use the pin 0 of this device.
@@ -644,6 +647,7 @@ The `ID_SERIAL_SHORT` property is set by the usb_id builtin helper program.
644647
Arguments:
645648
- match (dict): key and value pairs for a udev match, see `udev Matching`_
646649
- pin (int): gpio pin number within the matched gpiochip.
650+
- invert (bool, default=False): optional, whether the logic level is inverted (active-low)
647651

648652
Used by:
649653
- `GpioDigitalOutputDriver`_

0 commit comments

Comments
 (0)