added cpu_f

This commit is contained in:
Luxferre
2025-12-23 22:02:44 +02:00
parent c95c1dd702
commit 67e906bb19
3 changed files with 10 additions and 2 deletions
+1
View File
@@ -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.