Paul,
I just tested the above new DmxSimple library with
our new DMX/RDM Breakoutboard/Shield and the Teensy2. It works!! I will post a video to this thread in the morning showing it in action with a test RGB wash light. Here are some questions and then some observations about my journey....
Questions:
Q1) I was checking to see what pin to solder the wire to for the RS-485 transceiver TX pin... I am definitely used to picking the UART TX and RX pins, for instance TXD1=PD3=ArduinoPin8.... but in this case I notice that the choice of TX pin is software selectable. Is there any advantage (better performance) to using the true TX UART pin instead of some random software assigned pin? Note, I am soldering the following...
TXD1=PD3=ArduinoPin8 for TX
RXD1=PD2=ArduinoPin7 for RX (I know this isnt used in the DmxSimple, but I am getting ready for RDM, which is the bidirectional extension of DMX.)
EnableTX=PC6=ArduinoPin9 (this is for controlling the RS-485 transceiver half duplex direction....High is TX, low is RX...for DmxSimple we keep it high).
Q2) Stupid software question... if the Arduino Sketch calls this out "#include <DmxSimple.h>", then how and where, when you build it, does it know to use the actual "DmxSimple.cpp" file? There is no reference to the .cpp file anywhere unless it is handled behind the scenes with the "Add Library...". I am just confused as to how it knows which library to use when you have an old and a new library installed. Sorry for the newbie software question.
Observations:
1) I just updated to Arduino v1.0.5. Installing Teensyduino v1.15 on OSX, the installer offers to install the DMX simple library for me. The note says "Control DMX Lighting. Only works on Teensy++. Written by Peter Knight." I was thinking the newest DMXsimple library should be there, but maybe not yet. As a result I will watch them closely to confirm which version I am using. I will install "all" libraries for now and then sort it out after....DONE.
2) No new libraries appeared in /Users/VoltVision/Documents/Arduino/libraries, so they must have been put somewhere else (not sure where yet). They dont show up in a search.
3) I just downloaded the above DmxSimple.new.zip library. It unzips as a folder called "DmxSimple". I want it to be distinctly different from the old versions, so I am renaming all of my 3 old DmxSimple libraries to:
/Users/VoltVision/Documents/Arduino/libraries/DmxSimple1 (old one from a few years ago)
/Users/VoltVision/Documents/Arduino/libraries/DmxSimple2 (old one from a while ago).
/Users/VoltVision/Documents/Arduino/libraries/DmxSimple3 (the new one from today).
4) I then opened this example...
/Users/VoltVision/Documents/Arduino/libraries/DmxSimple3/examples/FadeUp
The software uses this line #include <DmxSimple.h>, so I get nervous whether it will use the new library or the old library, so I do Sketch->Import Library->Add Library...
Then I choose the this folder...
/Users/VoltVision/Documents/Arduino/libraries/DmxSimple3
When I build, the Good News is that I see several lines similar to this...
-I/Users/VoltVision/Documents/Arduino/libraries/DmxSimple3/utility /Users/VoltVision/Documents/Arduino/libraries/DmxSimple3/DmxSimple.cpp -o /var/folders/AK/AKPG9Ls0EOiFCs-CiIDC5E+++TI/-Tmp-/build6312543886093896398.tmp/DmxSimple3/DmxSimple.cpp.o
...this means it is using the new Library!!! (I think)...
Let me know if I did anything wrong. Next I should probably use a different ramp/color generation program to test how smooth the fades are, especially at the low levels. Also, I can test Teensy3 at some point soon.
--
Respectfully,
Steve French
800.664.7256.office
President, Volt Vision
www.voltvision.com