Search found 88 matches

by russ_h
Wed Apr 21, 2021 4:55 pm
Forum: ESP32 boards
Topic: TFT display SPI
Replies: 7
Views: 3643

Re: TFT display SPI

I've seen several ST7789 display's with odd or different pin names. Can you post a picture showing the front and back of the display so we can see what the pins are named? Also a link to where you bought the display can be helpful.
by russ_h
Fri Apr 16, 2021 4:52 pm
Forum: ESP32 boards
Topic: Native machine code in .mpy files : question
Replies: 3
Views: 2130

Re: Native machine code in .mpy files : question

I tried, when the native modules were released, but I was not able to make it work. I ran into to the linker limitation described in the docs: Linker limitation: the native module is not linked against the symbol table of the full MicroPython firmware. Rather, it is linked against an explicit table ...
by russ_h
Fri Apr 16, 2021 2:51 pm
Forum: ESP32 boards
Topic: Custom files in the self-compiled Micropython
Replies: 7
Views: 3323

Re: Custom files in the self-compiled Micropython

Another option is to use mpfshell with a script to upload your files. I use this for uploading example programs to test new display driver code. See the upload.mpf file in https://github.com/russhughes/st7789_mpy/tree/master/examples/T-DISPLAY for an example. It’s not very fast but it works. To inst...
by russ_h
Thu Apr 15, 2021 4:29 pm
Forum: ESP32 boards
Topic: Custom files in the self-compiled Micropython
Replies: 7
Views: 3323

Re: Custom files in the self-compiled Micropython

Here is a link showing how I modified the VFAT file system image to add files for a ESP32 based MicroPython device using Centos 7 Linux. I have not tried modifying the littlefs file system but I suspect the process would be similar. https://gist.github.com/russhughes/13005ba77898d97a03b211c6c4f5b0c3...
by russ_h
Mon Apr 12, 2021 3:57 am
Forum: Raspberry Pi microcontroller boards
Topic: ST7789 Driver
Replies: 1
Views: 3606

ST7789 Driver

I updated https://github.com/russhughes/st7789_mpy to support the Raspberry Pi Pico.
by russ_h
Tue Apr 06, 2021 12:12 am
Forum: General Discussion and Questions
Topic: Web server In/out + physical button control via gpio
Replies: 14
Views: 10846

Re: Web server + physical button control

You are correct, this example does not do what you are looking for.
by russ_h
Sun Apr 04, 2021 5:17 pm
Forum: General Discussion and Questions
Topic: Web server In/out + physical button control via gpio
Replies: 14
Views: 10846

Re: Web server + physical button control

Here is a quick and dirty example I've been using at my office to monitor temperatures and whether or not I forgot to turn off the lights. I was in a hurry when I wrote it so it's not an example of good python coding but it works well enough that I haven't rewritten it. https://gist.github.com/russh...
by russ_h
Fri Apr 02, 2021 12:56 am
Forum: ESP32 boards
Topic: ESP32 port now uses CMake
Replies: 20
Views: 14916

Re: ESP32 port now uses CMake

My guess is that is caused by using: #include "mpfile.c" in the st7789.c so the build system doesn't know about the QSTR's in mpfile.c. You should be able to remove the #include "mpfile.c" from st7789.c and add mpfile.c to the cmake. I did the same thing with "tjpgd565.c" but it does not have any QS...