Texte mit unterschiedlichen Fonts darstellen
Offenbar gibt es vereschiedene Möglichkeiten verschiedene Fonts einzusetzen.
[[1]] [[2]] [[3]] [[4]] [[5]] [[6]] [[7]] [[8]]
Erster Versuch mit micropython-oled
example1.py
>>> from machine import Pin, I2C >>> from oled import Write, GFX, SSD1306_I2C >>> from oled.fonts import ubuntu_mono_15, ubuntu_mono_20 >>> scl = Pin(17) sda = Pin(16) >>> i2c = I2C(scl=scl, sda=sda) Pin(16, Pin.OUT, value=1) Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: 'id' argument required >>> i2c = I2C(0, scl=scl, sda=sda) Pin(16, Pin.OUT, value=1) Pin(16, mode=OUT) >>> oled = SSD1306_I2C(128, 64, i2c) gfx = GFX(128, 64, oled.pixel)
Hier hängt sich die REPL auf.