Comments (7)
I've pushed some code to the dev
branch that builds on Arduino! Woohoo! You can clone that branch and copy the folder into your libraries
folder in your Arduino directory, and that should allow you to #include "esp_dmx.h"
.
I am doubtful that the keyword highlighting will work, but I am making progress. I am not thrilled with the fixes I made in the last commit; I'm still trying to figure out how the ESP32 Arduino core works in the grand scheme of things so I am sure that there are better ways to do what I did. For now, this code will work on ESP32, but it can likely break on ESP32-S2 or ESP32-C3. If you use the latter, let me know and I can push a hotfix so that you will be able to play with this library.
No word on Platform.IO yet. That will probably be much, much later.
from esp_dmx.
Thanks for the question! I am working on implementing this repo on Arduino. I haven't done much work in a while because life has gotten in the way a bit, but the Arduino implementation is close. I will hopefully have some free time coming up soon and I'll see where I get with it.
I can add a Platform.IO implementation as well, but I will have to do some research to figure out what that entails. I not very up to date on how PIO works. I'll keep you updated!
from esp_dmx.
Hi, thanks for your answer. No need to rush or stress yourself :) I am currently using a modified LXESP32DMX to work with uart1, but this library needs to patch a core file for receiving to work, which is nothing I can do easily, so I am using it only for transmitting. For now. I will switch definetly in the near future.
I would offer you my help, but I have no clue about esp-idf though.
from esp_dmx.
Highlighting works now! Turns out I had to use a single tab instead of spaces in my keywords.txt
file. Whoops!
from esp_dmx.
The latest commit did some reorganizing. In /examples
I've renamed all the example files. The example files for ESP-IDF code are now prefixed with idf_
. I'm not sure if I love that formatting so it may change in the future.
I've also added some Arduino DMX read example code!
Finally, I found an interesting bug in the previous code. Whenever you called dmx_driver_delete()
the ESP32 would attempt to free the heap-allocated double-buffer. It would then detect a corrupted heap and would crash. I couldn't find any other solutions online, but what I found is that when the size of the DMX double-buffer is divisible by 4, the problem goes away. I suspect what is happening is that the Arduino implementation of ESP32's malloc()
function only allows you to allocate 32-bit aligned memory as if calling heap_caps_malloc(size, MALLOC_CAP_32BIT)
in ESP-IDF. Long story short, only allocate memory by factors of 4 on ESP32 Arduino!
from esp_dmx.
Another update: I've finished adding example code for Arduino! I'm going to style those examples so that they better fit the Arduino example sketch style guide, but they work now as is.
I found that Arduino-ESP32 v1.0.6 and earlier don't support the newest ESP32 chipsets. Arduino-ESP32 v2.0.0 was JUST released less than two weeks ago, and it does support the S2 and the C3. For the sake of inclusion, I'm going to support Arduino-ESP32 v2.0.0 and up only. If you want to use Arduino v1.0.6, I've created a branch called arduino-v1.0.6
but I'm not planning on updating it in the future.
from esp_dmx.
I've officially ported this library to Arduino. It's available in the Arduino IDE library manager and the example code is working. So I am going to close this issue.
I'm still looking into Platform.IO. It looks simple enough, but that will be another release! Let me know if you have any other questions. :)
from esp_dmx.
Related Issues (20)
- dmx timing HOT 1
- dmx_receive blocking HOT 6
- Sending broken - single frame only HOT 4
- [question] Not Receiving data, wrong pinout, or incompatible module? HOT 10
- DMX512 HOT 9
- Single Core Issues? HOT 2
- Cant receive DMX : timer is not running (esp-idf v5.0.2) HOT 4
- Adding WiFi and ArtNet capability HOT 12
- Wont Work HOT 1
- compile example DMXwrite.ino failed HOT 2
- Compiling Error missing Files HOT 2
- agent.h - error: C99 designator 'software_version_label' outside aggregate initializer HOT 2
- Can't get the Read Example to work on ESP32 Arduino in PlatformIO HOT 3
- ESP_DMX on ESP32-S2 HOT 6
- esp_dmx on ESP-IDF 5.1 not work? HOT 3
- Threadsafe-ness of this library HOT 2
- General Question About Wireless Audio Transmitting HOT 3
- Commit f148f7b (fix idf v5 timer error) breaks dmx_receive and rdm HOT 8
- Calling dmx_receive with wait_ticks=0 does never return data HOT 4
- ESP32-C6 incompatibility HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esp_dmx.