issue199:micro-ci
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
issue199:micro-ci [2023/11/25 19:34] – d52fr | issue199:micro-ci [2023/11/28 16:59] (Version actuelle) – andre_domenech | ||
---|---|---|---|
Ligne 8: | Ligne 8: | ||
Remember, drivers try to be fairly generic in nature, while still being able to take as much advantage of the abilities of the display as possible. The driver for the ili9341 is no exception. As you saw in my article in FCM #196, this driver not only handles lines, circles, single pixels, and blocks, it also handles text. It even handles many font definitions for different text output to the screen.** | Remember, drivers try to be fairly generic in nature, while still being able to take as much advantage of the abilities of the display as possible. The driver for the ili9341 is no exception. As you saw in my article in FCM #196, this driver not only handles lines, circles, single pixels, and blocks, it also handles text. It even handles many font definitions for different text output to the screen.** | ||
+ | |||
+ | Terminal WIO partie 2 | ||
+ | |||
+ | Il est difficile de croire qu'il s'agit du 24e article de Micro-ci micro-là ! Le temps passe vite quand on s' | ||
+ | |||
+ | Dans le FCM n° 196, j'ai écrit mon premier article sur le Seeed Studio. Depuis que MicroPython a augmenté ses versions pour les différentes cartes qu'il supporte, j'ai pensé essayer de mettre à jour mon petit terminal WIO et de re-tester le programme que j' | ||
+ | |||
+ | Maintenant, un petit rappel concernant l' | ||
+ | |||
+ | Rappelez-vous que les pilotes essaient d' | ||
+ | |||
**Start by updating your Micropython firmware to version v1.21.0. You can download it at https:// | **Start by updating your Micropython firmware to version v1.21.0. You can download it at https:// | ||
Ligne 20: | Ligne 31: | ||
Now we must define the backlight pin (below) and the spi object. After that, we can initialize the display object. Notice, if you are going to use the demo programs from the ili9341 driver website, you will need to change the spi assignments as I’ve done here. Also notice that we start the display with a default rotation of 90. This puts the display in (what I consider) the correct orientation, | Now we must define the backlight pin (below) and the spi object. After that, we can initialize the display object. Notice, if you are going to use the demo programs from the ili9341 driver website, you will need to change the spi assignments as I’ve done here. Also notice that we start the display with a default rotation of 90. This puts the display in (what I consider) the correct orientation, | ||
+ | |||
+ | Commencez par mettre à jour votre microprogramme Micropython à la version v1.21.0. Vous pouvez la télécharger à l' | ||
+ | |||
+ | Ensuite, assurez-vous d' | ||
+ | |||
+ | Pour cet article, nous nous concentrerons sur la démonstration de la police 8x8 par défaut de Micropython. Nous aborderons l' | ||
+ | |||
+ | Nous nommerons ce programme « demo_text8x8.py ». | ||
+ | |||
+ | Bien sûr, nous devons faire les importations (en haut à droite). | ||
+ | |||
+ | Nous devons maintenant définir la broche de rétroéclairage (ci-dessous) et l' | ||
+ | |||
**Next, we need to do some startup assignments (next page, bottom left). Be sure to make a call to backlight.on(). Otherwise you won’t see anything on the display (and do a backlight.off() when everything is finished) . | **Next, we need to do some startup assignments (next page, bottom left). Be sure to make a call to backlight.on(). Otherwise you won’t see anything on the display (and do a backlight.off() when everything is finished) . | ||
Ligne 38: | Ligne 62: | ||
Until next time, as always; stay safe, healthy, positive and creative!** | Until next time, as always; stay safe, healthy, positive and creative!** | ||
+ | |||
+ | Ensuite, nous devons effectuer quelques tâches de démarrage (page suivante, en bas à gauche). Veillez à appeler backlight.on(). Sinon, vous ne verrez rien sur l' | ||
+ | |||
+ | Nous pouvons maintenant commencer à envoyer du texte à l' | ||
+ | |||
+ | Enfin, nous fixons la durée d' | ||
+ | |||
+ | sleep(15) | ||
+ | display.cleanup() | ||
+ | backlight.off() | ||
+ | |||
+ | test() | ||
+ | |||
+ | Voilà, c'est tout. | ||
+ | |||
+ | J'ai mis en place un autre dépôt sur mon site github https:// | ||
+ | |||
+ | Jusqu' | ||
+ | |||
+ | //Encart p 35 en haut à droite ; lignes noires // | ||
+ | |||
+ | **Once we've sent out the base text, we can start drawing text at the 0, | ||
+ | Une fois que nous avons envoyé le texte de base, nous pouvons débuter le dessin du texte avec des orientations d' | ||
+ | |||
+ | **Next, the text is drawn with a background.** | ||
+ | Ensuite, le texte est dessiné avec un fond. | ||
issue199/micro-ci.1700937257.txt.gz · Dernière modification : 2023/11/25 19:34 de d52fr