Posts made by otosan-maker
-
RE: UiFlow 2.0 discuss(how-to, bug, feature request or sometings)
I have found a bug in MQTT software. When I subscrive to a topic, the python code creates the subscription at the beggining of the setup code, before it connects to wifi and mqtt.
Here is the sample:
def setup():
global page0, label0, LTemp, label1, temperatura, slider0, button0, off, mqtt_client, wlan, rotary
mqtt_client.subscribe('termostato/temperatura', mqtt_termostato_temperatura_event, qos=0)M5.begin()
m5ui.init()
page0 = m5ui.M5Page(bg_c=0xffffff)
label0 = m5ui.M5Label("Umbral", x=30, y=81, text_c=0x85231b, bg_c=0x302c2c, bg_opa=0, font=lv.font_montserrat_24, parent=page0)
LTemp = m5ui.M5Label("Temperatura:", x=41, y=39, text_c=0x000000, bg_c=0xffffff, bg_opa=0, font=lv.font_montserrat_14, parent=page0)
label1 = m5ui.M5Label("19,0", x=152, y=81, text_c=0x85231b, bg_c=0xffffff, bg_opa=0, font=lv.font_montserrat_24, parent=page0)
temperatura = m5ui.M5Label("00.00", x=141, y=39, text_c=0x000000, bg_c=0xffffff, bg_opa=0, font=lv.font_montserrat_14, parent=page0)
slider0 = m5ui.M5Slider(x=38, y=119, w=160, h=22, mode=lv.slider.MODE.NORMAL, min_value=190, max_value=290, value=210, bg_c=0x115e9f, color=0x2c90e4, parent=page0)
button0 = m5ui.M5Button(text="Set", x=54, y=172, bg_c=0x2196f3, text_c=0xffffff, font=lv.font_montserrat_14, parent=page0)
off = m5ui.M5Button(text="OFF", x=124, y=171, bg_c=0xf36021, text_c=0xffffff, font=lv.font_montserrat_14, parent=page0)off.add_event_cb(off_event_handler, lv.EVENT.ALL, None)
BtnA.setCallback(type=BtnA.CB_TYPE.WAS_CLICKED, cb=btnA_wasClicked_event)
slider0.add_event_cb(slider0_event_handler, lv.EVENT.ALL, None)
button0.add_event_cb(button0_event_handler, lv.EVENT.ALL, None)page0.screen_load()
wlan = network.WLAN(network.STA_IF)
rotary = Rotary()
wlan.connect('bencab', 'arrabal6')
rotary.set_rotary_value(19)
mqtt_client = MQTTClient('m5termostato', '192.168.1.34', port=1883, user='user', password='pass', keepalive=33149)
label1.set_text(str((slider0.get_value()) / 10)) -
RE: CAS Graphics calculator implemented in Core2 with faces keyborad
A calculator that can be programmed in python, and with a symbolic math engine is not as usual. Nspite from Texas Instrument, HP Prime, and Casio CP-400 ... mine can do things these other can`t (wifi connect). But there is a reason, commercial companies are looking for a tool in class, mine is only for fun :-D
frequency modulator .... I will investigate and see what can I do
Thanks -
CAS Graphics calculator implemented in Core2 with faces keyborad
I have developed a graphics calculator with a symbolic math engine, using esp32 and a custom PCB, but I have a few M5 stack devices and I have migrated the software ... it runs great. Quicker than my custom PCB :-D
A link to the project.
https://hackaday.io/project/187213-galdeano-handheld-computer/log/211323-migrate-to-m5stack-core2 -
RE: UIFlow 1.8.9
I have updated to this version my core2 with faces keyboard, and the led are bright at 100%. I have not been able to stop them.
-
RE: [SOLVED] ATOM LITE + OLED Unit 1.3" 128 × 64 Display
@cepics said in ATOM LITE + OLED Unit 1.3" 128 × 64 Display:
static constexpr const char* text[] = { text0, text1, text2, text3, text4, text5, text6, text7 };
I don´t like it ... please remove it and give a try in the loop with a static string ...
And also, put any serial.println() debug code to see what code are you running
-
RE: [SOLVED] ATOM LITE + OLED Unit 1.3" 128 × 64 Display
why is it not working? Any error code? it is difficult to help you if you give no information.
-
How can I write UTF8 strings in a labet?
Hello, I have developed a small program, and I store some strings in Spanish ... so some strings have UTF8 char. For instance 'salmón' --> b'salm\xc3\xb3n' ...
When I put the variable in the label ... I write 'salmn' :-(
Any ideas?? -
Error with web IDE
Hello I have a new friend and it looks good, but I have a small problem.
I can use USB UIFlow without problems, but when I switch to wifi (web IDE) it shows a message error:
">>> Wait COM.X module connect and stable :) [TX:14 RX:13]"
">>> Wait module stable timeout. Please check module connect :("
But I have no module connected, and I think I have configured wifi ok.
I have checked from RLPT and I can connect to wifi.I send an image ...