ESP32 not working, giving out gibberish after connected. #7508
Replies: 1 comment
-
Posted at 2025-01-11 by @MaBecker change baud rate to 115200 Posted at 2025-01-11 by tabanopro I'm new, how do I do it in the ide? When I flashed the firmware the band rate is set to that. Posted at 2025-01-11 by @MaBecker click the gear and select communications Attachments: Posted at 2025-01-11 by tabanopro Thank you, that did work but I am getting this now in the console. Attachments: Posted at 2025-01-12 by @MaBecker use this to flash your board https://forum.espruino.com/conversations/401440/#comment17610998 Posted at 2025-01-12 by tabanopro Thank you, it worked. Why aren't some modules recognized such as ST7789.js or Graphics Attachments: Posted at 2025-01-12 by tabanopro thanks Posted at 2025-01-13 by @MaBecker please check the module page https://www.espruino.com/Modules Posted at 2025-01-13 by @MaBecker there is a page explaining howto connect an ST7789 display https://www.espruino.com/ST7789 Posted at 2025-01-13 by @MaBecker btw which board do you use? Posted at 2025-01-13 by tabanopro I use esp32? apparently the module is found in my phone but not in my pc. Posted at 2025-01-13 by @enaon in order for the module to be available, the webIde does some background magic, it auto downloads the module from github and sends it to the device, if you upload some code that uses it. You cannot just connect to a "fresh" device from the web ide and do a "require("ST7789")" on the left side, the module will not be found. place some code on the right hand side that calls "require("ST7789")" , then upload to ram, then you can use the "require("ST7789")" on the left hand side, the webIde will auto download the module for you. for example, you can type
on the right hand side, and then upload this to a file named "test" in the flash using the webIde's "send to espruino" button. Then, using the disk button on the webIde, you can view the "test" file you just uploaded, and you will notice that it also includes the module. So, if you later reset(); and call this file from the left hand side,
the module "ST7789" will be available on the left hand side, without the need for the loader to download it again for you. Posted at 2025-01-13 by @fanoush
That's a builtin class, not module https://www.espruino.com/Reference#Graphics Posted at 2025-01-13 by @gfwilliams
Do you remember where you found that code? As @fanoush says it's not a module so you don't need Posted at 2025-01-13 by tabanopro Hello, I managed to get it to work on the web ide using Bluetooth. Now it gives this out. Attachments: Posted at 2025-01-14 by @gfwilliams We'd need to see what code you're using. It almost looks like you might be trying to use a library meant for something else Posted at 2025-01-19 by tabanopro sorry for slow response, here is the code:
Posted at 2025-01-20 by @gfwilliams Where did you get this code from? It appears not to match what you're supposed to do for ST7789: https://www.espruino.com/ST7789 The module expects the pins used in a line, eg:
but you've specified them in an object: Posted at 2025-02-01 by tabanopro sorry for later reply, I got this code from chat gpt because I have no knowledge in espurino, I do know javascript Posted at 2025-02-03 by @gfwilliams Ok - maybe just look at https://www.espruino.com/ST7789 and work from there. It seems Espruino is working fine - ChatGPT won't always give you the correct code |
Beta Was this translation helpful? Give feedback.
-
Posted at 2025-01-10 by tabanopro
Hello, I received my esp 32 a few days ago. I flashed the firmware to the espruino firmware using esptools.py. I connected it to the espurino web ide, it started giving out random characters, and there was a message that said No response from the board.
The console looks like this in the picture.
Attachments:
Beta Was this translation helpful? Give feedback.
All reactions