Go Down

Topic: Scheduling DMX events (Read 2065 times) previous topic - next topic

Jonnym

Hi Jack,   

when i get back i'm going to get one of those shields you have... they look neat. until then, here is some pseudo code, let me know if you come up with anything.

Code: [Select]

//includes
//defines

int i //file size keeper

setup
filesize = get file size


loop
for (int i=0; i<filesize; i++){

file open for first channel
file position i
dmx value = file read at position i
dmx out
file close

file open for second channel
file position i
dmx value = file read at position i
dmx out
file close

}

//what is needed to start / check sd communication?
//serial library needed?
//need to strip out extra characters being read from the file?
//output back to serial monitor to verify?


Go Up