<?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[M5-TOUGH &#x2F; unable to change display brightness]]></title><description><![CDATA[<p dir="auto">Hi.</p>
<p dir="auto">I'm using the latest library via Platformio (lib_deps = <a href="https://github.com/m5stack/M5Tough" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/m5stack/M5Tough</a>) and am unable to change the display brightness.</p>
<p dir="auto">My code is as simple as this:</p>
<pre><code>M5.Axp.SetLcdVoltage(2500);
</code></pre>
<p dir="auto">This does not change anything on the display.</p>
<p dir="auto">It works with the M5-Core2 module though.</p>
<p dir="auto">Can anybody confirm the <code>SetLcdVoltage</code> works for the M5-TOUGH?</p>
<p dir="auto">Thanks and have a great week.</p>
]]></description><link>https://community.m5stack.com/topic/5207/m5-tough-unable-to-change-display-brightness</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 19:11:59 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/5207.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 11 Apr 2023 06:06:38 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to M5-TOUGH &#x2F; unable to change display brightness on Tue, 11 Apr 2023 21:29:45 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/felmue" aria-label="Profile: felmue">@<bdi>felmue</bdi></a> said in <a href="/post/20577">M5-TOUGH / unable to change display brightness</a>:</p>
<blockquote>
<p dir="auto">M5.Axp.SetLDOVoltage(3,3000);</p>
</blockquote>
<p dir="auto">Hi Felmue!</p>
<p dir="auto">That one works, thanks a lot!</p>
<p dir="auto">Really confusing that there is a PWM backlight LED mentioned in the library which does not work. And that the usage of SetLcdVoltage is inconsistent between the Core2 and TOUGH.</p>
<p dir="auto">On Core2 the LcdVoltage changes DCDC3 (<code>@param number 0=DCDC1 / 1=DCDC2 / 2=DCDC3</code> ) which is connected to LCD_BL. For the TOUGH on the other hand DCDC3 is unused and they used the LDO3.</p>
<p dir="auto">So maybe they should simply change the line <code> SetDCVoltage(2, voltage);</code> to <code>M5.Axp.SetLDOVoltage(3,voltage);</code> or maybe even better introduce a new function <code>SetLCDBacklightVoltage(...)</code> in their library.</p>
<p dir="auto">Thanks to all for your hints.</p>
]]></description><link>https://community.m5stack.com/post/20579</link><guid isPermaLink="true">https://community.m5stack.com/post/20579</guid><dc:creator><![CDATA[erazor]]></dc:creator><pubDate>Tue, 11 Apr 2023 21:29:45 GMT</pubDate></item><item><title><![CDATA[Reply to M5-TOUGH &#x2F; unable to change display brightness on Tue, 11 Apr 2023 19:37:42 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/erazor" aria-label="Profile: erazor">@<bdi>erazor</bdi></a></p>
<p dir="auto">have a look at the <a href="https://github.com/m5stack/M5Tough/blob/master/src/AXP192.cpp#L46" target="_blank" rel="noopener noreferrer nofollow ugc">AXP192.cpp</a> where <code>SetLDOVoltage()</code> is used to manipulate LDO3 (aka brightness). Use it like below in your code.</p>
<pre><code>M5.Axp.SetLDOVoltage(3,3000);
</code></pre>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/20577</link><guid isPermaLink="true">https://community.m5stack.com/post/20577</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Tue, 11 Apr 2023 19:37:42 GMT</pubDate></item><item><title><![CDATA[Reply to M5-TOUGH &#x2F; unable to change display brightness on Tue, 11 Apr 2023 18:05:02 GMT]]></title><description><![CDATA[<p dir="auto">Well, yeah... but nothing works with the M5-TOUGH which should support it via the Axp.</p>
]]></description><link>https://community.m5stack.com/post/20570</link><guid isPermaLink="true">https://community.m5stack.com/post/20570</guid><dc:creator><![CDATA[erazor]]></dc:creator><pubDate>Tue, 11 Apr 2023 18:05:02 GMT</pubDate></item><item><title><![CDATA[Reply to M5-TOUGH &#x2F; unable to change display brightness on Tue, 11 Apr 2023 17:06:29 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/erazor" aria-label="Profile: erazor">@<bdi>erazor</bdi></a> I have an "always on" project using Core Basic. I use<br />
M5.Lcd.setBrightness(75);  //75 is high<br />
and<br />
M5.Lcd.setBrightness(10);  //10 is low<br />
Works well, you can try different values to suit.<br />
-Terry<br />
P.S.<br />
My other application runs on a Core2 and I use:<br />
if (enable) {<br />
M5.Axp.SetLcdVoltage(2900);  //3000 very bright<br />
} else {<br />
M5.Axp.SetLcdVoltage(2600);  //2500 way too dark, 2600 very dim<br />
}</p>
]]></description><link>https://community.m5stack.com/post/20569</link><guid isPermaLink="true">https://community.m5stack.com/post/20569</guid><dc:creator><![CDATA[teastain]]></dc:creator><pubDate>Tue, 11 Apr 2023 17:06:29 GMT</pubDate></item><item><title><![CDATA[Reply to M5-TOUGH &#x2F; unable to change display brightness on Tue, 11 Apr 2023 12:06:22 GMT]]></title><description><![CDATA[<p dir="auto">Hi.</p>
<p dir="auto">No Luck with <code>M5.Axp.SetLcdVoltage(...);</code><br />
The value has to be from 0-255 anyway.</p>
<p dir="auto">At the backside they mentioned the backlight:<br />
"BL: ACP_LDO3"</p>
<p dir="auto">So this seems to the same as in Core2.</p>
]]></description><link>https://community.m5stack.com/post/20567</link><guid isPermaLink="true">https://community.m5stack.com/post/20567</guid><dc:creator><![CDATA[erazor]]></dc:creator><pubDate>Tue, 11 Apr 2023 12:06:22 GMT</pubDate></item><item><title><![CDATA[Reply to M5-TOUGH &#x2F; unable to change display brightness on Tue, 11 Apr 2023 11:03:11 GMT]]></title><description><![CDATA[<p dir="auto">no  M5-Core to try<br />
<a href="https://github.com/m5stack/M5Tough/blob/master/src/M5Display.h" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/m5stack/M5Tough/blob/master/src/M5Display.h</a></p>
<pre><code>class M5Display : public TFT_eSPI {
    public:
      static M5Display* instance;
      M5Display();
      void begin();
      void sleep();
      void wakeup();
      void setBrightness(uint8_t brightness);
      void clearDisplay(uint32_t color=ILI9341_BLACK) { fillScreen(color); }
      void clear(uint32_t color=ILI9341_BLACK) { fillScreen(color); }
      void display() {}
</code></pre>
<p dir="auto">so you can try this</p>
<pre><code>#include &lt;M5Display.h&gt;

M5.Lcd.setBrightness(value);    //uint8_t  Brightness (0: Off - 255:Full)</code></pre>
]]></description><link>https://community.m5stack.com/post/20566</link><guid isPermaLink="true">https://community.m5stack.com/post/20566</guid><dc:creator><![CDATA[flypeek]]></dc:creator><pubDate>Tue, 11 Apr 2023 11:03:11 GMT</pubDate></item></channel></rss>