Search found 55 matches

by stanely
Sun Mar 01, 2020 1:03 pm
Forum: General Discussion and Questions
Topic: LILYGO TTGO T-Display Incredibly Slow?
Replies: 4
Views: 3225

Re: LILYGO TTGO T-Display Incredibly Slow?

If you need or want Hershey font support I can push out a version with it pretty easily. No, I can't really use the Hershey fonts. I was just evaluating the T-Display to see if it suits my project. Your code was the quickest path to installing and testing. I understand what you did with the turtlep...
by stanely
Sat Feb 29, 2020 8:54 pm
Forum: Programs, Libraries and Tools
Topic: OLED Library Writer, Clear to end of line
Replies: 11
Views: 6525

Re: OLED Library Writer, Clear to end of line

I ran into a case where I'm unable to clear fragments of prior text on a Writer line by appending blanks to the new text. This happens when the rightmost column has pixels. I tried but couldn't figure out how to use Label with my Writer class. I was able to clear the line by first writing blanks to ...
by stanely
Sat Feb 29, 2020 2:50 pm
Forum: Drivers for External Components
Topic: HX1230 96x68 Mono LCD - Nokia 5110 killer
Replies: 8
Views: 38140

Re: HX1230 96x68 Mono LCD - Nokia 5110 killer

That's great work, I'm going to try out your driver as soon as my HX1230 gets here. You started out using 9-bit transfers with two bytes. But looking at the hardware SPI specs for the ESP32 here, http://docs.micropython.org/en/latest/library/machine.SPI.html , it says that number of bits is variable...
by stanely
Sat Feb 29, 2020 5:59 am
Forum: ESP32 boards
Topic: Clock with Nokia 5110 Display
Replies: 4
Views: 5542

Re: Clock with Nokia 5110 Display

I couldn't resist rewriting this clock code using Peter Hinch's Writer class. I also used his font-to-py to generate the two fonts used in this script. The pictures show this script running on an ESP32 devkit. It imports the following files: pcd8544_fb.py ( https://github.com/mcauser/micropython-pcd...
by stanely
Fri Feb 28, 2020 3:45 am
Forum: General Discussion and Questions
Topic: How to use mpy_cross with emit=native for ESP32?
Replies: 5
Views: 4805

Re: How to use mpy_cross with emit=native for ESP32?

It looks like the, "@micropython.native", did some good. It took 6.57 seconds to fill the screen with "Hello!"s previously, now it takes 4.11 seconds. That's a 37.5% reduction! There was one more module where I added the "@micropython.native" line. I also increased the SPI baud rate to the max that ...
by stanely
Fri Feb 28, 2020 3:32 am
Forum: General Discussion and Questions
Topic: How to use mpy_cross with emit=native for ESP32?
Replies: 5
Views: 4805

Re: How to use mpy_cross with emit=native for ESP32?

jimmo wrote:
Thu Feb 27, 2020 12:07 am
(i.e. you can compile the C version into an .mpy file).
I think I found how to do that here, https://docs.micropython.org/en/latest/ ... atmod.html, but this effort's gonna have to wait.
by stanely
Thu Feb 27, 2020 6:01 pm
Forum: ESP32 boards
Topic: Clock with Nokia 5110 Display
Replies: 4
Views: 5542

Re: Clock with Nokia 5110 Display

The OP was using the Loboris port, which has all sorts of differences to upstream (including, as I discovered today, time.strftime) -- https://github.com/loboris/MicroPython_ESP32_psRAM_LoBo Thanks, I had no idea. Threading seems different too, so it might take a bit of effort to make this work wit...
by stanely
Thu Feb 27, 2020 1:55 am
Forum: ESP32 boards
Topic: Clock with Nokia 5110 Display
Replies: 4
Views: 5542

Re: Clock with Nokia 5110 Display

Did this really work for you? Running this didn't seem to work. First the lack of indents had to be fixed, then uP complained about no strtfime. There's no strftime() method in the time module, is there?

How did you get this to run on an ESP32?
by stanely
Wed Feb 26, 2020 11:08 pm
Forum: General Discussion and Questions
Topic: How to use mpy_cross with emit=native for ESP32?
Replies: 5
Views: 4805

Re: How to use mpy_cross with emit=native for ESP32?

I have plenty RAM to burn so it doesn't matter that MPY files are bigger. I am hoping to get a performance improvement. I haven't tried @native. st7789py.py is devbis's code and has many functions. I don't understand it well enough to know which one is slow, so just wanted to speed up the whole modu...
by stanely
Wed Feb 26, 2020 7:11 pm
Forum: General Discussion and Questions
Topic: How to use mpy_cross with emit=native for ESP32?
Replies: 5
Views: 4805

How to use mpy_cross with emit=native for ESP32?

I'm trying to speed up some code using the 'native' feature of the MicroPython cross compiler. So far, no luck. The ESP32 uses an xtensa processor, and "mpy_cross" has two architecture options that mention the xtensa, xtensa xtensawin I tried both with the following commands. Both times I got the "O...