Search found 88 matches

by russ_h
Thu Aug 12, 2021 4:27 pm
Forum: General Discussion and Questions
Topic: documentation generator for micropython
Replies: 3
Views: 1754

Re: documentation generator for micropython

Sphinx can be challenging to setup. I'm definitely not a sphinx expert but I've used it for several of my MicroPython projects and found that once it is working the way you want, it's worth the effort. See the sphinx directory in https://github.com/russhughes/st7789py_mpy for an example of how I use...
by russ_h
Wed Jul 21, 2021 2:21 am
Forum: General Discussion and Questions
Topic: Baffled by Bluetooth - Help
Replies: 20
Views: 9592

Re: Baffled by Bluetooth - Help

dougconran wrote:
Tue Jul 20, 2021 9:23 pm
A bit cheeky, I know, but is there any chance you could upgrade your M5 Core 2 firmware as well? 8-)
No problem, just updated the firmware files in the repo to v1.16.
by russ_h
Tue Jul 20, 2021 8:02 pm
Forum: General Discussion and Questions
Topic: Baffled by Bluetooth - Help
Replies: 20
Views: 9592

Re: Baffled by Bluetooth - Help

I'm not sure how that happened but the link is live again: https://penfold.owt.com/tdisplay/v1.16- ... rmware.bin
by russ_h
Mon Jul 19, 2021 12:02 am
Forum: General Discussion and Questions
Topic: Baffled by Bluetooth - Help
Replies: 20
Views: 9592

Re: Baffled by Bluetooth - Help

Here is a firmware.bin file for the T-Display with MicroPython v1.16-107-g9f71a11d3 and the st7789 driver compiled with esp-idf42.

Russ
by russ_h
Thu Jun 10, 2021 7:38 pm
Forum: ESP32 boards
Topic: TFT display SPI
Replies: 7
Views: 3709

Re: TFT display SPI

If there is no CS pin in the display, I assume it is internally tied low ?
Yes, they are usually tied low, so they are always selected.
by russ_h
Wed Jun 09, 2021 4:48 pm
Forum: ESP32 boards
Topic: TFT display SPI
Replies: 7
Views: 3709

Re: TFT display SPI

I'm working on the next update of the driver as well as the documentation. This discussion should be helpful.
by russ_h
Tue May 11, 2021 6:09 pm
Forum: General Discussion and Questions
Topic: Cannot calibrate servo
Replies: 5
Views: 2866

Re: Cannot calibrate servo

The servo object is written in C and is here servo.c and here servo.h the documentation is here This is roughly the same as my example using the native servo driver setting the min, max and center freq's using the calibration method. The default calibration is pulse_min = 64; pulse_max = 242; pulse_...
by russ_h
Tue May 11, 2021 6:33 am
Forum: ESP32 boards
Topic: porting function for IP5306 chip to micropython
Replies: 1
Views: 1578

Re: porting function for IP5306 chip to micropython

I wont guarantee it, but something like: from machine import Pin, SoftI2C IP5306_ADDR = const(117) # 0x75 IP5306_REG_SYS_CTL0 = const(0x00) BOOST_OUT_BIT = const (0x02) def setPowerBoostKeepOn(i2c, en): data_in = i2c.readfrom_mem(IP5306_ADDR, IP5306_REG_SYS_CTL0, 1) data_out = bytes([data_in[0] | BO...
by russ_h
Tue May 11, 2021 5:22 am
Forum: General Discussion and Questions
Topic: Cannot calibrate servo
Replies: 5
Views: 2866

Re: Cannot calibrate servo

I used this library to control the pen lift servo on my drawbots. It worked well on an ESP32 since it was easy to tweak the min/max frequencies. I used trial and error until I got the response I needed. Take a look at Here at lines 108-116 to see the values that worked for cheap MG-90 servos. Someth...
by russ_h
Fri May 07, 2021 3:17 pm
Forum: Raspberry Pi microcontroller boards
Topic: Windows fail to recognize Pi Pico when running this code
Replies: 7
Views: 7887

Re: Windows fail to recognize Pi Pico when running this code

I’ve seen this issue on Windows 10, a reboot seems to clear the problem for a while. I have not seen the problem while using a Mac or Linux.