In Spain, it's not working. A few days ago, the server was down for more than 16 hours.
Best posts made by Robertof
-
RE: UIFlow Down?
-
RE: Simple Example of ESP-NOW Communication Between StickC Plus and M5Core Basic
Hi @teastain .
I donโt know how to program in C++, thatโs why I have fun with the Uiflow blocks.
I am very grateful for your intention to help me and I will try to test the code, although modifying it will be my problem.
Thanks
Latest posts made by Robertof
-
โ ๏ธ HELP: LVGL on M5Stack CoreS3 not detecting touch events โ ๏ธ
Hello community,
I'm trying to integrate LVGL 9.3.0 with the touch screen on M5Stack CoreS3, but I'm facing an issue: touch events are not being registered correctly in LVGL, even though the touch screen works fine when tested using M5Stack's official example code.
๐ Software versions I'm using: โ M5Stack CoreS3 (ESP32-S3-based hardware) โ LVGL version: 9.3.0 โ M5Unified library version: Latest available version (checked via Arduino IDE) โ LovyanGFX library version: Latest available version โ Arduino IDE version: 1.8.19 โ ESP32 Board Support Package: Latest version installed via Board Manager
๐ What Iโve tested so far: โ The touch screen works correctly using CoreS3.Touch.getDetail(). โ LVGL is not detecting touches, suggesting a possible misconfiguration in lv_indev_t. โ I've implemented synchronization with CoreS3.update(), but LVGL still does not process touch events.
๐ Current code I'm using:
#include <M5CoreS3.h> #include <lvgl.h> // ๐ Screen instance M5GFX display; // ๐ Callback function for display update in LVGL void flush_cb(lv_display_t *disp_drv, const lv_area_t *area, uint8_t *color_p) { display.pushImage(area->x1, area->y1, area->x2 - area->x1 + 1, area->y2 - area->y1 + 1, (uint16_t*)color_p); lv_display_flush_ready(disp_drv); } // ๐ Touch event handling using CoreS3 and advanced debugging void my_input_read(lv_indev_t *indev, lv_indev_data_t *data) { CoreS3.update(); auto t = CoreS3.Touch.getDetail(); data->point.x = t.x; data->point.y = t.y; Serial.print("๐ Touch state: "); Serial.println((int)t.state); Serial.print("๐ Coordinates โ X: "); Serial.print(t.x); Serial.print(" Y: "); Serial.println(t.y); if (t.state == m5::touch_state_t::touch_begin || t.state == m5::touch_state_t::hold_begin || t.state == m5::touch_state_t::drag_begin) { data->state = LV_INDEV_STATE_PR; Serial.println("โ LVGL has detected the touch!"); } else { data->state = LV_INDEV_STATE_REL; } } // ๐ Creating a test button in LVGL void create_button(lv_obj_t *parent) { lv_obj_t *btn = lv_btn_create(parent); lv_obj_set_size(btn, 100, 50); lv_obj_align(btn, LV_ALIGN_CENTER, 0, 0); lv_obj_t *label = lv_label_create(btn); lv_label_set_text(label, "Press"); lv_obj_center(label); lv_obj_add_flag(btn, LV_OBJ_FLAG_CLICKABLE); } // ๐ System initial setup void setup() { auto cfg = M5.config(); CoreS3.begin(cfg); Serial.begin(115200); Serial.println("\n๐ M5Stack CoreS3 initialized with LVGL 9.3.0 ๐\n"); display.init(); lv_init(); display.begin(); display.setColorDepth(16); static lv_display_t *disp_drv = lv_display_create(320, 240); lv_display_set_flush_cb(disp_drv, flush_cb); // ๐ Dynamic memory allocation to optimize RAM usage static lv_color_t *buf1 = (lv_color_t*)malloc(320 * 50 * sizeof(lv_color_t)); if (buf1 == NULL) { Serial.println("โ Error: Failed to allocate memory."); return; } lv_display_set_buffers(disp_drv, buf1, NULL, 320 * 50 * sizeof(lv_color_t), LV_DISPLAY_RENDER_MODE_PARTIAL); // ๐ Properly initialize the touch input handler in LVGL lv_indev_t *indev = lv_indev_create(); lv_indev_set_type(indev, LV_INDEV_TYPE_POINTER); lv_indev_set_read_cb(indev, my_input_read); // ๐ Create a test button in LVGL create_button(lv_scr_act()); Serial.println("โ LVGL initialized correctly, waiting for interaction..."); } // ๐ Main loop for touch updates and LVGL handling void loop() { CoreS3.update(); lv_timer_handler(); delay(5); }
๐ก Has anyone successfully enabled touch detection in LVGL with M5Stack CoreS3? If you have any suggestions, insights, or working code examples, Iโd really appreciate your help. ๐
Thanks in advance for any assistance! ๐ Letโs get this working! ๐ช๐ฅ
-
RE: Issue with Publishing and Subscribing in MQTT
@felmue Hello , Your code worked perfectly. I really appreciate the time and effort you put into helping meโit means a lot! Thank you!
Roberto -
Issue with Publishing and Subscribing in MQTT
[link text](link url)Hello everyone,
I'm facing issues with both subscription and publishing in MQTT. When publishing, it does not allow me to send alphanumeric values. If I use a numeric string and then convert it to an integer, it works correctly, as shown in the following example:
MQTT publish topic "coreS3/state", "5", Qos 1
However, when I try to publish any variable, whether numeric or text, the system simply ignores the command without displaying errors. For example:
MQTT publish topic "coreS3/state", numeric or text variable, Qos 1
If instead of a variable I use a fixed string, the command executes without issues.
I have spent a lot of time trying to solve this, but I haven't found a clear answer. Has anyone faced a similar issue or has any suggestions on how to fix it?
I appreciate any help you can provide.
[C:\Users\faria\Downloads\MQTT_Relay_S3_BAD.m5f2]
-
RE: Simple Example of ESP-NOW Communication Between StickC Plus and M5Core Basic
Hi @teastain .
I donโt know how to program in C++, thatโs why I have fun with the Uiflow blocks.
I am very grateful for your intention to help me and I will try to test the code, although modifying it will be my problem.
Thanks -
RE: He comprado una m5stack Fire y me da problemas
Hi@neus-morla ,
If you have the device as it came from the factory, try this:Download M5burner.
Log in.
In core, look for UIFlow_Fire; this will flash the updated firmware (this might be the problem). -
Simple Example of ESP-NOW Communication Between StickC Plus and M5Core Basic
I am working on a project that requires wireless communication between a StickC Plus and an M5Core Basic using the ESP-NOW protocol. I am new to this and would greatly appreciate it if someone could provide me with a simple example to establish this communication.
I have found some tutorials on ESP-NOW, but I would like to see a specific example for these devices. Any help or example code would be greatly appreciated.
-
RE: Introduction PLC PROTO MODULE
In other tutorials, it is also happening.
I tried with Chrome and Edge browsers.
It would be great to be able to download a PDF with the class. -
RE: 2RELAY on Core2 v1.13.6
Hi @felmue
Friend, thank you very much for your interest in our problems.
Cheers. -
RE: 2RELAY on Core2 v1.13.6
Hi @cryptospok .
Iโm glad you resolved it. I also experienced the frustration of not being able to solve the problems and seeing time pass without finding a way out. Fortunately, Felix was there to advise me and provide an example that I could adapt to my needs. Good luck with that project, and weโll meet again around here.
Until next time,
Roberto. -
RE: Login not possible UIFlow but ok to UIFlow2
Hi @Zoidberg ,I spent a lot of time trying to log in to Uiflow1, but I couldnโt find a solution.
Best regards,
Roberto