<?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[M5StickC Plus EEPROM Issue UIFLOW]]></title><description><![CDATA[<p dir="auto">Hi,<br />
I'm using the EEPROM block from UIFLOW but i cant get it to work.<br />
Is there a bug? Or am i doing something wrong?<br />
<img src="/assets/uploads/files/1700249108167-433f9e24-247b-4573-ae32-6c3a13e99c2e-image-resized.png" alt="0_1700249105537_433f9e24-247b-4573-ae32-6c3a13e99c2e-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">This is the python:<br />
from m5stack import *<br />
from m5ui import *<br />
from uiflow import *<br />
import nvs<br />
from easyIO import *<br />
import time</p>
<p dir="auto">setScreenColor(0x111111)</p>
<p dir="auto">malas = None<br />
timer = None<br />
count = None</p>
<p dir="auto">c = M5TextBox(21, 64, "CURRENT", lcd.FONT_DejaVu18, 0xc7fadf, rotate=0)<br />
counter = M5TextBox(21, 91, "0", lcd.FONT_DejaVu40, 0x30ff23, rotate=0)<br />
label0 = M5TextBox(31, 167, "MALA'S", lcd.FONT_DejaVu18, 0x1fbef1, rotate=0)<br />
malac = M5TextBox(29, 199, "0", lcd.FONT_DejaVu24, 0xFFFFFF, rotate=0)<br />
BATTPERCENT = M5TextBox(3, 6, "BATTERY:", lcd.FONT_DefaultSmall, 0xFFFFFF, rotate=0)<br />
BATTIND = M5TextBox(57, 6, "0", lcd.FONT_DefaultSmall, 0xFFFFFF, rotate=0)<br />
timerx = M5TextBox(118, 6, "0", lcd.FONT_DefaultSmall, 0x676363, rotate=0)</p>
<p dir="auto">from numbers import Number</p>
<p dir="auto">def buttonA_wasPressed():<br />
global malas, timer, count<br />
timer = 61<br />
BATTIND.setText(str((str((map_value((axp.getBatVoltage()), 3.7, 4.1, 0, 100))) + str('%'))))<br />
count = (count if isinstance(count, Number) else 0) + 1<br />
counter.setText(str(count))<br />
malac.setText(str(malas))<br />
speaker.tone(500, 100)<br />
if count == 108:<br />
malas = (malas if isinstance(malas, Number) else 0) + 1<br />
malac.setText(str(malas))<br />
speaker.tone(500, 100)<br />
wait_ms(200)<br />
speaker.tone(500, 100)<br />
speaker.setVolume(5)<br />
speaker.sing(831, 2)<br />
speaker.sing(622, 2)<br />
speaker.setVolume(3)<br />
count = 0<br />
malac.setText(str(malas))<br />
pass<br />
btnA.wasPressed(buttonA_wasPressed)</p>
<p dir="auto">def buttonB_pressFor():<br />
global malas, timer, count<br />
count = 0<br />
malas = 0<br />
nvs.write(str('malas'), malas)<br />
counter.setText(str(count))<br />
malac.setText(str(malas))<br />
pass<br />
btnB.pressFor(0.8, buttonB_pressFor)</p>
<p dir="auto">axp.setLcdBrightness(50)<br />
malas = nvs.read_str('malas')<br />
speaker.setVolume(3)<br />
BATTIND.setText(str((str((map_value((axp.getBatVoltage()), 3.7, 4.1, 0, 100))) + str('%'))))<br />
counter.setText(str(count))<br />
malac.setText(str(malas))<br />
timer = 61<br />
while True:<br />
timerx.setText(str((str(timer) + str(''))))<br />
malac.setText(str(malas))<br />
timer = (timer if isinstance(timer, Number) else 0) + -1<br />
if timer == 0:<br />
nvs.write(str('malas'), malas)<br />
wait_ms(3)<br />
axp.powerOff()<br />
wait(1)<br />
wait_ms(2)</p>
]]></description><link>https://community.m5stack.com/topic/5819/m5stickc-plus-eeprom-issue-uiflow</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 19:36:37 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/5819.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 17 Nov 2023 19:25:38 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to M5StickC Plus EEPROM Issue UIFLOW on Mon, 20 Nov 2023 02:15:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kunal" aria-label="Profile: kunal">@<bdi>kunal</bdi></a><br />
What is the real problem? Please explain in detail, we have tested it and it works on my side</p>
]]></description><link>https://community.m5stack.com/post/22823</link><guid isPermaLink="true">https://community.m5stack.com/post/22823</guid><dc:creator><![CDATA[pandian.nano]]></dc:creator><pubDate>Mon, 20 Nov 2023 02:15:53 GMT</pubDate></item></channel></rss>