<?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[stand-alone TFT_eSPI library on Core2]]></title><description><![CDATA[<p dir="auto">I'd like to use a recent version of TFT_eSPI on the Core2 rather than the M5StackCore2 internal version.  Has anyone had success with that?</p>
<p dir="auto">Using recent versions of TFT_eSPI on the Core Basic was quite easy, but I'm not having luck yet on the Core2.</p>
]]></description><link>https://community.m5stack.com/topic/4278/stand-alone-tft_espi-library-on-core2</link><generator>RSS for Node</generator><lastBuildDate>Sun, 15 Mar 2026 17:33:32 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/4278.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 06 May 2022 23:43:01 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to stand-alone TFT_eSPI library on Core2 on Wed, 05 Feb 2025 16:08:33 GMT]]></title><description><![CDATA[<p dir="auto">What about M5CoreS3? Doesn't seem to have BL pin defined. Can it be used with TFT_eSPI?</p>
]]></description><link>https://community.m5stack.com/post/28124</link><guid isPermaLink="true">https://community.m5stack.com/post/28124</guid><dc:creator><![CDATA[dave17]]></dc:creator><pubDate>Wed, 05 Feb 2025 16:08:33 GMT</pubDate></item><item><title><![CDATA[Reply to stand-alone TFT_eSPI library on Core2 on Sun, 19 Jun 2022 17:42:55 GMT]]></title><description><![CDATA[<p dir="auto">I was looking for info about updated the Sprite.h and Sprite.cpp in the M5stack library to include more commands in the TFT_eSPI library.  did you ever play with this rather than defining the TFT_eSPI library?</p>
]]></description><link>https://community.m5stack.com/post/17758</link><guid isPermaLink="true">https://community.m5stack.com/post/17758</guid><dc:creator><![CDATA[Shift1313]]></dc:creator><pubDate>Sun, 19 Jun 2022 17:42:55 GMT</pubDate></item><item><title><![CDATA[Reply to stand-alone TFT_eSPI library on Core2 on Sun, 08 May 2022 15:06:50 GMT]]></title><description><![CDATA[<p dir="auto">I tried to have the Core2 setup added to TFT_eSPI, but the maintainer mistakenly believes that the Core2 drives the backlight at too high of a voltage by default at boot, so users may damage the device.</p>
<p dir="auto">From my observation, the display and backlight are unpowered at boot, and explicit commands must be sent to the AXP to power them.  If M5Stack's AXP init code is used, there is no problem about over-driving the backlight.</p>
<p dir="auto"><a href="https://github.com/Bodmer/TFT_eSPI/pull/1815" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/Bodmer/TFT_eSPI/pull/1815</a></p>
]]></description><link>https://community.m5stack.com/post/17448</link><guid isPermaLink="true">https://community.m5stack.com/post/17448</guid><dc:creator><![CDATA[j-j]]></dc:creator><pubDate>Sun, 08 May 2022 15:06:50 GMT</pubDate></item><item><title><![CDATA[Reply to stand-alone TFT_eSPI library on Core2 on Sat, 07 May 2022 11:17:35 GMT]]></title><description><![CDATA[<p dir="auto">I was able to use the latest TFT_eSPI as follows:</p>
<ul>
<li><strong>don't use M5Core2 or M5Unified libraries</strong></li>
<li><strong>copy AXP192.h and AXP192.cpp from M5Core2 into local project</strong> - (I'd like to see M5Stack publish Core2 AXP192 as a separate library.)</li>
<li><strong>make a proper TFT_eSPI setup for Core2</strong> - (I'd like to submit it to TFT_eSPI)</li>
</ul>
<hr />
<p dir="auto">TFT_eSPI setup</p>
<pre><code class="language-C++">#define ILI9341_DRIVER

#define TFT_SDA_READ
#define M5STACK
#define TFT_INVERSION_ON

#define TFT_MISO 38
#define TFT_MOSI 23
#define TFT_SCLK 18
#define TFT_CS    5
#define TFT_DC   15
#define TFT_RST  -1
//#define TFT_BL   -1
#define TOUCH_CS -1  // (suppress warning)

#define SPI_FREQUENCY  40000000
#define SPI_READ_FREQUENCY  16000000
</code></pre>
<p dir="auto">example</p>
<pre><code class="language-C++">#include "AXP192.h"
#include &lt;TFT_eSPI.h&gt;

AXP192 Axp;
TFT_eSPI tft;

void setup() {
  Axp.begin();

  tft.begin();
  tft.setRotation(1);
  tft.fillScreen(0);
  tft.setCursor(10, 10);
  tft.setTextColor(TFT_WHITE);
  tft.setTextSize(1);
  tft.printf("Display Test!");
  tft.fillRect(100, 100, 50, 50, TFT_BLUE);
  tft.drawCircle(100, 100, 50, TFT_RED);
  tft.fillTriangle(30, 30, 180, 100, 80, 150, random(0xfffe)); 
}

void loop() {
  delay(1000);
}
</code></pre>
]]></description><link>https://community.m5stack.com/post/17439</link><guid isPermaLink="true">https://community.m5stack.com/post/17439</guid><dc:creator><![CDATA[j-j]]></dc:creator><pubDate>Sat, 07 May 2022 11:17:35 GMT</pubDate></item></channel></rss>