Update docs to reflect the switch

This commit is contained in:
Lorow
2025-10-21 22:49:05 +02:00
parent 55d94563e8
commit 2a3b26bbcb

View File

@@ -63,21 +63,28 @@ After this, youre ready for the Quick start below.
## Quick start ## Quick start
### 1) Grab UV.
We're using UV to manage our tools, grab and install it from [here](https://docs.astral.sh/uv/getting-started/installation/).
Once installed, you'll be able to just run the commands below and UV will take care of setting up everything.
### 1) Pick your board (loads the default configuration) ### 1) Pick your board (loads the default configuration)
Boards are autodiscovered from the `boards/` directory. First list them, then pick one: Boards are autodiscovered from the `boards/` directory. First list them, then pick one:
Windows (cmd): Windows (cmd):
```cmd ```cmd
python .\tools\switchBoardType.py --list uv run .\tools\switchBoardType.py --list
python .\tools\switchBoardType.py --board seed_studio_xiao_esp32s3 --diff uv run .\tools\switchBoardType.py --board seed_studio_xiao_esp32s3 --diff
``` ```
macOS/Linux (bash): macOS/Linux (bash):
```bash ```bash
python3 ./tools/switchBoardType.py --list uv run ./tools/switchBoardType.py --list
python3 ./tools/switchBoardType.py --board seed_studio_xiao_esp32s3 --diff uv run ./tools/switchBoardType.py --board seed_studio_xiao_esp32s3 --diff
``` ```
Notes: Notes:
- Use `--list` to see all detected board keys. - Use `--list` to see all detected board keys.
@@ -99,19 +106,18 @@ Configure the device over USB serial.
Before you run it: Before you run it:
- If you still have the serial monitor open, close it (the port must be free). - If you still have the serial monitor open, close it (the port must be free).
- In VS Code, open the sidebar “ESPIDF: Explorer” and click “Open ESPIDF Terminal”. Well run the CLI there so Python and packages are in the right environment.
Then run: Then run:
```cmd ```cmd
python .\tools\setup_openiris.py --port COMxx uv run .\tools\setup_openiris.py --port COMxx
``` ```
Examples: Examples:
- Windows: `python .\tools\setup_openiris.py --port COM69`, … - Windows: `uv run .\tools\setup_openiris.py --port COM69`, …
- macOS: idk - macOS: `uv run .\tools\setup_openiris.py --port \dev\tty<port>`
- Linux: idk - Linux: `uv run .\tools\setup_openiris.py --port \dev\tty<port>`
What the CLI can do: What the CLI can do:
@@ -207,7 +213,7 @@ Each file under `boards/` overlays `sdkconfig.base_defaults`. The merge order: b
1. Create a new config file under `boards/` (you can nest folders): for example `boards/my_family/my_variant`. 1. Create a new config file under `boards/` (you can nest folders): for example `boards/my_family/my_variant`.
2. Populate it with only the `CONFIG_...` lines that differ from the shared defaults. Shared baseline lives in `boards/sdkconfig.base_defaults` and is always merged first. 2. Populate it with only the `CONFIG_...` lines that differ from the shared defaults. Shared baseline lives in `boards/sdkconfig.base_defaults` and is always merged first.
3. The board key the script accepts will be the relative path with `/` turned into `_` (example: `boards/my_family/my_variant` -> `my_family_my_variant`). 3. The board key the script accepts will be the relative path with `/` turned into `_` (example: `boards/my_family/my_variant` -> `my_family_my_variant`).
4. Run `python tools/switchBoardType.py --list` to verify its detected, then switch using `-b my_family_my_variant`. 4. Run `uv run tools/switchBoardType.py --list` to verify its detected, then switch using `-b my_family_my_variant`.
5. If you accidentally create two files that collapse to the same key the last one found wins—rename to keep keys unique. 5. If you accidentally create two files that collapse to the same key the last one found wins—rename to keep keys unique.
Tips: Tips: