added cpu_f
This commit is contained in:
@@ -106,6 +106,7 @@ Exports the following functions:
|
||||
|
||||
- `board_id()`: get the board ID (e.g. `lilygo_tdeck` for T-Deck/T-Deck Plus), or `emulated` if it's not run on a CircuitPython device
|
||||
- `battery_v()`: (T-Deck-specific) get the current battery voltage (or 0 if running in an emulated environment)
|
||||
- `cpu_f()`: CPU frequency in Hertz
|
||||
|
||||
Also, this module exposes the `REAL_HW` variable to detect whether the code is running on a real hardware in the CircuitPython environment.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user