Commit 140c0fdd authored by Mikaël BRIDAY's avatar Mikaël BRIDAY
Browse files

Merge branch 'briday-m-master-patch-96146' into 'master'

Update doc/tft.md

See merge request !1
parents e5637bd0 5bc07880
...@@ -21,13 +21,9 @@ A driver for the TFT display is provided, based on the Adafruit libraries [Adafr ...@@ -21,13 +21,9 @@ A driver for the TFT display is provided, based on the Adafruit libraries [Adafr
### Compilation ### Compilation
As the 2 libraries require a lot files/memory, the Makefile can be configured to compile these files or not: As the 2 libraries require a lot files/memory, the Makefile can be configured to compile these files or not:
By default, the libraries are not compiled in, you can add them with a command line parameter: By default, the libraries are not compiled in, you can add them with the following line into the `CMakeList.txt` cmake file:
```sh ```sh
make USE_TFT=1 option(WITH_TFT "add compilation rules for the TFT support" ON)
```
or by modifying the Makefile (replace the 0 by 1):
```
USE_TFT=0 #set to 1 to compile tft related files
``` ```
**NOTE** The library is written in C++, and should be called from C++ files only. Your main file should be renamed `main.cpp` for instance. **NOTE** The library is written in C++, and should be called from C++ files only. Your main file should be renamed `main.cpp` for instance.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment