<?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[HSPI on M5Stack Tough]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">Please tell me which GPIO pins can be used for HSPI on M5Stack Tough.<br />
I assigned the pins as follows but cannot communicate.</p>
<pre><code>SPIClass hspi(HSPI);
// CLK, MISO, MOSI, CS
hspi.begin(19, 27, 32, 33);
pinMode(csPin, OUTPUT);
digitalWrite(csPin, HIGH);
</code></pre>
<p dir="auto">Initially, I used CS pin 13 to connect an external sensor with VSPI. However, after compiling, I could get values from the sensor and write them to an SD card, but when I turned the power back on, only 0.00 values were obtained. I don't know the cause.<br />
So, I'm trying to switch from VSPI to HSPI, but it's not working.</p>
<p dir="auto">Thank you.</p>
]]></description><link>https://community.m5stack.com/topic/5075/hspi-on-m5stack-tough</link><generator>RSS for Node</generator><lastBuildDate>Tue, 05 May 2026 15:14:47 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/5075.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 23 Feb 2023 05:16:10 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to HSPI on M5Stack Tough on Sat, 25 Feb 2023 12:36:34 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for the advice.<br />
it works for me too.</p>
]]></description><link>https://community.m5stack.com/post/20188</link><guid isPermaLink="true">https://community.m5stack.com/post/20188</guid><dc:creator><![CDATA[hgi867]]></dc:creator><pubDate>Sat, 25 Feb 2023 12:36:34 GMT</pubDate></item><item><title><![CDATA[Reply to HSPI on M5Stack Tough on Thu, 23 Feb 2023 11:59:40 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/hgi867" aria-label="Profile: hgi867">@<bdi>hgi867</bdi></a></p>
<p dir="auto">you cannot use GPIO19 and GPIO27 - they are not connected directly to the RS485 port. See second schematic <a href="https://docs.m5stack.com/en/core/tough" target="_blank" rel="noopener noreferrer nofollow ugc">here</a>.</p>
<p dir="auto">I had success using HSPI with the following GPIOs:<br />
SCK  - GPIO33<br />
MISO - GPIO36<br />
MOSI - GPIO32<br />
CS - GPIO26</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/20172</link><guid isPermaLink="true">https://community.m5stack.com/post/20172</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Thu, 23 Feb 2023 11:59:40 GMT</pubDate></item></channel></rss>