Pages: 1 [2]   Go Down
Author Topic: Scheduling DMX events  (Read 1906 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Jr. Member
**
Karma: 1
Posts: 74
...blowing up boards one connection at a time
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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:
//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?

Logged

Pages: 1 [2]   Go Up
Jump to: