2020-02-02 12:45:19 +00:00
|
|
|
<h2>Installation Guide using PlatformIO</h2>
|
2020-01-30 15:15:56 +00:00
|
|
|
<br>
|
2020-02-02 12:45:19 +00:00
|
|
|
1. Clone all files of the respository to your local working directory<br>
|
|
|
|
2. Install the missing libraries<br>
|
|
|
|
There are two possibilities - either using the Library Manager of PlatformIO or the command line tool:<br>
|
|
|
|
<h3>1. Built-In Liabrary Manager</h3>
|
2020-01-30 15:15:56 +00:00
|
|
|
Press the PlatformIO HOME Button to enter the Home Screen and there the Libraries Button to add missing libraries:<br>
|
2022-10-02 14:13:27 +00:00
|
|
|
<img src="img/img1.jpg" width="480"><br/>
|
|
|
|
Search and install the following libaries:<br/>
|
2020-01-30 15:15:56 +00:00
|
|
|
<ul>
|
|
|
|
<li>RadioHead</li>
|
|
|
|
<li>TinyGPSPlus</li>
|
|
|
|
<li>DHT sensor library for ESPx</li>
|
|
|
|
<li>Adafruit SSD1306</li>
|
|
|
|
<li>Adafruit GFX Library</li>
|
2022-10-02 14:13:27 +00:00
|
|
|
<li>Adafruit BusIO</li>
|
2020-01-30 15:25:44 +00:00
|
|
|
<li>Adafruit Unified Sensor</li>
|
2022-10-02 14:13:27 +00:00
|
|
|
<li>https://github.com/SQ9MDD/AXP202X_Library.git (AXP202X_Library)</li>
|
2020-01-31 13:31:01 +00:00
|
|
|
<li>OneWire</li>
|
|
|
|
<li>DallasTemperature</li>
|
2022-10-02 14:13:27 +00:00
|
|
|
<li>SparkFun u-blox Arduino Library</li>
|
|
|
|
<li>blanchon/ArduinoJson</li>
|
|
|
|
<li>arcao/Syslog</li>
|
2020-01-30 15:15:56 +00:00
|
|
|
</ul>
|
|
|
|
<br>
|
2020-02-02 12:45:19 +00:00
|
|
|
<h3>2. Command Line Tool</h3>
|
2022-10-02 14:29:36 +00:00
|
|
|
If you issue<br/>
|
|
|
|
~/.platformio/penv/bin/pio run<br/>
|
|
|
|
It should resolve all dependencies automaticaly, thanks to the definitions in the section "lib_deps =".<br/>
|
2022-10-02 14:13:27 +00:00
|
|
|
You could (but not need to) install the libraries by hand:
|
|
|
|
<br/>
|
2022-10-02 14:29:36 +00:00
|
|
|
platformio lib install "<library name>“
|
2022-10-02 14:13:27 +00:00
|
|
|
<br/>
|
|
|
|
Check that the platformio.ini is available as it holds the board type for PlatformIO.
|
|
|
|
|
2022-10-02 14:20:59 +00:00
|
|
|
<h2>Compile</h2>
|
2022-10-02 14:13:27 +00:00
|
|
|
<ul>
|
|
|
|
<li>GUI: After pressing the check mark the code will be compiled, after pressing the arrow it will be compiled and uploaded to a connected TTGO.</li>
|
|
|
|
<li>platformio-cli: ~/.platformio/penv/bin/pio run -e ttgo-t-beam-v1.0 -t upload --upload-port /dev/cu.SLAB_USBtoUART</li>
|
|
|
|
</ul>
|