<?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[M5Stack Fire Buttons is not working.]]></title><description><![CDATA[<p dir="auto">When I burn uiflow 2.0 for my M5Stack fire device, my buttons work very easily, but when I make a project and want to use the buttons, my buttons do not work. I am using Arduino IDE. My code is below.</p>
<p dir="auto">#include &lt;M5Stack.h&gt;</p>
<p dir="auto">// Menü seçeneklerini tanımla<br />
const char* menuOptions[] = {"WIFI EXPLOITS", "BLUETOOTH EXPLOITS", "BAD KB", "BAD USB", "SETTINGS"};<br />
int selectedOption = 0;</p>
<p dir="auto">void setup() {<br />
M5.begin();<br />
M5.Lcd.setRotation(1); // Ekranı yatay modda kullan<br />
M5.Lcd.fillScreen(TFT_BLACK);<br />
drawMenu();<br />
}</p>
<p dir="auto">void loop() {<br />
// Butonları kontrol et<br />
if (M5.BtnA.wasPressed()) {<br />
previousOption();<br />
drawMenu();<br />
}<br />
if (M5.BtnC.wasPressed()) {<br />
nextOption();<br />
drawMenu();<br />
}<br />
}</p>
<p dir="auto">void drawMenu() {<br />
M5.Lcd.fillScreen(TFT_BLACK);<br />
M5.Lcd.setTextColor(TFT_WHITE);<br />
M5.Lcd.setTextSize(2);</p>
<p dir="auto">// Menü başlığını çiz<br />
M5.Lcd.setCursor(20, 20);<br />
M5.Lcd.print("MENU");</p>
<p dir="auto">// Menü seçeneklerini çiz<br />
for (int i = 0; i &lt; 5; i++) {<br />
if (i == selectedOption) {<br />
M5.Lcd.fillRect(20, 50 + i * 30, 220, 25, TFT_WHITE);<br />
M5.Lcd.setTextColor(TFT_BLACK);<br />
} else {<br />
M5.Lcd.setTextColor(TFT_WHITE);<br />
}<br />
M5.Lcd.setCursor(30, 55 + i * 30);<br />
M5.Lcd.print(menuOptions[i]);<br />
}<br />
}</p>
<p dir="auto">void nextOption() {<br />
selectedOption = (selectedOption + 1) % 5;<br />
}</p>
<p dir="auto">void previousOption() {<br />
selectedOption = (selectedOption + 4) % 5;<br />
}</p>
]]></description><link>https://community.m5stack.com/topic/6064/m5stack-fire-buttons-is-not-working</link><generator>RSS for Node</generator><lastBuildDate>Tue, 28 Apr 2026 21:00:23 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/6064.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 07 Feb 2024 17:27:20 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to M5Stack Fire Buttons is not working. on Wed, 07 Feb 2024 18:43:22 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/poyrazturkoglu" aria-label="Profile: poyrazturkoglu">@<bdi>poyrazturkoglu</bdi></a></p>
<p dir="auto">please have a look at the button example <a href="https://github.com/m5stack/M5Stack/blob/master/examples/Basics/Button/Button.ino" target="_blank" rel="noopener noreferrer nofollow ugc">here</a>.</p>
<p dir="auto">I think you are missing an <code>M5.update()</code> inside the <code>loop()</code>.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/23694</link><guid isPermaLink="true">https://community.m5stack.com/post/23694</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Wed, 07 Feb 2024 18:43:22 GMT</pubDate></item></channel></rss>