ESP32 fatal error: Arduino.h (Led Matrix 64x64) #7394
Replies: 1 comment
-
Posted at 2020-03-07 by Robin Sat 2020.03.07 Hello Jonas @user110079 and thank you for your interest in Espruino! As it appears this is more of a build issue, wouldn't a title like:
steer a more appropriate crowd? A simple title edit may draw a more specialized respondant. There are a few projects with minor modifications that may do what you need, without the overhead of the path currently on. Have these links been checked out?
Posted at 2020-03-08 by Jonaswinz Yes you are right with the headline. I also checked out this projects bevor. You can drive this led matrixes directly by the board (each led individually). I have a 64x64 matix (4.096 leds) with a hub75e interface ! I could write my own driver for this type of ledmatrix, but I first want to try to use an existing library like smartmatrix (https://github.com/pixelmatix/SmartMatrix/). Posted at 2020-03-08 by @allObjects Did a quick glancing over related post/clip at https://www.youtube.com/watch?v=bu308tAqyIw @Jonaswinz, I'm now curious what role Espruino plays in that scenario? With all these scanning drivers, flickering or smooth, continuous change are the issues, because you have to feed the data between scan lines have to be put out. ESP32 w/ dual processor helps if you can control the behavior regarding timing between the participating processes or tasks or what ever you may call them. Espruino has a Graphics class with which you can create content into a buffer. From that buffer you have to get the data out onto he panel. This Graphics (reference link) class is implemented natively - in the Espruino firmware in C - to secure speed, and has many options on creation to store the data suitable for simple pumping out. You might get away with a simple, low lever, data pump in assembler / C that you drive on a timer to have a nice running of the display, similar to something I did for reading out the data of such a buffer and feed into neopixel strings of a particular arrangement: Efficiently moving things around in zig-zag Graphics buffer visualized w/ 24/32 bpp displays / neopixel strings. You may not even need to do a specific build... using an Espruino board. Using an ESP32, you most likely need to do something for compiling the inline c compiling for the upload before the upload for the application that you write in JavaScript. Posted at 2020-03-08 by Jonaswinz Yes, you are right! I use Espruino for all other functions. At the moment I face the problem, that I need the Arduino.h file for the library to work. I fixed the conflicting types error by using the arduino-esp32 builder. But I think, I am not doing It right.
Where do I have to include the Arduino Drivers? I used this tutorial:
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-03-07 by Jonaswinz
Hello,
I want to drive a 64×64 Ledmatrix (hub75e) with my esp32 via Espruino. Previously I used the smartmatrix library with arduino code.
After some research I found no included function, or library to drive my display with Espruino. The article about writing my own C extension kept me thinking about a wrapper for the smartmatrix library. Finally, I successfully added my own module into the Espruino code.
But here is my problem: The smartmatrix library needs the Arduino.h file to work property. There is a tutorial to include the Arduino driver (https://github.com/espruino/Espruino/tree/master/targets/esp32), but the build failures.
My error is: “error: conflicting types for random”. I tried to change some versions (espressif/arduino-esp32#3201), but this generated more errors (maybe I did it wrong).
ESP Template:
Toolchain version: esp-2019r2
Compiler version 8.2.0
I would appreciate some help.
Jonas
Beta Was this translation helpful? Give feedback.
All reactions