<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://wiki.tinkernet.ca/index.php?action=history&amp;feed=atom&amp;title=IoT_-_Modular_-_Pixels.cpp</id>
	<title>IoT - Modular - Pixels.cpp - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.tinkernet.ca/index.php?action=history&amp;feed=atom&amp;title=IoT_-_Modular_-_Pixels.cpp"/>
	<link rel="alternate" type="text/html" href="https://wiki.tinkernet.ca/index.php?title=IoT_-_Modular_-_Pixels.cpp&amp;action=history"/>
	<updated>2026-05-22T15:10:15Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>https://wiki.tinkernet.ca/index.php?title=IoT_-_Modular_-_Pixels.cpp&amp;diff=1557&amp;oldid=prev</id>
		<title>Tinker: Created page with &quot;==#includes, Defines, etc...==  &lt;syntaxhighlight lang=&quot;cpp&quot; line=&quot;1&quot;&gt; #include &quot;libraries.h&quot; #include &quot;functions.h&quot; #include &quot;Pixels.h&quot; &lt;/syntaxhighlight&gt;  ==Pixels_init()==...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.tinkernet.ca/index.php?title=IoT_-_Modular_-_Pixels.cpp&amp;diff=1557&amp;oldid=prev"/>
		<updated>2021-04-30T04:27:18Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;==#includes, Defines, etc...==  &amp;lt;syntaxhighlight lang=&amp;quot;cpp&amp;quot; line=&amp;quot;1&amp;quot;&amp;gt; #include &amp;quot;libraries.h&amp;quot; #include &amp;quot;functions.h&amp;quot; #include &amp;quot;Pixels.h&amp;quot; &amp;lt;/syntaxhighlight&amp;gt;  ==Pixels_init()==...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==#includes, Defines, etc...==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;cpp&amp;quot; line=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
#include &amp;quot;libraries.h&amp;quot;&lt;br /&gt;
#include &amp;quot;functions.h&amp;quot;&lt;br /&gt;
#include &amp;quot;Pixels.h&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Pixels_init()==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;cpp&amp;quot; line=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
void Pixels_init()&lt;br /&gt;
{&lt;br /&gt;
  char debugTEXT[46];&lt;br /&gt;
&lt;br /&gt;
  debug_SectionTitle(&amp;quot;Configuring Pixels&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
  pixels.begin();&lt;br /&gt;
  for (int i = 0; i &amp;lt; PixelCount; i++)&lt;br /&gt;
  {&lt;br /&gt;
    SetAPixel(i, BLK);&lt;br /&gt;
  } // strip.clear(); would be better if it worked right!&lt;br /&gt;
&lt;br /&gt;
  pixels.setBrightness(PixelBright);&lt;br /&gt;
  pixels.show();&lt;br /&gt;
&lt;br /&gt;
  sprintf(debugTEXT, &amp;quot;Configured %d Pixels on pin %d&amp;quot;, PixelCount, PixelPin);&lt;br /&gt;
  debug_LineOut(debugTEXT);&lt;br /&gt;
  sprintf(debugTEXT, &amp;quot;Brightness: %d&amp;quot;, PixelBright);&lt;br /&gt;
  debug_LineOut(debugTEXT);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==SetAPixel()==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;cpp&amp;quot; line=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
void SetAPixel(int PixelNumber, int Colour[])&lt;br /&gt;
{&lt;br /&gt;
  // char debugTEXT[46];&lt;br /&gt;
  // Serial.printf(&amp;quot; -&amp;gt; %d, %d\n&amp;quot;, PixelNumber, Colour);&lt;br /&gt;
  pixels.setPixelColor(PixelNumber, Colour[0], Colour[1], Colour[2]);&lt;br /&gt;
  pixels.show();&lt;br /&gt;
#ifdef DEBUG5&lt;br /&gt;
  sprintf(debugTEXT, &amp;quot;Pixel %d Pixel colour: %03d,%03d,%03d&amp;quot;, PixelNumber, Colour[0], Colour[1], Colour[2]);&lt;br /&gt;
  debug_LineOut(debugTEXT);&lt;br /&gt;
#endif&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Tinker</name></author>
		
	</entry>
</feed>