Skip to content

Commit bc1737a

Browse files
authored
[Jetson.GPIO] Update to ~=2.1.11 (#14647)
1 parent 7aa7cc9 commit bc1737a

File tree

3 files changed

+29
-25
lines changed

3 files changed

+29
-25
lines changed

stubs/Jetson.GPIO/Jetson/GPIO/gpio.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ def add_event_detect(
4444
edge: Literal[31, 32, 33],
4545
callback: Callable[[int], None] | None = ...,
4646
bouncetime: int | None = ...,
47-
polltime: float = ...,
47+
polltime: float = 0.2,
4848
) -> None: ...
49-
def remove_event_detect(channel: int, timeout: float = ...) -> None: ...
49+
def remove_event_detect(channel: int, timeout: float = 0.5) -> None: ...
5050
def event_detected(channel: int) -> bool: ...
5151
def add_event_callback(channel: int, callback: Callable[[int], None]) -> None: ...
5252
def wait_for_edge(

stubs/Jetson.GPIO/Jetson/GPIO/gpio_pin_data.pyi

Lines changed: 26 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -11,45 +11,49 @@ JETSON_TX2_NX: Final = "JETSON_TX2_NX"
1111
JETSON_ORIN: Final = "JETSON_ORIN"
1212
JETSON_ORIN_NX: Final = "JETSON_ORIN_NX"
1313
JETSON_ORIN_NANO: Final = "JETSON_ORIN_NANO"
14+
JETSON_THOR_REFERENCE: Final = "JETSON_THOR_REFERENCE"
1415

15-
JETSON_MODELS: list[str] = ...
16+
JETSON_MODELS: list[str]
1617

17-
JETSON_ORIN_NX_PIN_DEFS: list[tuple[int, str, str, int, int, str, str, str | None, int | None]] = ...
18-
compats_jetson_orins_nx: Sequence[str] = ...
19-
compats_jetson_orins_nano: Sequence[str] = ...
18+
JETSON_ORIN_NX_PIN_DEFS: list[tuple[int, str, str, int, int, str, str, str | None, int | None]]
19+
compats_jetson_orins_nx: Sequence[str]
20+
compats_jetson_orins_nano: Sequence[str]
2021

21-
JETSON_ORIN_PIN_DEFS: list[tuple[int, str, str, int, int, str, str, str | None, int | None]] = ...
22-
compats_jetson_orins: Sequence[str] = ...
22+
JETSON_ORIN_PIN_DEFS: list[tuple[int, str, str, int, int, str, str, str | None, int | None]]
23+
compats_jetson_orins: Sequence[str]
2324

24-
CLARA_AGX_XAVIER_PIN_DEFS: list[tuple[int, str, str, int, int, str, str, str | None, int | None]] = ...
25-
compats_clara_agx_xavier: Sequence[str] = ...
25+
CLARA_AGX_XAVIER_PIN_DEFS: list[tuple[int, str, str, int, int, str, str, str | None, int | None]]
26+
compats_clara_agx_xavier: Sequence[str]
2627

27-
JETSON_NX_PIN_DEFS: list[tuple[int, str, str, int, int, str, str, str | None, int | None]] = ...
28-
compats_nx: Sequence[str] = ...
28+
JETSON_NX_PIN_DEFS: list[tuple[int, str, str, int, int, str, str, str | None, int | None]]
29+
compats_nx: Sequence[str]
2930

30-
JETSON_XAVIER_PIN_DEFS: list[tuple[int, str, str, int, int, str, str, str | None, int | None]] = ...
31-
compats_xavier: Sequence[str] = ...
31+
JETSON_XAVIER_PIN_DEFS: list[tuple[int, str, str, int, int, str, str, str | None, int | None]]
32+
compats_xavier: Sequence[str]
3233

33-
JETSON_TX2_NX_PIN_DEFS: list[tuple[int, str, str, int, int, str, str, str | None, int | None]] = ...
34-
compats_tx2_nx: Sequence[str] = ...
34+
JETSON_TX2_NX_PIN_DEFS: list[tuple[int, str, str, int, int, str, str, str | None, int | None]]
35+
compats_tx2_nx: Sequence[str]
3536

36-
JETSON_TX2_PIN_DEFS: list[tuple[int, str, str, int, int, str, str, str | None, int | None]] = ...
37-
compats_tx2: Sequence[str] = ...
37+
JETSON_TX2_PIN_DEFS: list[tuple[int, str, str, int, int, str, str, str | None, int | None]]
38+
compats_tx2: Sequence[str]
3839

39-
JETSON_TX1_PIN_DEFS: list[tuple[int, str, str, int, int, str, str, str | None, int | None]] = ...
40-
compats_tx1: Sequence[str] = ...
40+
JETSON_TX1_PIN_DEFS: list[tuple[int, str, str, int, int, str, str, str | None, int | None]]
41+
compats_tx1: Sequence[str]
4142

42-
JETSON_NANO_PIN_DEFS: list[tuple[int, str, str, int, int, str, str, str | None, int | None]] = ...
43-
compats_nano: Sequence[str] = ...
43+
JETSON_NANO_PIN_DEFS: list[tuple[int, str, str, int, int, str, str, str | None, int | None]]
44+
compats_nano: Sequence[str]
4445

45-
jetson_gpio_data: dict[str, tuple[list[tuple[int, str, str, int, int, str, str, str | None, int | None]], dict[str, Any]]] = ...
46+
JETSON_THOR_REFERENCE_PIN_DEFS: list[tuple[int, str, str, int, int, str, str, str | None, int | None]]
47+
compats_jetson_thor_reference: Sequence[str]
48+
49+
jetson_gpio_data: dict[str, tuple[list[tuple[int, str, str, int, int, str, str, str | None, int | None]], dict[str, Any]]]
4650

4751
class ChannelInfo:
4852
def __init__(
4953
self, channel: int, line_offset: int, gpio_name: str, gpio_chip: str, pwm_chip_dir: str, pwm_id: int
5054
) -> None: ...
5155

52-
ids_warned: bool = ...
56+
ids_warned: bool
5357

5458
def find_pmgr_board(prefix: str) -> str | None: ...
5559
def warn_if_not_carrier_board(*carrier_boards: str) -> None: ...

stubs/Jetson.GPIO/METADATA.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
version = "2.1.*"
1+
version = "~=2.1.11"
22
upstream_repository = "https://github.com/NVIDIA/jetson-gpio"

0 commit comments

Comments
 (0)