Uploaded the library https://github.com/micropython/micropyt ... ssd1306.py
The test code:
Code: Select all
from machine import I2C
i2c = I2C(2)
import ssd1306
display = ssd1306.SSD1306_I2C(128, 64, i2c, 60)
Code: Select all
Traceback (most recent call last):
File "main.py", line 15, in <module>
File "app_oled.py", line 6, in <module>
File "ssd1306.py", line 99, in __init__
File "ssd1306.py", line 36, in __init__
File "ssd1306.py", line 63, in init_display
File "ssd1306.py", line 91, in show
File "ssd1306.py", line 109, in write_data
OSError: I2C operation not supported
MicroPython v1.9.3-548-gd12483d9 on 2018-04-13; PYBv1.1 wit
h STM32F405RG
Type "help()" for more information.
>>>