Open iemmeti opened 4 years ago
Awesome, thanks. Once #9 is fixed the library will be usable as-is. Are you interested in fixing it? An easy way would be to make i2c
🠞 _i2c
and then to make a frozen wrapper i2c.py
implementing the API.
I suspect to be not enough skilled for that, but I'll try for sure. At the moment I'm testing a GY-521 i2c accelerometer to investigate mem_transmit / mem_receive functions. When I'll feel comfortable with them, I'll start.
I managed to make it works with 16x2 Character LCD by your tips guys ^__^ https://imgur.com/e1kd8xs I changed some lines in esp8622 port code: https://github.com/ens4dz/python_lcd/commit/87d5072f5fb55478e07f013bdb59185be112b8db
I slightly modified adafruit-ssd1306.py oled display driver library for use with A9G pudding and non-standard I2C library.
I did some tests using hw i2c ports 2 and 3 and had no issues.
The main difference is how to init display:
oled = ssd1306_a9g.SSD1306_I2C(width, height, i2c_id, i2c_freq, addr)
where i2c_id is 2 or 3 and i2c_freq = clk frequency in kHz i.e oled = ssd1306_a9g.SSD1306_I2C(128, 64, 3, 400)
Hoping it could be useful to somebody.