added deck.hwinfo module

This commit is contained in:
Luxferre
2025-12-23 00:09:58 +02:00
parent ebbf0fbbe6
commit 97de31f2ad
3 changed files with 33 additions and 1 deletions
+9
View File
@@ -94,6 +94,15 @@ The following `deck.fs` functions are direct aliases to the corresponding `os` c
- `env` = `getenv` = `os.getenv`
- `rnd` = `urandom` = `os.urandom`
### `deck.hwinfo` (WIP)
Various hardware information.
Exports the following functions:
- `board_id()`: get the board ID, or `emulated` if it's not run on a CircuitPython device
- `battery_v()`: (T-Deck-specific) get the current battery voltage
### `deck.net`
T-Deck/CircuitPython-specific library for Wi-Fi connection and returning `requests` and `socket` library instances.