|
本帖最后由 netbolo 于 2018-8-9 13:31 编辑
“oled=SSD1306_I2C(128,64,i2c)
Traceback (most recent call last):
File "", line 1, in
TypeError: function missing 1 required positional arguments”
在ssd1306.py中:
class SSD1306_I2C(SSD1306):
def __init__(self, width, height, i2c, addr=0x3c, external_vcc=False):如果是按照上面的写法:oled=SSD1306_I2C(128,64,i2c),那就缺少参数了。但楼上的朋友又如何能避免出错的呢?
求解。
|
|