Library for DMX protocol

Discussion about Z-Uno product. Visit http://z-uno.z-wave.me for more details.
Post Reply
ericSV
Posts: 5
Joined: 06 Feb 2022 16:00

Library for DMX protocol

Post by ericSV »

Hi,

Is it possible to have a library for the DMX protocol, for used the Z-Uno with a MAX485 serial ?

Thank's
User avatar
PoltoS
Posts: 7565
Joined: 26 Jan 2011 19:36

Re: Library for DMX protocol

Post by PoltoS »

Yes, should be possible to port https://github.com/PaulStoffregen/DmxSimple on Z-Uno. The code is pretty small and should be easy to port. Feel free to contact us in case of questions. We can put it to our TODO queue, but it might take quite some time
ericSV
Posts: 5
Joined: 06 Feb 2022 16:00

Re: Library for DMX protocol

Post by ericSV »

Hi,

I've an error.


C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.57.0_x86__mdqgnx93n4wtt\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.57.0_x86__mdqgnx93n4wtt\hardware -hardware C:\Users\Eric\OneDrive\Documents\ArduinoData\packages -tools C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.57.0_x86__mdqgnx93n4wtt\tools-builder -tools C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.57.0_x86__mdqgnx93n4wtt\hardware\tools\avr -tools C:\Users\Eric\OneDrive\Documents\ArduinoData\packages -built-in-libraries C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.57.0_x86__mdqgnx93n4wtt\libraries -libraries C:\Users\Eric\Documents\Arduino\libraries -fqbn=Z-Uno2:zw_cm4f:zuno2:Frequency=Ru,TXPower=Normal,RFLogging=Off,CleanNVM=Off,UpdateLicense=On -ide-version=10819 -build-path C:\Users\Eric\AppData\Local\Temp\arduino_build_493334 -warnings=all -build-cache C:\Users\Eric\AppData\Local\Temp\arduino_cache_978436 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arm-none-eabi-gcc.path=C:\Users\Eric\OneDrive\Documents\ArduinoData\packages\Z-Uno2\tools\arm-none-eabi-gcc\7.2.4 -prefs=runtime.tools.arm-none-eabi-gcc-7.2.4.path=C:\Users\Eric\OneDrive\Documents\ArduinoData\packages\Z-Uno2\tools\arm-none-eabi-gcc\7.2.4 -prefs=runtime.tools.libClang.path=C:\Users\Eric\OneDrive\Documents\ArduinoData\packages\Z-Uno2\tools\libClang\11.0.1 -prefs=runtime.tools.libClang-11.0.1.path=C:\Users\Eric\OneDrive\Documents\ArduinoData\packages\Z-Uno2\tools\libClang\11.0.1 -prefs=runtime.tools.zme_make.path=C:\Users\Eric\OneDrive\Documents\ArduinoData\packages\Z-Uno2\tools\zme_make\0.4.1 -prefs=runtime.tools.zme_make-0.4.1.path=C:\Users\Eric\OneDrive\Documents\ArduinoData\packages\Z-Uno2\tools\zme_make\0.4.1 -verbose C:\Users\Eric\Documents\ARDUINO\libraries\DmxSimple-master\examples\FadeUp\FadeUp.ino
C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.57.0_x86__mdqgnx93n4wtt\arduino-builder -compile -logger=machine -hardware C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.57.0_x86__mdqgnx93n4wtt\hardware -hardware C:\Users\Eric\OneDrive\Documents\ArduinoData\packages -tools C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.57.0_x86__mdqgnx93n4wtt\tools-builder -tools C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.57.0_x86__mdqgnx93n4wtt\hardware\tools\avr -tools C:\Users\Eric\OneDrive\Documents\ArduinoData\packages -built-in-libraries C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.57.0_x86__mdqgnx93n4wtt\libraries -libraries C:\Users\Eric\Documents\Arduino\libraries -fqbn=Z-Uno2:zw_cm4f:zuno2:Frequency=Ru,TXPower=Normal,RFLogging=Off,CleanNVM=Off,UpdateLicense=On -ide-version=10819 -build-path C:\Users\Eric\AppData\Local\Temp\arduino_build_493334 -warnings=all -build-cache C:\Users\Eric\AppData\Local\Temp\arduino_cache_978436 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arm-none-eabi-gcc.path=C:\Users\Eric\OneDrive\Documents\ArduinoData\packages\Z-Uno2\tools\arm-none-eabi-gcc\7.2.4 -prefs=runtime.tools.arm-none-eabi-gcc-7.2.4.path=C:\Users\Eric\OneDrive\Documents\ArduinoData\packages\Z-Uno2\tools\arm-none-eabi-gcc\7.2.4 -prefs=runtime.tools.libClang.path=C:\Users\Eric\OneDrive\Documents\ArduinoData\packages\Z-Uno2\tools\libClang\11.0.1 -prefs=runtime.tools.libClang-11.0.1.path=C:\Users\Eric\OneDrive\Documents\ArduinoData\packages\Z-Uno2\tools\libClang\11.0.1 -prefs=runtime.tools.zme_make.path=C:\Users\Eric\OneDrive\Documents\ArduinoData\packages\Z-Uno2\tools\zme_make\0.4.1 -prefs=runtime.tools.zme_make-0.4.1.path=C:\Users\Eric\OneDrive\Documents\ArduinoData\packages\Z-Uno2\tools\zme_make\0.4.1 -verbose C:\Users\Eric\Documents\ARDUINO\libraries\DmxSimple-master\examples\FadeUp\FadeUp.ino
Using board 'zuno2' from platform in folder: C:\Users\Eric\OneDrive\Documents\ArduinoData\packages\Z-Uno2\hardware\zw_cm4f\3.0.10
Using core '/' from platform in folder: C:\Users\Eric\OneDrive\Documents\ArduinoData\packages\Z-Uno2\hardware\zw_cm4f\3.0.10
Detecting libraries used...
"C:\\Users\\Eric\\OneDrive\\Documents\\ArduinoData\\packages\\Z-Uno2\\tools\\zme_make\\0.4.1/zme_make" arduino_preproc "C:\\Users\\Eric\\AppData\\Local\\Temp\\arduino_build_493334\\sketch\\FadeUp.ino.cpp" "C:\\Users\\Eric\\OneDrive\\Documents\\ArduinoData\\packages\\Z-Uno2\\hardware\\zw_cm4f\\3.0.10/cores"
Found 1.8.x project structure (File:FadeUp.ino.cpp). Converting it...
INCREMENTAL PREPROC. The sketch is the same.
Generating function prototypes...
"C:\\Users\\Eric\\OneDrive\\Documents\\ArduinoData\\packages\\Z-Uno2\\tools\\zme_make\\0.4.1/zme_make" arduino_preproc "C:\\Users\\Eric\\AppData\\Local\\Temp\\arduino_build_493334\\sketch\\FadeUp.ino.cpp" "C:\\Users\\Eric\\OneDrive\\Documents\\ArduinoData\\packages\\Z-Uno2\\hardware\\zw_cm4f\\3.0.10/cores"
Found 1.8.x project structure (File:FadeUp.ino.cpp). Converting it...
INCREMENTAL PREPROC. The sketch is the same.
"C:\\Program Files\\WindowsApps\\ArduinoLLC.ArduinoIDE_1.8.57.0_x86__mdqgnx93n4wtt\\tools-builder\\ctags\\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\\Users\\Eric\\AppData\\Local\\Temp\\arduino_build_493334\\preproc\\ctags_target_for_gcc_minus_e.cpp"
Compilation du croquis...
"C:\\Users\\Eric\\OneDrive\\Documents\\ArduinoData\\packages\\Z-Uno2\\tools\\zme_make\\0.4.1/zme_make" build "C:\\Users\\Eric\\AppData\\Local\\Temp\\arduino_build_493334/FadeUp.ino" -S "C:\\Users\\Eric\\OneDrive\\Documents\\ArduinoData\\packages\\Z-Uno2\\hardware\\zw_cm4f\\3.0.10/cores" -S "C:\\Users\\Eric\\OneDrive\\Documents\\ArduinoData\\packages\\Z-Uno2\\hardware\\zw_cm4f\\3.0.10/libraries" -S "C:\\Users\\Eric\\OneDrive\\Documents\\ArduinoData\\packages\\Z-Uno2\\tools\\arm-none-eabi-gcc\\7.2.4/lib/gcc/arm-none-eabi/7.2.1/include" -B "C:\\Users\\Eric\\AppData\\Local\\Temp\\arduino_build_493334" -T "C:\\Users\\Eric\\OneDrive\\Documents\\ArduinoData\\packages\\Z-Uno2\\tools\\arm-none-eabi-gcc\\7.2.4/bin" -O arduino_ide -lcl "C:\\Users\\Eric\\OneDrive\\Documents\\ArduinoData\\packages\\Z-Uno2\\tools\\libClang\\11.0.1" -O BO:-DARDUINO=152 -O BO:-DARDUINO_ARCH_ZUNOG2 -O BO:-DZME_ZUNOG2 -O LO:-lm
***** Building sketch:C:\Users\Eric\AppData\Local\Temp\arduino_build_493334\FadeUp.ino *****
-----------------------------------------------------------------------------------------------
SOURCE LIST:['C:\\Users\\Eric\\AppData\\Local\\Temp\\arduino_build_493334\\', 'C:\\Users\\Eric\\AppData\\Local\\Temp\\arduino_build_493334\\core\\', 'C:\\Users\\Eric\\AppData\\Local\\Temp\\arduino_build_493334\\preproc\\', 'C:\\Users\\Eric\\AppData\\Local\\Temp\\arduino_build_493334\\sketch\\', 'C:\\Users\\Eric\\AppData\\Local\\Temp\\arduino_build_493334\\zuno_preproc\\', 'C:\\Users\\Eric\\AppData\\Local\\Temp\\arduino_build_493334\\sketch\\', 'C:\\Users\\Eric\\OneDrive\\Documents\\ArduinoData\\packages\\Z-Uno2\\hardware\\zw_cm4f\\3.0.10\\cores\\', 'C:\\Users\\Eric\\OneDrive\\Documents\\ArduinoData\\packages\\Z-Uno2\\hardware\\zw_cm4f\\3.0.10\\cores\\emlib\\', 'C:\\Users\\Eric\\OneDrive\\Documents\\ArduinoData\\packages\\Z-Uno2\\hardware\\zw_cm4f\\3.0.10\\cores\\includes\\', 'C:\\Users\\Eric\\OneDrive\\Documents\\ArduinoData\\packages\\Z-Uno2\\hardware\\zw_cm4f\\3.0.10\\cores\\libft\\', 'C:\\Users\\Eric\\OneDrive\\Documents\\ArduinoData\\packages\\Z-Uno2\\hardware\\zw_cm4f\\3.0.10\\cores\\LLCore\\', 'C:\\Users\\Eric\\OneDrive\\Documents\\ArduinoData\\packages\\Z-Uno2\\hardware\\zw_cm4f\\3.0.10\\cores\\ZWSupport\\', 'C:\\Users\\Eric\\OneDrive\\Documents\\ArduinoData\\packages\\Z-Uno2\\hardware\\zw_cm4f\\3.0.10\\libraries\\', 'C:\\Users\\Eric\\OneDrive\\Documents\\ArduinoData\\packages\\Z-Uno2\\hardware\\zw_cm4f\\3.0.10\\libraries\\DallasTemperature\\', 'C:\\Users\\Eric\\OneDrive\\Documents\\ArduinoData\\packages\\Z-Uno2\\hardware\\zw_cm4f\\3.0.10\\libraries\\DmxSimple-master\\', 'C:\\Users\\Eric\\OneDrive\\Documents\\ArduinoData\\packages\\Z-Uno2\\hardware\\zw_cm4f\\3.0.10\\libraries\\Ds1307Rtc\\', 'C:\\Users\\Eric\\OneDrive\\Documents\\ArduinoData\\packages\\Z-Uno2\\hardware\\zw_cm4f\\3.0.10\\libraries\\ModBusRtu\\', 'C:\\Users\\Eric\\OneDrive\\Documents\\ArduinoData\\packages\\Z-Uno2\\hardware\\zw_cm4f\\3.0.10\\libraries\\PN7150\\', 'C:\\Users\\Eric\\OneDrive\\Documents\\ArduinoData\\packages\\Z-Uno2\\hardware\\zw_cm4f\\3.0.10\\libraries\\PN7160\\', 'C:\\Users\\Eric\\OneDrive\\Documents\\ArduinoData\\packages\\Z-Uno2\\hardware\\zw_cm4f\\3.0.10\\libraries\\RF24\\', 'C:\\Users\\Eric\\OneDrive\\Documents\\ArduinoData\\packages\\Z-Uno2\\hardware\\zw_cm4f\\3.0.10\\libraries\\SpiFlash\\', 'C:\\Users\\Eric\\OneDrive\\Documents\\ArduinoData\\packages\\Z-Uno2\\hardware\\zw_cm4f\\3.0.10\\libraries\\Z-Uno-2G\\', 'C:\\Users\\Eric\\OneDrive\\Documents\\ArduinoData\\packages\\Z-Uno2\\hardware\\zw_cm4f\\3.0.10\\libraries\\ZUNO_AM2320\\', 'C:\\Users\\Eric\\OneDrive\\Documents\\ArduinoData\\packages\\Z-Uno2\\hardware\\zw_cm4f\\3.0.10\\libraries\\ZUNO_BMP180\\', 'C:\\Users\\Eric\\OneDrive\\Documents\\ArduinoData\\packages\\Z-Uno2\\hardware\\zw_cm4f\\3.0.10\\libraries\\ZUNO_BMP280\\', 'C:\\Users\\Eric\\OneDrive\\Documents\\ArduinoData\\packages\\Z-Uno2\\hardware\\zw_cm4f\\3.0.10\\libraries\\ZUNO_Buttons\\', 'C:\\Users\\Eric\\OneDrive\\Documents\\ArduinoData\\packages\\Z-Uno2\\hardware\\zw_cm4f\\3.0.10\\libraries\\ZUNO_CCS811\\', 'C:\\Users\\Eric\\OneDrive\\Documents\\ArduinoData\\packages\\Z-Uno2\\hardware\\zw_cm4f\\3.0.10\\libraries\\ZUNO_DAC102S085\\', 'C:\\Users\\Eric\\OneDrive\\Documents\\ArduinoData\\packages\\Z-Uno2\\hardware\\zw_cm4f\\3.0.10\\libraries\\ZUNO_DHTlib\\', 'C:\\Users\\Eric\\OneDrive\\Documents\\ArduinoData\\packages\\Z-Uno2\\hardware\\zw_cm4f\\3.0.10\\libraries\\ZUNO_DS18B20\\', 'C:\\Users\\Eric\\OneDrive\\Documents\\ArduinoData\\packages\\Z-Uno2\\hardware\\zw_cm4f\\3.0.10\\libraries\\ZUNO_FRAM\\', 'C:\\Users\\Eric\\OneDrive\\Documents\\ArduinoData\\packages\\Z-Uno2\\hardware\\zw_cm4f\\3.0.10\\libraries\\ZUNO_GFX\\', 'C:\\Users\\Eric\\OneDrive\\Documents\\ArduinoData\\packages\\Z-Uno2\\hardware\\zw_cm4f\\3.0.10\\libraries\\ZUNO_HDC1080\\', 'C:\\Users\\Eric\\OneDrive\\Documents\\ArduinoData\\packages\\Z-Uno2\\hardware\\zw_cm4f\\3.0.10\\libraries\\ZUNO_LCD\\', 'C:\\Users\\Eric\\OneDrive\\Documents\\ArduinoData\\packages\\Z-Uno2\\hardware\\zw_cm4f\\3.0.10\\libraries\\ZUNO_LEDS\\', 'C:\\Users\\Eric\\OneDrive\\Documents\\ArduinoData\\packages\\Z-Uno2\\hardware\\zw_cm4f\\3.0.10\\libraries\\ZUNO_MCP23XS17\\', 'C:\\Users\\Eric\\OneDrive\\Documents\\ArduinoData\\packages\\Z-Uno2\\hardware\\zw_cm4f\\3.0.10\\libraries\\ZUNO_MERCURY206R\\', 'C:\\Users\\Eric\\OneDrive\\Documents\\ArduinoData\\packages\\Z-Uno2\\hardware\\zw_cm4f\\3.0.10\\libraries\\ZUNO_ModBus\\', 'C:\\Users\\Eric\\OneDrive\\Documents\\ArduinoData\\packages\\Z-Uno2\\hardware\\zw_cm4f\\3.0.10\\libraries\\ZUNO_NeoPixel\\', 'C:\\Users\\Eric\\OneDrive\\Documents\\ArduinoData\\packages\\Z-Uno2\\hardware\\zw_cm4f\\3.0.10\\libraries\\ZUNO_Neptun\\', 'C:\\Users\\Eric\\OneDrive\\Documents\\ArduinoData\\packages\\Z-Uno2\\hardware\\zw_cm4f\\3.0.10\\libraries\\ZUNO_OneWire\\', 'C:\\Users\\Eric\\OneDrive\\Documents\\ArduinoData\\packages\\Z-Uno2\\hardware\\zw_cm4f\\3.0.10\\libraries\\ZUNO_SGP30\\', 'C:\\Users\\Eric\\OneDrive\\Documents\\ArduinoData\\packages\\Z-Uno2\\hardware\\zw_cm4f\\3.0.10\\libraries\\ZUNO_SHIELD\\', 'C:\\Users\\Eric\\OneDrive\\Documents\\ArduinoData\\packages\\Z-Uno2\\hardware\\zw_cm4f\\3.0.10\\libraries\\ZUNO_SOMFY\\', 'C:\\Users\\Eric\\OneDrive\\Documents\\ArduinoData\\packages\\Z-Uno2\\hardware\\zw_cm4f\\3.0.10\\libraries\\ZUNO_U8G2\\', 'C:\\Users\\Eric\\OneDrive\\Documents\\ArduinoData\\packages\\Z-Uno2\\tools\\arm-none-eabi-gcc\\7.2.4\\lib\\gcc\\arm-none-eabi\\7.2.1\\include\\']
preprocessing "FadeUp.ino" .............................. OK
Core version: 03.10 Channels:0
Gathering project files .............................. OK
C:\Users\Eric\OneDrive\Documents\ArduinoData\packages\Z-Uno2\hardware\zw_cm4f\3.0.10\libraries\DmxSimple-master\DmxSimple.cpp:7:10: fatal error: avr/io.h: No such file or directory

#include <avr/io.h>
^~~~~~~~~~
compilation terminated.


exit status 10
C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.57.0_x86__mdqgnx93n4wtt\arduino-builder a retourné 10
Erreur de compilation pour la carte Z-Wave>ME Z-Uno2



Can you help me ?

Thank's
User avatar
PoltoS
Posts: 7565
Joined: 26 Jan 2011 19:36

Re: Library for DMX protocol

Post by PoltoS »

You have to remove avr/io.h include file from sources and then check what was imported from that file to replace it with Z-Uno specific or your custom contrants.
Post Reply