Search found 27 matches
- Sat Jan 11, 2020 7:25 pm
- Forum: Programs, Libraries and Tools
- Topic: ST7789 IPS 240x240 SPI display
- Replies: 9
- Views: 6852
Re: ST7789 IPS 240x240 SPI display
I wrote some code to use devbis' driver to write text using Hershey vector fonts. It's in my GitHub Repo. There is also a video of it running the demo using the Fast C version of devbis' driver.
- Sat Jan 11, 2020 7:09 pm
- Forum: ESP32 boards
- Topic: Display on TTGO T-Display
- Replies: 10
- Views: 3593
Re: Display on TTGO T-Display
I took Peter's suggestion and used his bytearray method and it's definitely faster. I haven't tried feezing the bytecode yet. Both methods are now in my GitHub repo. Here is a side by side video showing both methods.
- Tue Jan 07, 2020 8:46 pm
- Forum: ESP32 boards
- Topic: Display on TTGO T-Display
- Replies: 10
- Views: 3593
Re: Display on TTGO T-Display
Frozen bytecode of a raster font would be a better solution for most displays. My original use is in a slow moving robot plotter where ease of use was more important then speed. It's not really a practical solution for displays, still it's cute enough to show off and maybe it will be of use to someo...
- Tue Jan 07, 2020 6:04 am
- Forum: ESP32 boards
- Topic: Display on TTGO T-Display
- Replies: 10
- Views: 3593
Re: Display on TTGO T-Display
Here is another way to go: https://github.com/russhughes/ttgo-hershey-fonts
- Sat Jan 04, 2020 6:25 am
- Forum: ESP32 boards
- Topic: Display on TTGO T-Display
- Replies: 10
- Views: 3593
Re: Display on TTGO T-Display
This driver is not framebuf based so there is more work involved. One possibility is to use Peter Hinch's https://github.com/peterhinch/micropython-font-to-py program to create fonts and use his writer routine to write text to a buffer using the font. From there you could use blit_buffer to write th...
- Wed Jan 01, 2020 10:10 pm
- Forum: ESP32 boards
- Topic: Display on TTGO T-Display
- Replies: 10
- Views: 3593
Re: Display on TTGO T-Display
This works for me on my TTGO board using the python driver. import time import random import machine import st7789py # turn on backlight bl = machine.Pin(4, machine.Pin.OUT) bl.value(1) spi = machine.SPI( 2, baudrate=20000000, polarity=1, phase=1, sck=machine.Pin(18), mosi=machine.Pin(19)) display =...
- Wed Jan 01, 2020 9:55 pm
- Forum: ESP32 boards
- Topic: Display on TTGO T-Display
- Replies: 10
- Views: 3593
Re: Display on TTGO T-Display
I used the c version https://github.com/devbis/st7789py_mpy and it works. There was an update about 5 days ago for the 135x240 TTGO display that worked for me. I'll see if I can test the python version.