issue182:micro-ci_micro-la
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 | ||
issue182:micro-ci_micro-la [2022/06/28 07:58] – d52fr | issue182:micro-ci_micro-la [2022/06/30 16:10] (Version actuelle) – andre_domenech | ||
---|---|---|---|
Ligne 2: | Ligne 2: | ||
He had found a new driver library for the Raspberry Pi Pico that was supposed to handle the NeoPixel devices a bit better than the “standard” statemachine version that we have used in the past. However, he was having a problem on his system, where, when he ran the example program, he set the number of LEDs to 24, but only 18 ever lit. That seemed very strange to me, so I started looking into his issue.** | He had found a new driver library for the Raspberry Pi Pico that was supposed to handle the NeoPixel devices a bit better than the “standard” statemachine version that we have used in the past. However, he was having a problem on his system, where, when he ran the example program, he set the number of LEDs to 24, but only 18 ever lit. That seemed very strange to me, so I started looking into his issue.** | ||
+ | |||
+ | Dans l' | ||
+ | |||
+ | Il avait trouvé une nouvelle bibliothèque de pilotes pour le Raspberry Pi Pico qui était censée gérer les périphériques NeoPixel un peu mieux que la version statemachine « standard » que nous avons utilisée dans le passé. Cependant, il avait un problème sur son système, où, quand il a exécuté le programme d' | ||
+ | |||
**He pointed me to the repository for the driver which is https:// | **He pointed me to the repository for the driver which is https:// | ||
Ligne 14: | Ligne 19: | ||
led = neopixel_rp2040.neopixel(LEDS=2, | led = neopixel_rp2040.neopixel(LEDS=2, | ||
+ | |||
+ | Il m'a indiqué le dépôt du pilote qui est https:// | ||
+ | |||
+ | La première chose que j'ai faite a été de changer le pilote « In pin » dans l' | ||
+ | |||
+ | led = neopixel_rp2040.neopixel(LEDS=2, | ||
+ | |||
+ | Pour rappel, l' | ||
+ | |||
+ | Dans le fichier d' | ||
+ | |||
+ | led = neopixel_rp2040.neopixel(LEDS=2, | ||
+ | |||
**I purposely kept the number of LEDs set to 2, just to verify that the program worked. Halvard’s issue was that if he set the number of LEDs to 24, only the first 18 worked. To get the entire 24 to light, he had to set the LEDs to 32. | **I purposely kept the number of LEDs set to 2, just to verify that the program worked. Halvard’s issue was that if he set the number of LEDs to 24, only the first 18 worked. To get the entire 24 to light, he had to set the LEDs to 32. | ||
Ligne 22: | Ligne 40: | ||
When I say that the brightness was an issue, I’m just saying that the darn things are TOO BRIGHT for my old eyes. It thought I was looking directly into a bright halogen bulb! So, I let Halvard know my progress and suggested that he check his battery pack.** | When I say that the brightness was an issue, I’m just saying that the darn things are TOO BRIGHT for my old eyes. It thought I was looking directly into a bright halogen bulb! So, I let Halvard know my progress and suggested that he check his battery pack.** | ||
+ | |||
+ | J'ai volontairement maintenu le nombre de DEL à 2, juste pour vérifier que le programme fonctionnait. Le problème de Halvard était que s'il réglait le nombre de DEL à 24, seules les 18 premières fonctionnaient. Pour que les 24 s' | ||
+ | |||
+ | Bref, revenons à mon histoire. Lorsque j'ai essayé d' | ||
+ | |||
+ | Le programme d' | ||
+ | |||
+ | Quand je dis que la luminosité était un problème, je dis simplement que ces fichues choses sont TROP LUMINEUSES pour mes vieux yeux. J' | ||
+ | |||
**It turns out that Halvard had purchased a newer version of the PixelRing that is RGBW, not just RGB. While you would think (on one side of your brain), that the RGB drivers would work with RGBW NeoPixel sets. They do, but not quite properly. | **It turns out that Halvard had purchased a newer version of the PixelRing that is RGBW, not just RGB. While you would think (on one side of your brain), that the RGB drivers would work with RGBW NeoPixel sets. They do, but not quite properly. | ||
Ligne 30: | Ligne 57: | ||
So that explains why things went wonky when Halvard tried to use the driver for WS2812 NeoPixels when he actually had SK6812 NeoPixels. Thank you Peter for the explanation.** | So that explains why things went wonky when Halvard tried to use the driver for WS2812 NeoPixels when he actually had SK6812 NeoPixels. Thank you Peter for the explanation.** | ||
+ | |||
+ | Il s'est avéré qu' | ||
+ | |||
+ | En essayant de comprendre pourquoi les choses n' | ||
+ | |||
+ | « Les ' | ||
+ | |||
+ | Cela explique donc pourquoi les choses se sont gâtées lorsque Halvard a essayé d' | ||
+ | |||
**So off I went again on a search for a driver that would, at least, support the SK6812 and hopefully for the WS2812 as well. I found it at https:// | **So off I went again on a search for a driver that would, at least, support the SK6812 and hopefully for the WS2812 as well. I found it at https:// | ||
Ligne 42: | Ligne 78: | ||
Mind that you can use whichever order of RGB / RGBW you want (GRB, WRGB, GRB, RGWB ...). This only represents the order of data sent to led-strip, all functions still work with RGBW order. Exact order of leds should be on the package of your led-strip. (My BTF-lights sk6812 has GRBW).”** | Mind that you can use whichever order of RGB / RGBW you want (GRB, WRGB, GRB, RGWB ...). This only represents the order of data sent to led-strip, all functions still work with RGBW order. Exact order of leds should be on the package of your led-strip. (My BTF-lights sk6812 has GRBW).”** | ||
+ | |||
+ | Je suis donc reparti à la recherche d'un pilote qui, au moins, prendrait en charge le SK6812 et, espérons-le, | ||
+ | |||
+ | Sur son dépôt, il déclare : | ||
+ | |||
+ | « Vous créez un objet avec comme paramètres le nombre de LEDs, l'ID de la machine d' | ||
+ | |||
+ | from neopixel import Neopixel | ||
+ | |||
+ | pixels = Neopixel(10, | ||
+ | |||
+ | Notez que vous pouvez utiliser n' | ||
+ | |||
**So if you are using a RGBW strip or ring, you can simply use the initialization as shown above in the quote. | **So if you are using a RGBW strip or ring, you can simply use the initialization as shown above in the quote. | ||
Ligne 58: | Ligne 107: | ||
The distribution comes with four example programs that show off the abilities of the driver and I have to admit, they work well, both for me and for Halvard – who tested them as well and they ran fine for him when he modified the initialization call.** | The distribution comes with four example programs that show off the abilities of the driver and I have to admit, they work well, both for me and for Halvard – who tested them as well and they ran fine for him when he modified the initialization call.** | ||
+ | |||
+ | Donc si vous utilisez une bande ou un anneau RGBW, vous pouvez simplement utiliser l' | ||
+ | |||
+ | pixels = Neopixel(10, | ||
+ | |||
+ | Si, par contre, vous utilisez une bande ou un anneau RBG plus ancien, vous pouvez simplement remplacer la désignation du mode " | ||
+ | |||
+ | pixels = Neopixel(10, | ||
+ | |||
+ | Les paramètres sont simples. | ||
+ | |||
+ | pixels = Neopixel(NumberOfPixels, | ||
+ | |||
+ | Comme toujours, Pin fait référence à la broche IO, pas à la broche physique. | ||
+ | |||
+ | La distribution est livrée avec quatre programmes d' | ||
+ | |||
**My favorite example is the firefly example program. It reminds me of summer evenings back when I was a child, chasing the fireflies in the back yard with a mason jar my mother let me use. Even today, when I see fireflies (which are actually in the beetle family and not flies at all), I am thrown back to those memories. | **My favorite example is the firefly example program. It reminds me of summer evenings back when I was a child, chasing the fireflies in the back yard with a mason jar my mother let me use. Even today, when I see fireflies (which are actually in the beetle family and not flies at all), I am thrown back to those memories. | ||
Ligne 65: | Ligne 131: | ||
Until next time, as always; stay safe, healthy, positive and creative!** | Until next time, as always; stay safe, healthy, positive and creative!** | ||
+ | |||
+ | Mon exemple préféré est le programme d' | ||
+ | |||
+ | Ainsi, après la pause de ce mois pour la mise à jour, nous allons appuyer sur le programme de la boussole le mois prochain en utilisant le nouveau pilote pour l' | ||
+ | |||
+ | Jusqu' | ||
+ | |||
issue182/micro-ci_micro-la.1656395905.txt.gz · Dernière modification : 2022/06/28 07:58 de d52fr