Comments for Random Nerd Tutorials https://randomnerdtutorials.com Learn ESP8266, ESP32, Arduino, and Raspberry Pi Fri, 30 Aug 2024 12:43:33 +0000 hourly 1 https://wordpress.org/?v=6.6.1 Comment on Raspberry Pi: Set Up Remote Desktop Connection (RDP) – Windows PC by Eduard https://randomnerdtutorials.com/raspberry-pi-remote-desktop-connection-rdp-windows/#comment-952431 Thu, 29 Aug 2024 13:02:20 +0000 https://randomnerdtutorials.com/?p=146653#comment-952431 I am facing the same issue as others with distorted graphics.
Being anything but new to Linux but still quite new Raspberry Pi, I am also looking for a solution.
Obviously, disabling video acceleration “solves” it, but you fall back to slow software rendering using llvmpipe.

The “solution” that I found for this was in /etc/X11/xrdp/xorg.conf, under Section “Device”, changing the value behind Option “DRMDevice” from “/dev/dri/renderD128” to “”.
But disabling it system wide in the Raspberry Pi’s config.txt file does also work indeed, like others mention.

However, it’s all bad.

The Raspberry Pi still has a GPU, albeit a small one, and I want to take advantage of it.
So I want to actually get the Mesa V3D driver working with Xrdp.
Webbrowsers are not the best way to test it though. The most simple solution to actually check what you are using is glxgears -info (check GL_RENDERER to see what you are using).
The animation of shows the same distortion as the webbrowsers when using the V3D driver, while it works “fine” with the llvmpipe. Any video game would have the same issue.

If anyone knows the solution it would be great. Otherwise giving up on RDP and getting back to Wayland and VNC would probably be the better solution.

]]>
Comment on ESP32 CYD with LVGL: Display Image on the Screen by Walter https://randomnerdtutorials.com/esp32-cyd-lvgl-display-image/#comment-952421 Thu, 29 Aug 2024 11:56:39 +0000 https://randomnerdtutorials.com/?p=161686#comment-952421 In reply to Walter.

Hello
Correction:
LVGL 9.2.0 compiles but the graphics are distorted.
Knowing that I’m only a hobby programmer I carefully read the instructions and
tried it on 2 computers and also with your “Buttons and Slider” file.
Same result.
Version 9.1.0 works fine for me.

BTW , for a hobby programmer your site is great.

Regards

]]>
Comment on ESP8266 NodeMCU Digital Inputs and Digital Outputs (Arduino IDE) by Joep https://randomnerdtutorials.com/esp8266-nodemcu-digital-inputs-outputs-arduino/#comment-952263 Wed, 28 Aug 2024 20:54:19 +0000 https://randomnerdtutorials.com/?p=95244#comment-952263 Great tutorial!
When I had several leds working via internet, I really had the feeling that I made an achievement, small as it may be.

]]>
Comment on ESP32 CYD with LVGL: Display Image on the Screen by Walter https://randomnerdtutorials.com/esp32-cyd-lvgl-display-image/#comment-951854 Tue, 27 Aug 2024 15:02:39 +0000 https://randomnerdtutorials.com/?p=161686#comment-951854 Hello
I got an update to LVGL 9.2.0
Now uploading goes wrong.

c:\Users\walte\OneDrive\Documenten\Arduino\libraries\lvgl\src\examples\styles\lv_example_style_14.c:1:10: fatal error: ../../src/themes/lv_theme_private.h: No such file or directory
1 | #include “../../src/themes/lv_theme_private.h”
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
exit status 1

LVGL 9.1.0 still works fine.

Regards,
Walter

]]>
Comment on Raspberry Pi Pico: BME680 Environmental Sensor (Arduino IDE) by Toni https://randomnerdtutorials.com/raspberry-pi-pico-bme680-arduino/#comment-951850 Tue, 27 Aug 2024 14:52:17 +0000 https://randomnerdtutorials.com/?p=161196#comment-951850 Hello, thank you again for this very useful article.

I have used several BME680 together with a “big” Raspi. It worked a while, but then each time humidity killed the BME680.

What would be a smart idea for housing the sensor?

Tanks

]]>
Comment on ESP32 CYD with LVGL: Display Image on the Screen by Rui Santos https://randomnerdtutorials.com/esp32-cyd-lvgl-display-image/#comment-951835 Tue, 27 Aug 2024 13:25:40 +0000 https://randomnerdtutorials.com/?p=161686#comment-951835 In reply to Dale W Etchells.

Glad it was helpful!

]]>
Comment on ESP32: TFT LCD Touchscreen Display – 2.8 inch ILI9341 240×320 (Arduino IDE) by Renzo https://randomnerdtutorials.com/esp32-tft-touchscreen-display-2-8-ili9341-arduino/#comment-951798 Tue, 27 Aug 2024 09:37:09 +0000 https://randomnerdtutorials.com/?p=149757#comment-951798 It’s possble to use ILI9341 with ESP8266 an where to find a valid sketch.
Thank
Renzo

]]>
Comment on ESP32 Cheap Yellow Display (CYD) Pinout (ESP32-2432S028R) by Misiu https://randomnerdtutorials.com/esp32-cheap-yellow-display-cyd-pinout-esp32-2432s028r/#comment-951795 Tue, 27 Aug 2024 09:29:59 +0000 https://randomnerdtutorials.com/?p=155720#comment-951795 In reply to Sara Santos.

Hi Sara, thank you for the reply.
The question is – if the 3.3V output on the CYD can power the relay module and four DS18B20 sensors. Any ideas how can I check this?

]]>
Comment on ESP32 Cheap Yellow Display (CYD) Pinout (ESP32-2432S028R) by Misiu https://randomnerdtutorials.com/esp32-cheap-yellow-display-cyd-pinout-esp32-2432s028r/#comment-951794 Tue, 27 Aug 2024 09:28:42 +0000 https://randomnerdtutorials.com/?p=155720#comment-951794 In reply to David Stonier-Gibson.

I have almost exact same relay modules – aliexpress.com/item/32881636778.html.

My CYD has two USB ports, so I was thinking to use USB-C to power the board and Micro USB to power the relay module (I have ordered additional 5V module).

How can I check if the board (the display) can power and control the relay module without destoying the board. I’ve tried to seach for any spec, but wasn’t able to find anything.

]]>
Comment on ESP32 Async Web Server – Control Outputs with Arduino IDE (ESPAsyncWebServer library) by Dean Cotton https://randomnerdtutorials.com/esp32-async-web-server-espasyncwebserver-library/#comment-951788 Tue, 27 Aug 2024 08:38:40 +0000 https://randomnerdtutorials.com/?p=96995#comment-951788 Hello Sara and Rui,

I have been running into a compiling error with the webserver library, it started when I attempted to update ElegantOTA (non pro), I have updated and reinstalled both ESPAsyncWebServer and AsyncTCP with no luck.
Output Error message:
ESPDashPro.cpp: In lambda function

ESPDashPro.cpp: 56:109: error: no matching function for call to ‘AsyncWebServerRequest::beginResponse(int, const char [10], const uint8_t [188958], unsigned int)
AsyncWebServerResponse *response = request->beginResponse(200, “text\html”, DASH_HTML, sizeof(DASH_HTML))

ESPDashPro.h:107: In file included from
ESPDashPro.cpp:1: from
ESPAsyncWebServer.h:246: note candidate AsyncWebServerResponse* AsyncWebServerRequest beginResponse(int, const String&, const String&)
AsyncWebServerResponse beginResponse(int code, const String& contentType=String(), const String& content=String())
^~~~~~~~~~~~~
ESPAsyncWebServer.h:246: note candidate expects 3 arguments, 4 provided
ESPAsyncWebServer.h:247: note candidate AsyncWebServerResponse
AsyncWebServerRequest beginResponse(AsyncWebServerRequest FS&, const String&, const String&, bool, AwsTemplateProcessor)
AsyncWebServerResponse beginResponse(FS &fs, const String& path, const String& contentType=String(), bool download=false, AwsTemplateProcessor callback=nullptr)
^~~~~~~~~~~~~
ESPAsyncWebServer.h:247: note no known conversion for argument 1 from int to AsyncWebServerRequest FS& {aka fs FS&}
ESPAsyncWebServer.h:248: note candidate AsyncWebServerResponse
AsyncWebServerRequest beginResponse(AsyncWebServerRequest File, const String&, const String&, bool, AwsTemplateProcessor)
AsyncWebServerResponse beginResponse(File content, const String& path, const String& contentType=String(), bool download=false, AwsTemplateProcessor callback=nullptr)
^~~~~~~~~~~~~
ESPAsyncWebServer.h:248: note no known conversion for argument 1 from int to AsyncWebServerRequest File {aka fs File}
ESPAsyncWebServer.h:249: note candidate AsyncWebServerResponse
AsyncWebServerRequest beginResponse(Stream&, const String&, size_t, AwsTemplateProcessor)
AsyncWebServerResponse beginResponse(Stream &stream, const String& contentType, size_t len, AwsTemplateProcessor callback=nullptr)
^~~~~~~~~~~~~
ESPAsyncWebServer.h:249: note no known conversion for argument 1 from int to Stream&
ESPAsyncWebServer.h:250: note candidate AsyncWebServerResponse
AsyncWebServerRequest beginResponse(const String&, size_t, AwsResponseFiller, AwsTemplateProcessor)
AsyncWebServerResponse *beginResponse(const String& contentType, size_t len, AwsResponseFiller callback, AwsTemplateProcessor templateCallback=nullptr)
^~~~~~~~~~~~~
ESPAsyncWebServer.h:250: note no known conversion for argument 3 from const uint8_t [188958] {aka const unsigned char [188958]} to AwsResponseFiller {aka std function}
ESPDashPro.cpp: In lambda function

ESPDashPro.cpp: 68:112: error: no matching function for call to ‘AsyncWebServerRequest::beginResponse(int, const char [10], const uint8_t [7655], unsigned int)
AsyncWebServerResponse *response = request->beginResponse(200, DASH_LOGO_MIME, DASH_LOGO, sizeof(DASH_LOGO))

ESPDashPro.h:107: In file included from
ESPDashPro.cpp:1: from
ESPAsyncWebServer.h:246: note candidate AsyncWebServerResponse* AsyncWebServerRequest beginResponse(int, const String&, const String&)
AsyncWebServerResponse beginResponse(int code, const String& contentType=String(), const String& content=String())
^~~~~~~~~~~~~
ESPAsyncWebServer.h:246: note candidate expects 3 arguments, 4 provided
ESPAsyncWebServer.h:247: note candidate AsyncWebServerResponse
AsyncWebServerRequest beginResponse(AsyncWebServerRequest FS&, const String&, const String&, bool, AwsTemplateProcessor)
AsyncWebServerResponse beginResponse(FS &fs, const String& path, const String& contentType=String(), bool download=false, AwsTemplateProcessor callback=nullptr)
^~~~~~~~~~~~~
ESPAsyncWebServer.h:247: note no known conversion for argument 1 from int to AsyncWebServerRequest FS& {aka fs FS&}
ESPAsyncWebServer.h:248: note candidate AsyncWebServerResponse
AsyncWebServerRequest beginResponse(AsyncWebServerRequest File, const String&, const String&, bool, AwsTemplateProcessor)
AsyncWebServerResponse beginResponse(File content, const String& path, const String& contentType=String(), bool download=false, AwsTemplateProcessor callback=nullptr)
^~~~~~~~~~~~~
ESPAsyncWebServer.h:248: note no known conversion for argument 1 from int to AsyncWebServerRequest File {aka fs File}
ESPAsyncWebServer.h:249: note candidate AsyncWebServerResponse
AsyncWebServerRequest beginResponse(Stream&, const String&, size_t, AwsTemplateProcessor)
AsyncWebServerResponse beginResponse(Stream &stream, const String& contentType, size_t len, AwsTemplateProcessor callback=nullptr)
^~~~~~~~~~~~~
ESPAsyncWebServer.h:249: note no known conversion for argument 1 from int to Stream&
ESPAsyncWebServer.h:250: note candidate AsyncWebServerResponse
AsyncWebServerRequest beginResponse(const String&, size_t, AwsResponseFiller, AwsTemplateProcessor)
AsyncWebServerResponse *beginResponse(const String& contentType, size_t len, AwsResponseFiller callback, AwsTemplateProcessor templateCallback=nullptr)
^~~~~~~~~~~~~
ESPAsyncWebServer.h:250: note no known conversion for argument 3 from const uint8_t [7655] {aka const unsigned char [7655]} to AwsResponseFiller {aka std function}
Error compiling libraries

I use the VisualMicro extension for Visual Studio as my coding environment.
and I use ESPDash in my project which also requires ESPAsyncwebserver.

]]>