<?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://paper.wf/paulsutton/tag:christmastree</link>
    <description>Paul Sutton - personal blog </description>
    <pubDate>Thu, 07 May 2026 00:40:58 +0000</pubDate>
    <item>
      <title>Raspberry Pi Xmas tree</title>
      <link>https://paper.wf/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;]]&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>
]]></content:encoded>
      <guid>https://paper.wf/paulsutton/raspberry-pi-xmas-tree</guid>
      <pubDate>Mon, 11 Dec 2023 07:00:00 +0000</pubDate>
    </item>
  </channel>
</rss>