<?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[Can not get signal from GPIO 36]]></title><description><![CDATA[<p dir="auto">Dear all,<br />
I connected PIR sensor in GPIO36 but I can not get any data from StickC.<br />
The Code is:</p>
<p dir="auto">from m5stack import *<br />
from m5ui import *<br />
from uiflow import *<br />
import machine</p>
<p dir="auto">setScreenColor(0x111111)</p>
<p dir="auto">pinv = None</p>
<p dir="auto">label0 = M5TextBox(12, 34, "Text", lcd.FONT_Default, 0xFFFFFF, rotate=0)</p>
<p dir="auto">while True:<br />
pin0 = machine.Pin(36, <a href="http://mode=machine.Pin.IN" target="_blank" rel="noopener noreferrer nofollow ugc">mode=machine.Pin.IN</a>, pull=machine.Pin.PULL_UP)<br />
pinv = pin0.value()<br />
label0.setText(str(pinv))<br />
wait_ms(2)</p>
<p dir="auto">I always got 0(zero). Could you help me where I am worng?</p>
]]></description><link>https://community.m5stack.com/topic/3506/can-not-get-signal-from-gpio-36</link><generator>RSS for Node</generator><lastBuildDate>Fri, 15 May 2026 12:15:12 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/3506.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 06 Aug 2021 07:31:47 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Can not get signal from GPIO 36 on Sun, 08 Aug 2021 09:06:39 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/shliao" aria-label="Profile: shliao">@<bdi>shliao</bdi></a></p>
<p dir="auto">GPIO36 does not support internal software pull-ups. So if your hardware setup requires a pull-up, you'll need to add an external pull-up resistor.</p>
<p dir="auto">Excerpt from this <a href="https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/peripherals/gpio.html" target="_blank" rel="noopener noreferrer nofollow ugc">documentation</a>:</p>
<p dir="auto"><em>GPIO34-39 can only be set as input mode and do not have software pullup or pulldown functions.</em></p>
<p dir="auto">BTW: your Python code is ok and returns 1 when I connect GPIO36 to 3.3 V.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/14599</link><guid isPermaLink="true">https://community.m5stack.com/post/14599</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Sun, 08 Aug 2021 09:06:39 GMT</pubDate></item></channel></rss>