Search found 11 matches

by tiensz
Thu Oct 29, 2020 10:54 am
Forum: Programs, Libraries and Tools
Topic: Pycom GPy and ssd1306.py. writevto()
Replies: 8
Views: 3399

Re: Pycom GPy and ssd1306.py. writevto()

start() and stop() are methods of the softI2C class, which is not implemented by Pycom. For ease of use, instead of the link I copy my code below. Note that is is more a question about the Pycom brand of Micropython and therefore better to be discussed in their forum. This forum is clued up on ssd1...
by tiensz
Thu Oct 29, 2020 9:42 am
Forum: Programs, Libraries and Tools
Topic: Pycom GPy and ssd1306.py. writevto()
Replies: 8
Views: 3399

Re: Pycom GPy and ssd1306.py. writevto()

That's the old soft I2C method. I have a modified version which I used with Pycom Micropython: https://github.com/robert-hh/pycom-micropython-sigfox/blob/homebrew/drivers/display/ssd1306.py AFAI recall I made a PR for that, but it did not make it's way into the main repository. Thank you. I've got ...
by tiensz
Thu Oct 29, 2020 8:59 am
Forum: Programs, Libraries and Tools
Topic: Pycom GPy and ssd1306.py. writevto()
Replies: 8
Views: 3399

Re: Pycom GPy and ssd1306.py. writevto()

: AttributeError: 'I2C' object has no attributes 'writevto' writevto was an optimisation added a little while ago to MicroPython that helps with these sorts of drivers that need to send commands over I2C in the form of <prefix><chunk of data> and it prevents having to create a new buffer every time...
by tiensz
Thu Oct 29, 2020 8:12 am
Forum: Programs, Libraries and Tools
Topic: Pycom GPy and ssd1306.py. writevto()
Replies: 8
Views: 3399

Re: Pycom GPy and ssd1306.py. writevto()

Roberthh wrote:
Thu Oct 29, 2020 6:36 am
There is a ssd1306 driver in the pycom source tree. https://github.com/pycom/pycom-micropyt ... rs/display
I tried it and get: AttributeError: 'I2C' object has no attribute 'start'
A missing method? What was it supposed to do?
by tiensz
Thu Oct 29, 2020 12:28 am
Forum: Programs, Libraries and Tools
Topic: Pycom GPy and ssd1306.py. writevto()
Replies: 8
Views: 3399

Pycom GPy and ssd1306.py. writevto()

I trying to port working code from Pyboard (or ESP8266, both works) to a GPy. The GPy runs (Pycom MicroPython 1.20.2.r1 [v1.11-a5aa0b8] on 2020-09-09; GPy with ESP32 The code depends on the font_to_py.py library, which specifies that the 'official' ssd1306.py driver be used. This driver contains the...
by tiensz
Wed Apr 08, 2020 12:45 am
Forum: Drivers for External Components
Topic: 3461BS 4 X 7-seg driver for pyboard.
Replies: 1
Views: 1857

Re: 3461BS 4 X 7-seg driver for pyboard.

Apologies, I did format a table for the connections using spaces.
It appears as if the BBCode stripped all the spaces out.
It should look like this:
Capture.PNG
Capture.PNG (25.88 KiB) Viewed 1743 times
by tiensz
Wed Apr 08, 2020 12:32 am
Forum: Drivers for External Components
Topic: 3461BS 4 X 7-seg driver for pyboard.
Replies: 1
Views: 1857

3461BS 4 X 7-seg driver for pyboard.

Hi, I'm fairly new to the pyboard. This is my first contribution. Please moderator, if I'm going about this the wrong way, let me know. Here is interrupt driven code for controlling a 3461BS quad 7-seg display. (Google didn't find any) I'm sure it can be converted to a class, but that's beyond my cu...
by tiensz
Wed Feb 13, 2019 10:49 pm
Forum: ESP8266 boards
Topic: Pyboard code on ESP2866
Replies: 1
Views: 1972

Pyboard code on ESP2866

I'm trying to get a ESP8266 D1 mini to communicate with an MPU9250. After many trials and tribulations I've managed to create and flash my own firmware based on https://github.com/adafruit/esp8266-micropython-vagrant.git with apparent success. All of this was achieved by following the instructions i...
by tiensz
Wed Feb 06, 2019 6:20 pm
Forum: ESP8266 boards
Topic: Needs ready to roll firmware package that includes MPU9250 fusion driver.
Replies: 5
Views: 3834

Re: Needs ready to roll firmware package that includes MPU9250 fusion driver.

After more digging I realized that I will need to 'augment' the pull-up resistors. I've added 5k1 between scl and +3.3V as well as sda and +3.3V. I used the 3.3v Pin(8) on the ESP8266 for this. But, still no joy. Except that the traceback message ends with: MPUException: No MPU's detected. I believe...
by tiensz
Wed Feb 06, 2019 1:15 pm
Forum: ESP8266 boards
Topic: Needs ready to roll firmware package that includes MPU9250 fusion driver.
Replies: 5
Views: 3834

Re: Needs ready to roll firmware package that includes MPU9250 fusion driver.

@OutoftheBOTS Thank you very much, but with postage etc, this module is 10 times the price of a MPU-92/65. For now my mission is to get the host processor going. (See below) @Roberhh After calling it quits to roll my own package, your reply changed my mind. It took a long time, but I've actually got...