Skip to content
Snippets Groups Projects
README.md 1006 B
Newer Older
Jens Nolte's avatar
Jens Nolte committed
# qthing

Jens Nolte's avatar
Jens Nolte committed
## Prerequisites
Jens Nolte's avatar
Jens Nolte committed
### On NixOS (or with Nix)
Jens Nolte's avatar
Jens Nolte committed
Run `nix-shell` to load the toolchain

### On other distributions
Install the [ESP32 Toolchain](https://esp-idf.readthedocs.io/) and add it to your PATH

Jens Nolte's avatar
Jens Nolte committed
## Get started
Jens Nolte's avatar
Jens Nolte committed
* Create or open a device project (see [qthing-subraum](https://git.services.c3pb.de/c3pb/qthing-subraum) for an example)
* Init/update submodules: `git submodule update --init --recursive`
* Run `./bin/set-environment <path_to_environment_file.h>` to set a target environment. This creates a symlink to your target environment file.
* Run `./bin/set_device <path_to_device_directory>` to set a target device. This also creates a symlink.
Jens Nolte's avatar
Jens Nolte committed
* Run `./bin/make flash` (or `./make flash monitor`) to build and flash your device.
Jens Nolte's avatar
Jens Nolte committed

## esp-idf notes
Jens Nolte's avatar
Jens Nolte committed
This project includes the esp-idf as a submodule. Use the included script (`./bin/make`) to invoke the toolchain or set your `IDF_PATH` to the projects `esp-idf` directory to avoid version conflicts.
Jens Nolte's avatar
Jens Nolte committed

## Disclaimer
Jens Nolte's avatar
Jens Nolte committed
The API is not stable yet