Search found 88 matches

by russ_h
Sun Oct 24, 2021 5:53 pm
Forum: Raspberry Pi microcontroller boards
Topic: Using Chinese fonts with an ST7789 display
Replies: 3
Views: 2322

Re: Using Chinese fonts with an ST7789 display

The write method now accepts UTF8 encoded strings. You will have to create a python font file containing the characters you are going to use with the font2bitmap.py utility. See the proverbs.py and proverbs_font.py files in the examples/T-Display folder for an example. UTF8 support is not optimized,...
by russ_h
Fri Oct 22, 2021 9:04 pm
Forum: General Discussion and Questions
Topic: suggest best resources to learn python
Replies: 9
Views: 5537

Re: suggest best resources to learn python

I read the "Illustrated Guide to Python 3" book by Matt Harrison and thought it was excellent.
by russ_h
Fri Oct 22, 2021 6:29 pm
Forum: Raspberry Pi microcontroller boards
Topic: Using Chinese fonts with an ST7789 display
Replies: 3
Views: 2322

Re: Using Chinese fonts with an ST7789 display

You can convert a True Type font using the font2bitmap.py utility. The display driver is not currently unicode aware so it would require some modifications to make unicode fonts work easily. I will look into adding support for unicode fonts.
by russ_h
Thu Sep 30, 2021 4:21 pm
Forum: Programs, Libraries and Tools
Topic: A uasyncio monitor
Replies: 9
Views: 19516

Re: A uasyncio monitor

Thanks, this is very useful.

Russ
by russ_h
Sat Sep 11, 2021 8:46 pm
Forum: ESP32 boards
Topic: ST7735 faster library
Replies: 10
Views: 9334

Re: ST7735 faster library

Yes. The https://github.com/russhughes/st7789_mpy repo has been updated and tested with a 128x128 and a 128x160 st7735 display.
by russ_h
Thu Sep 09, 2021 3:21 pm
Forum: ESP32 boards
Topic: ST7735 faster library
Replies: 10
Views: 9334

Re: ST7735 faster library

I should have a 128x160 display this weekend. I will see if I can add support for it and the 128x128’s as well.
by russ_h
Thu Sep 09, 2021 6:33 am
Forum: Development of MicroPython
Topic: Debuging the micropython core
Replies: 7
Views: 6218

Re: Debuging the micropython core

You can printf() from c code and it will printed to the REPL console. Another thing that can help is to add a monitor target in ports/esp32/Makefile. deploy: idf.py $(IDFPY_FLAGS) -p $(PORT) -b $(BAUD) flash monitor: idf.py $(IDFPY_FLAGS) -p $(PORT) -b $(BAUD) monitor erase: idf.py $(IDFPY_FLAGS) -p...
by russ_h
Wed Sep 08, 2021 11:16 pm
Forum: General Discussion and Questions
Topic: How to determine ST7789 pixel color
Replies: 2
Views: 1160

Re: How to determine ST7789 pixel color

The answer is complicated see https://github.com/Bodmer/TFT_eSPI/issues/248 for details. I'm planning on looking into this after I finish working on a LVGL compatible display driver.
by russ_h
Thu Aug 19, 2021 4:25 pm
Forum: General Discussion and Questions
Topic: documentation generator for micropython
Replies: 3
Views: 1754

Re: documentation generator for micropython

You might be able to make a few changes to your code to get around this problem.

https://stackoverflow.com/questions/123 ... 0functions).