Search found 88 matches

by russ_h
Wed Feb 02, 2022 4:58 am
Forum: Hardware Projects
Topic: MicroPython based 3D printed drawing robot powered by a TTGO T-Display
Replies: 14
Views: 53621

Re: MicroPython based 3D printed drawing robot powered by a TTGO T-Display

I should still have a handful of boards left. Private message me.
by russ_h
Thu Jan 06, 2022 6:38 am
Forum: ESP32 boards
Topic: Servo MG996R 180° vs. 360°
Replies: 3
Views: 8441

Re: Servo MG996R 180° vs. 360°

A Sailwench servo might work for you. They have rotations of 360° or more.
by russ_h
Sat Jan 01, 2022 5:30 pm
Forum: General Discussion and Questions
Topic: build library error conversion double to float
Replies: 2
Views: 8953

Re: build library error conversion double to float

The math library uses doubles for sin and cos. I'll see what I can do to fix this, until then, you can get around the error by changing sin and cos to sinf and cosf if they are supported. Failing that you should be able to cast the results of sin and cos to floats. mp_float_t cosAngle = cosf(angle);...
by russ_h
Fri Dec 10, 2021 10:17 pm
Forum: ESP32 boards
Topic: Partitions-ota.csv change error
Replies: 5
Views: 5352

Re: Partitions-ota.csv change error

The restriction is part of the ESP32 design. https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/partition-tables.html says "Partitions of type app have to be placed at offsets aligned to 0x10000 (64K)." ota_0, app, ota_0, 0x10000, 0x190000, ota_1, app, ota_1, 0x1a0000, 0x190000, ...
by russ_h
Fri Dec 10, 2021 8:38 pm
Forum: ESP32 boards
Topic: Partitions-ota.csv change error
Replies: 5
Views: 5352

Re: Partitions-ota.csv change error

Offset 0x1ff700 is not aligned to 0x10000

Code: Select all

ota_1,    app,  ota_1,   0x1ff700, 0x1ef700,
The partition start address must end with "0000" so 0x20000 would work.
by russ_h
Fri Nov 26, 2021 12:35 am
Forum: Development of MicroPython
Topic: Interacting with files
Replies: 2
Views: 10977

Re: Interacting with files

I've been using Dave Hylands mpfile.c and mpfile.h code.
by russ_h
Tue Nov 02, 2021 6:23 pm
Forum: ESP32 boards
Topic: Display hershey vector font on ST7789
Replies: 10
Views: 4457

Re: Display hershey vector font on ST7789

Many of the cheap ST7789 modules do not have a MISO pin or it is not connected to anything. Module that do have a MISO pin require using a modified software SPI since the reads require an extra dummy clock cycle. Reading the frame buffer can be done, but only in 18 bit color mode making the process ...
by russ_h
Mon Nov 01, 2021 4:14 pm
Forum: ESP32 boards
Topic: Display hershey vector font on ST7789
Replies: 10
Views: 4457

Re: Display hershey vector font on ST7789

Reading from st7789 display modules is complicated by the SDA line being bidirectional and that appears not to be compatible with hardware SPI (https://www.avrfreaks.net/forum/st7735- ... y-over-spi). Bit banging the read is reported to work, but it is slow.
by russ_h
Sun Oct 31, 2021 6:29 am
Forum: ESP32 boards
Topic: Display hershey vector font on ST7789
Replies: 10
Views: 4457

Re: Display hershey vector font on ST7789

I'm thinking of creating a method that would allow you to crop a blittable bitmap from a jpg. You could use the bitmap to restore the background behind a digit before drawing the new digit. # # Completely untested code: the jpg_crop method does not exist yet. # # draw the background tft.jpg("backgro...