Search found 54 matches

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

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: 417

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: 608

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: 325

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: 608

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: 1466

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.
by russ_h
Thu May 06, 2021 4:11 pm
Forum: General Discussion and Questions
Topic: BLE : gattc_write cannot write more than 20 bytes ?
Replies: 2
Views: 438

Re: How to go betyond 20 char payload in a characteristic ?

The 'MTU' (max transmission unit) defaults to 20. Have you tried changing it using BLE.config as described https://docs.micropython.org/en/latest/ ... tooth.html?
by russ_h
Wed May 05, 2021 12:58 am
Forum: ESP32 boards
Topic: ESP32 port now uses CMake
Replies: 20
Views: 3356

Re: ESP32 port now uses CMake

That is slick (and very readable), it never occurred to me to use the call back to set the DC.
by russ_h
Sun May 02, 2021 7:10 am
Forum: General Discussion and Questions
Topic: Fade 1 image to show another.
Replies: 15
Views: 2305

Re: Fade 1 image to show another.

The python driver is available from https://github.com/russhughes/gc9a01py