<?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[Dices example not working on M5Stick C]]></title><description><![CDATA[<p dir="auto">M5StickC - It compile without error, but nothing happens when shaking. Any suggestion?</p>
]]></description><link>https://community.m5stack.com/topic/1412/dices-example-not-working-on-m5stick-c</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 00:36:24 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/1412.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 22 Oct 2019 10:40:18 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Dices example not working on M5Stick C on Sat, 11 Apr 2020 15:43:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/noiseislife" aria-label="Profile: noiseislife">@<bdi>noiseislife</bdi></a> said in <a href="/post/7745">Dices example not working on M5Stick C</a>:</p>
<blockquote>
<p dir="auto">To get around this I saved the Example sketch to disk, deleted the file Dices.ino and then opened Dices_MPU6886.iso. You will get a message about requiring that the directory name be changed, which it does for you.</p>
<p dir="auto">You should now be able to successfully compile the sketch to the m5stick.</p>
</blockquote>
<p dir="auto">Thank you. Now it works !</p>
]]></description><link>https://community.m5stack.com/post/8114</link><guid isPermaLink="true">https://community.m5stack.com/post/8114</guid><dc:creator><![CDATA[ilex73]]></dc:creator><pubDate>Sat, 11 Apr 2020 15:43:27 GMT</pubDate></item><item><title><![CDATA[Reply to Dices example not working on M5Stick C on Sat, 14 Mar 2020 14:05:51 GMT]]></title><description><![CDATA[<p dir="auto">To get around this I saved the Example sketch to disk, deleted the file Dices.ino and then opened Dices_MPU6886.iso. You will get a message about requiring that the directory name be changed, which it does for you.</p>
<p dir="auto">You should now be able to successfully compile the sketch to the m5stick.</p>
]]></description><link>https://community.m5stack.com/post/7745</link><guid isPermaLink="true">https://community.m5stack.com/post/7745</guid><dc:creator><![CDATA[noiseislife]]></dc:creator><pubDate>Sat, 14 Mar 2020 14:05:51 GMT</pubDate></item><item><title><![CDATA[Reply to Dices example not working on M5Stick C on Sun, 12 Jan 2020 02:49:28 GMT]]></title><description><![CDATA[<p dir="auto">I'm having a similar problem, except that I'm definitely using the MPU6886 code.  There are two files in the examples, almost identical, except for the IMU code.  I chose the MPU6886 version, and it never detects any movement.  I've also tried the IMU sample, and that sample doesn't show any change - all values are always zero.</p>
]]></description><link>https://community.m5stack.com/post/6997</link><guid isPermaLink="true">https://community.m5stack.com/post/6997</guid><dc:creator><![CDATA[frogman]]></dc:creator><pubDate>Sun, 12 Jan 2020 02:49:28 GMT</pubDate></item><item><title><![CDATA[Reply to Dices example not working on M5Stick C on Thu, 24 Oct 2019 07:25:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/stormproof" aria-label="Profile: stormproof">@<bdi>stormproof</bdi></a> said in <a href="/post/6118">Dices example not working on M5Stick C</a>:</p>
<blockquote>
<p dir="auto">A</p>
</blockquote>
<p dir="auto">/*</p>
<p dir="auto">A couple of dices on a tiny 80x160px TFT display</p>
<p dir="auto">Author: Alfonso de Cala <a href="mailto:alfonso@el-magnifico.org" target="_blank" rel="noopener noreferrer nofollow ugc">alfonso@el-magnifico.org</a></p>
<p dir="auto">*/</p>
<p dir="auto">#include &lt;M5StickC.h&gt;</p>
<p dir="auto">#define DOT_SIZE 6<br />
int dot[6][6][2] {<br />
{{35,35}},<br />
{{15,15},{55,55}},<br />
{{15,15},{35,35},{55,55}},<br />
{{15,15},{15,55},{55,15},{55,55}},<br />
{{15,15},{15,55},{35,35},{55,15},{55,55}},<br />
{{15,15},{15,35},{15,55},{55,15},{55,35},{55,55}},<br />
};</p>
<p dir="auto">int16_t accX = 0;<br />
int16_t accY = 0;<br />
int16_t accZ = 0;</p>
<p dir="auto">void setup(void) {<br />
M5.begin();<br />
M5.MPU6886.Init();</p>
<p dir="auto">M5.Lcd.setRotation(1);</p>
<p dir="auto">M5.Lcd.fillScreen(TFT_GREEN);</p>
<p dir="auto">M5.Lcd.setTextColor(TFT_BLACK);  // Adding a background colour erases previous text automatically</p>
<p dir="auto">M5.Lcd.setCursor(10, 30);<br />
M5.Lcd.setTextSize(3);<br />
M5.Lcd.print("SHAKE ME");<br />
delay(1000);<br />
}</p>
<p dir="auto">void loop() {</p>
<p dir="auto">while(1) {<br />
M5.MPU6886.getAccelAdc(&amp;accX,&amp;accY,&amp;accZ);<br />
if (((float) accX) * M5.MPU6886.aRes &gt; 1 || ((float) accY) * M5.MPU6886.aRes &gt; 1 ) {<br />
break;<br />
}<br />
}</p>
<p dir="auto">M5.Lcd.fillScreen(TFT_GREEN);</p>
<p dir="auto">// Draw first dice<br />
delay(1000);  // A little delay to increase suspense :-D<br />
int number = random(0, 6);<br />
draw_dice(5,5,number);</p>
<p dir="auto">// Draw second dice<br />
delay(1000);<br />
number = random(0, 6);<br />
draw_dice(85,5,number);</p>
<p dir="auto">}</p>
<p dir="auto">void draw_dice(int16_t x, int16_t y, int n) {</p>
<p dir="auto">M5.Lcd.fillRect(x, y, 70, 70, WHITE);</p>
<p dir="auto">for(int d = 0; d &lt; 7; d++) {<br />
if (dot[n][d][0] &gt; 0) {<br />
M5.Lcd.fillCircle(x+dot[n][d][0], y+dot[n][d][1], DOT_SIZE, TFT_BLACK);<br />
}<br />
}</p>
<p dir="auto">}</p>
]]></description><link>https://community.m5stack.com/post/6120</link><guid isPermaLink="true">https://community.m5stack.com/post/6120</guid><dc:creator><![CDATA[Stormproof]]></dc:creator><pubDate>Thu, 24 Oct 2019 07:25:06 GMT</pubDate></item><item><title><![CDATA[Reply to Dices example not working on M5Stick C on Thu, 24 Oct 2019 06:58:58 GMT]]></title><description><![CDATA[<p dir="auto">You have to change IMU type in code.Sample is for previous type.Now it is MPU...</p>
]]></description><link>https://community.m5stack.com/post/6117</link><guid isPermaLink="true">https://community.m5stack.com/post/6117</guid><dc:creator><![CDATA[Stormproof]]></dc:creator><pubDate>Thu, 24 Oct 2019 06:58:58 GMT</pubDate></item><item><title><![CDATA[Reply to Dices example not working on M5Stick C on Tue, 22 Oct 2019 13:11:19 GMT]]></title><description><![CDATA[<p dir="auto">Id start trying to make simple code with label and displaying imu data on it, to see if imu works</p>
]]></description><link>https://community.m5stack.com/post/6096</link><guid isPermaLink="true">https://community.m5stack.com/post/6096</guid><dc:creator><![CDATA[Thrasher]]></dc:creator><pubDate>Tue, 22 Oct 2019 13:11:19 GMT</pubDate></item></channel></rss>