Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jw3/example-particle-st7789
Particle Gen 3 with ST7789 TFT LCD over SPI
https://github.com/jw3/example-particle-st7789
cmake conan lcd-display particle
Last synced: 4 months ago
JSON representation
Particle Gen 3 with ST7789 TFT LCD over SPI
- Host: GitHub
- URL: https://github.com/jw3/example-particle-st7789
- Owner: jw3
- Created: 2021-02-23T11:38:56.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-03-02T03:26:20.000Z (almost 4 years ago)
- Last Synced: 2024-10-02T10:02:10.522Z (4 months ago)
- Topics: cmake, conan, lcd-display, particle
- Language: C
- Homepage:
- Size: 911 KB
- Stars: 6
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Particle ST7789 example
===### screen
MakerFocus TFT LCD Screen Display 1.3inch TFT LCD Module, 240240 IPS 65K Full Color 3.3V with SPI Interface ST7789 IC Driverhttps://www.amazon.com/gp/product/B07P9X3L7M
- 240x240
- No chip select
- 3.3v### board
Particle 3rd gen### pins
|screen|particle|
|:----:|:------:|
|SDA | MO|
|SCL | SCK|
|RES | D6|
|DC | D5|
|VCC | 3.3|
|GND | GND|### driver
- [Adafruit ST7789 library](https://www.arduino.cc/reference/en/libraries/adafruit-st7735-and-st7789-library/)
- [Adafruit GFX v1.10.3](https://github.com/adafruit/Adafruit-GFX-Library)
- with Conan https://github.com/hicktech/conan-AdafruitGFX### conan
`PLATFORM=xenon VERSION_STRING=1.4.2 conan install . -if cmake-build-debug -s compiler.version=5.3 -s os=Particle -s os.board=xenon -s arch=nRF52840 -s compiler.libcxx=libstdc++11`### build
```
arm-none-eabi-size --format=berkeley src.elf
text data bss dec hex filename
26888 108 1188 28184 6e18 src.elf
```### flash
`./cmake-build-debug/flash src usb`### notes
The product page [says to modify `Adafruit_SPITFT.cpp`](doc/img.png) but this is likely referenced from an older version of the library.It can be set with the init call, see `setup()` in the call to `tft.init`
`tft.init(240, 240, SPI_MODE3);`
The product page also says connect to 5v but it appears to run fine from 3.3v.