UCUq - divers #
Spécifications kits : https://github.com/epeios-q37/ucuq-python/blob/main/demos/kits.json
Show off #
import ucuq, random
lcd = ucuq.HD44780_I2C(16, 2, ucuq.SoftI2C(6, 7))
oled = ucuq.SSD1306_I2C(128, 64, ucuq.I2C(8,9))
leds = ucuq.WS2812(20, 8)
lcd.moveTo(0,0).putString(" Your Devices,").moveTo(0,1).putString(" Your Rules!").backlightOn()
oled.draw("03c00c30181820044c32524a80018001824181814812442223c410080c3003c0", 16, mul=4, ox=32).show()
for l in range(8):
leds.setValue(l,tuple(random.randint(0, 3) for _ in range(3)))
leds.write()
Smile #
import ucuq
ucuq.HT16K33(ucuq.I2C(4, 5)).draw("00003ffc40025ffa2ff417e8081007e").show()