LED-Matrix - Interrupt equalizer for a single command
hey all!
currently working on small led-matrix , working way want.
i start processing sketch analyzes music playing on computer , sends data nonstop led-panel.
something similar this:
my processing sketch sends 7 bytes arduino every cycle (for example: 1202014)
the arduino receives bytes code:
this working far.
but want able change color while animation running.
how can make sure these commands won't mix up?
i want send "c255000100" (color,r,g,b) arduino.
any ideas?
thanks
currently working on small led-matrix , working way want.
i start processing sketch analyzes music playing on computer , sends data nonstop led-panel.
something similar this:
my processing sketch sends 7 bytes arduino every cycle (for example: 1202014)
the arduino receives bytes code:
code: [select]
void readserial(){
if (serial.available() > 6) {
bar1 = serial.read()-48;
bar2 = serial.read()-48;
bar3 = serial.read()-48;
bar4 = serial.read()-48;
bar5 = serial.read()-48;
bar6 = serial.read()-48;
bar7 = serial.read()-48;
}
}
this working far.
but want able change color while animation running.
how can make sure these commands won't mix up?
i want send "c255000100" (color,r,g,b) arduino.
any ideas?
thanks
you have establish protocol. define commands display update, color change , every other action want arduino execute. commands can single characters (fast) or complete words (better human readable), decide. make more robust, define start character , end character complete message.
Arduino Forum > Using Arduino > Programming Questions > LED-Matrix - Interrupt equalizer for a single command
arduino
Comments
Post a Comment