Browse Source

fix numeric keys

develop
Leandro Estrella rPi 6 years ago
parent
commit
d602a66c4e
  1. 2
      ephimera/ephimera.pde

2
ephimera/ephimera.pde

@ -73,7 +73,7 @@ void keyPressed() {
sendMessage(C_TAG, colorByteValues); sendMessage(C_TAG, colorByteValues);
} }
if (key == '1' || key == '2' || key == 3 || key == 4 || key == 5 || key == 6 || key == 7 || key == 8) {
if (key == '1' || key == '2' || key == '3' || key == '4' || key == '5' || key == '6' || key == '7' || key == '8') {
for(int i = 0; i<colorsN; i++) { for(int i = 0; i<colorsN; i++) {
colorByteValues[i] = (int(key)-49) == i ? byte(100) : 0; colorByteValues[i] = (int(key)-49) == i ? byte(100) : 0;
print(colorByteValues[i] + "\t"); print(colorByteValues[i] + "\t");

Loading…
Cancel
Save