added deck.hwinfo module
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user