<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[PoECAM - Building Examples]]></title><description><![CDATA[<p dir="auto">Just a heads up for anyone trying to build the <a href="https://github.com/m5stack/PoE_CAM" target="_blank" rel="noopener noreferrer nofollow ugc">PoeCAM examples</a>  or the <a href="https://github.com/m5stack/PoE_CAM" target="_blank" rel="noopener noreferrer nofollow ugc">Ethernet examples</a>.</p>
<p dir="auto">Ensure the board is set to M5Stack-Timer-CAM not PoE CAM.</p>
<p dir="auto">Additionally the Ethernet-Stream example needs the network.h header lines 16-17 altered as below else it will not compile</p>
<pre><code>static ip4_addr_t ip_addr; // For platform = espressif32@ ^3.5.0
//static esp_ip4_addr_t ip_addr; // For platform = espressif32@ ^5.1.0
</code></pre>
<p dir="auto">Ardunio Studio v2  (linux)</p>
<p dir="auto">boards package<br />
esp32 v1.06 boards</p>
<p dir="auto">libs<br />
PoECam lib v0.0.2<br />
PoECAM ethernet lib v3</p>
<p dir="auto">Ext_PIN_1 is at GPIO 33 a simple example of polling a PIR sensor is below :</p>
<pre><code>#include &lt;Arduino.h&gt;

void setup() {
   
   pinMode(33, INPUT_PULLUP);
   Serial.begin(115200);
}
  
void loop() {

   Serial.println(digitalRead(33));
   delay(1000);
}
</code></pre>
<p dir="auto">not a 100% sure about the pull-up resistor but I have a vague feeling I read it somewhere, and well it works.</p>
<p dir="auto">If anyone knows any other helpful tips, links to examples etc please reply to this thread I am by no means an expert !</p>
<p dir="auto">maybe we can get it stickyed or add to the documentation</p>
]]></description><link>https://community.m5stack.com/topic/5438/poecam-building-examples</link><generator>RSS for Node</generator><lastBuildDate>Mon, 04 May 2026 09:45:20 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/5438.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 28 Jun 2023 23:36:09 GMT</pubDate><ttl>60</ttl></channel></rss>