Skip to content

Commit 2df5184

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 a45eecc commit 2df5184

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

doc/configuration.rst

+4
Original file line numberDiff line numberDiff line change
@@ -556,9 +556,11 @@ A :any:`SysfsGPIO` resource describes a GPIO line.
556556
557557
SysfsGPIO:
558558
index: 12
559+
invert: False
559560
560561
Arguments:
561562
- index (int): index of the GPIO line
563+
- invert (bool, default=False): optional, whether the logic level is inverted(active-low)
562564

563565
Used by:
564566
- `GpioDigitalOutputDriver`_
@@ -577,6 +579,7 @@ USB based gpiochips.
577579
'@SUBSYSTEM': 'usb'
578580
'@ID_SERIAL_SHORT': 'D38EJ8LF'
579581
pin: 0
582+
invert: False
580583
581584
The example would search for a USB gpiochip with the key `ID_SERIAL_SHORT`
582585
and the value `D38EJ8LF` and use the pin 0 of this device.
@@ -585,6 +588,7 @@ The `ID_SERIAL_SHORT` property is set by the usb_id builtin helper program.
585588
Arguments:
586589
- match (dict): key and value pairs for a udev match, see `udev Matching`_
587590
- pin (int): gpio pin number within the matched gpiochip.
591+
- invert (bool, default=False): optional, whether the logic level is inverted (active-low)
588592

589593
Used by:
590594
- `GpioDigitalOutputDriver`_

0 commit comments

Comments
 (0)