Open Patriboom opened 2 years ago
Forget it. It works now!!! Error from copy-paste through a text-editor ( Linux / Pluma ) which usualy doesn't add any code (but this time it did :(
Still, it could be could for newbies to have the framebuf included in you github or - a link to help them find it.
Seulement pour m'assurer que vous lisiez le commentaire sur framebuf, j'ai réouvert le présent billet.
Au plaisir.
The framebuf.py file is available on my fork ... (only on my fork until the pull is merged)
Bonjour et merci pour votre travail,
j'ai tenté de copier-coller vos codes et me suis rendu compte que le fichier framebuf.py est appelé mais non-fourni. Je l'ai cherché (https://files.pythonhosted.org/packages/e1/b2/537eef851ccece2ce109c1eeecd4c6e85ba0ce68253541806989d995e4e0/micropython-framebuf-0.1.tar.gz) , l'ai installé, mais - toujours - la même erreur persiste:
AttributeError: 'module' object has no attribute 'Matrix8x8
J'ai pris vos codes tels quels (ayant bien sûr ajouté framebuf). J'ai connecté les fils comme vous l'indiquez, soit: VCC - 40 GND - GND (38) DIN - SPI0 TX (10) CS - SPI0 CSn (7) CLK - SPI0 SCK (9)
Je n'ai qu'un module 8x8 pour l'instant, j'ai donc changé la ligne 7 de main.py ainsi:
self.MAX7219_NUM = 1
Au plaisir.