<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>ChristmasTree &amp;mdash; Paul Sutton</title>
    <link>https://personaljournal.ca/paulsutton/tag:ChristmasTree</link>
    <description>Personal Blog</description>
    <pubDate>Tue, 05 May 2026 14:58:36 +0000</pubDate>
    <item>
      <title>Raspberry Pi Xmas tree</title>
      <link>https://personaljournal.ca/paulsutton/raspberry-pi-xmas-tree</link>
      <description>&lt;![CDATA[Raspberry Pi Xmas tree&#xA;&#xA;I was sent a Raspberry Pi xmas tree module last year and have just got round to setting it up.  Results with some example code (below) seem pretty good.  Most of the LEDs work.  &#xA;&#xA;from gpiozero import LEDBoard&#xA;from gpiozero.tools import randomvalues&#xA;from signal import pause&#xA;tree = LEDBoard(*range(2,28),pwm=True)&#xA;for led in tree:&#xA; led.sourcedelay = 0.1&#xA; led.source = random_values()&#xA;pause()&#xA;&#xA;iframe title=&#34;Raspberry Pi Xmas tree module&#34; width=&#34;560&#34; height=&#34;315&#34; src=&#34;https://diode.zone/videos/embed/201d0254-538b-459a-af09-cdf0e8e7f1fa&#34; frameborder=&#34;0&#34; allowfullscreen=&#34;&#34; sandbox=&#34;allow-same-origin allow-scripts allow-popups&#34;/iframe&#xA;&#xA;Tags&#xA;&#xA;#RasberryPi,#Python,#Code,#ChristmasTree,&#xA;&#xA;hr&#xD;&#xA;&#xD;&#xA;table&#xD;&#xA;thead&#xD;&#xA;trtda rel=&#34;me&#34; href=&#34;https://qoto.org/@zleap&#34;Mastodon/a/td&#xD;&#xA;tda href=&#34;https://wiki.ircnow.org/?n=Shelllabs.Intro&#34;ShellLabs/td&#xD;&#xA;tda href=&#34;https://joinmastodon.org/&#34;Join Mastodon/a/td/tr/thead/table&#xD;&#xA;center&#xD;&#xA;AI statement : b Consent is NOT granted to use the content of this blog for the purposes of AI training or similar activity.  Consent CANNOT be assumed, it has to be granted. /b&#xD;&#xA;/center&#xD;&#xA;&#xD;&#xA;a href=&#34;https://liberapay.com/PaulSutton/donate&#34;img alt=&#34;Donate using Liberapay&#34; src=&#34;https://liberapay.com/assets/widgets/donate.svg&#34;/a&#xD;&#xA;]]&gt;</description>
      <content:encoded><![CDATA[<p>Raspberry Pi Xmas tree</p>

<p>I was sent a <a href="https://thepihut.com/blogs/raspberry-pi-tutorials/3d-xmas-tree-for-raspberry-pi-assembly-instructions" rel="nofollow">Raspberry Pi xmas tree module</a> last year and have just got round to setting it up.  Results with some example code (below) seem pretty good.  Most of the LEDs work.</p>

<pre><code>from gpiozero import LEDBoard
from gpiozero.tools import random_values
from signal import pause
tree = LEDBoard(*range(2,28),pwm=True)
for led in tree:
 led.source_delay = 0.1
 led.source = random_values()
pause()
</code></pre>

<iframe title="Raspberry Pi Xmas tree module" width="560" height="315" src="https://diode.zone/videos/embed/201d0254-538b-459a-af09-cdf0e8e7f1fa" frameborder="0" allowfullscreen=""></iframe>

<p><strong>Tags</strong></p>

<p><a href="/paulsutton/tag:RasberryPi" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">RasberryPi</span></a>,<a href="/paulsutton/tag:Python" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">Python</span></a>,<a href="/paulsutton/tag:Code" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">Code</span></a>,<a href="/paulsutton/tag:ChristmasTree" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">ChristmasTree</span></a>,</p>

<hr>

<p><table>
<thead>
<tr><td><a href="https://qoto.org/@zleap" rel="nofollow">Mastodon</a></td>
<td><a href="https://wiki.ircnow.org/?n=Shelllabs.Intro" rel="nofollow">ShellLabs</td>
<td><a href="https://joinmastodon.org/" rel="nofollow">Join Mastodon</a></td></tr></thead></table>

AI statement : <b> Consent is NOT granted to use the content of this blog for the purposes of AI training or similar activity.  Consent CANNOT be assumed, it has to be granted. </b>
</p>

<p><a href="https://liberapay.com/PaulSutton/donate" rel="nofollow"><img alt="Donate using Liberapay" src="https://liberapay.com/assets/widgets/donate.svg"></a></p>
]]></content:encoded>
      <guid>https://personaljournal.ca/paulsutton/raspberry-pi-xmas-tree</guid>
      <pubDate>Mon, 11 Dec 2023 07:00:00 +0000</pubDate>
    </item>
  </channel>
</rss>