<?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[Compile but does not work with a for next loop]]></title><description><![CDATA[<p dir="auto">My short exemple prints a number on the screen<br />
But if I include a for next loop , it compiles but does not show the number on the M5 core screen.<br />
If I uncomment the" for next" line, it does not print on the screen . Why ?</p>
<p dir="auto">#include &lt;M5Stack.h&gt;<br />
#include "M5StackUpdater.h"<br />
float voltage = 2224.33;</p>
<p dir="auto">void setup() {<br />
M5.begin();<br />
}<br />
void loop() {<br />
//for (int i = 1; i = 10; i++) {}<br />
M5.Lcd.setTextColor(WHITE, BLUE);<br />
M5.Lcd.drawString("Voltage = "+String(voltage)+" mV ",30,40,4);<br />
delay(50);<br />
}</p>
]]></description><link>https://community.m5stack.com/topic/4358/compile-but-does-not-work-with-a-for-next-loop</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 15:36:33 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/4358.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 11 Jun 2022 18:13:06 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Compile but does not work with a for next loop on Sun, 12 Jun 2022 10:02:29 GMT]]></title><description><![CDATA[<p dir="auto">Thanks a lot, Félix. I was concentrated on a big file and did not notice this .<br />
Regards<br />
Alain Hamradio F1CJN</p>
]]></description><link>https://community.m5stack.com/post/17710</link><guid isPermaLink="true">https://community.m5stack.com/post/17710</guid><dc:creator><![CDATA[F1CJN_Alain]]></dc:creator><pubDate>Sun, 12 Jun 2022 10:02:29 GMT</pubDate></item><item><title><![CDATA[Reply to Compile but does not work with a for next loop on Sun, 12 Jun 2022 03:30:47 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/f1cjn_alain" aria-label="Profile: F1CJN_Alain">@<bdi>F1CJN_Alain</bdi></a></p>
<p dir="auto">try with <code>for (int i = 1; i &lt;= 10; i++)</code> instead. Eg. <code>i &lt;= 10</code> instead of <code>i = 10</code>.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/17706</link><guid isPermaLink="true">https://community.m5stack.com/post/17706</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Sun, 12 Jun 2022 03:30:47 GMT</pubDate></item></channel></rss>