Search code examples
arduinodmx512

Reading bytes from Arduino SD Card to DMX Lighting


Anyone have reco's on where I'm going wrong extracting data from a text file (SD) and sending along DMX? The code works for the P9813 portion and the DMX works in general but not the SD data.

Pastebin Code Here

I believe my issue is at line 68. I think this is reading too many values. IE currentColor is storing 5 values (5 lights) vs 1 Hex or 3xR/G/B.

The values in the SD for consideration are..."727a 6276 3030 ...". I believe these bytes should be each DMX channels PWM value, no?

Thanks


Solution

  • Thanks with your help everything is now working.

    Here's the result: http://pastebin.com/wHAT6dZB