-
Notifications
You must be signed in to change notification settings - Fork 1
Build Ordinator
The ordinator project is based on the PlatformIO tool chain.
Download the source code from https://github.com/swordlordcodingcrew/ordinator.
git clone https://github.com/swordlordcodingcrew/ordinator.git
You will then have to initialise the project folder so that you can use it with the IDE of your choice. We prefer the CLion IDE from Jetbrains. If you do too, this line will initialise the directory for you:
cd ordinator pio project init --ide clion --board esp32dev
If you use a different IDE you might want to change the command accordingly.
If you add files to the project, sometimes you need to re-init the directory like so:
pio project init --ide clion
PlatformIO automatically makes sure, that you have the required middleware and libraries installed. Sometimes you might want to make sure that you have the latest middleware installed. You can do so with this command in the root directory of the ordinator project:
pio update
To compile the code, run this:
pio run
To upload to the device (attached via USB)
pio run -t upload
To start the serial monitor to see what is happening on the device, run this command. Just make sure, that you are not currently flashing your device. You can't run both, the serial monitor as well as flashing the device.
pio device monitor