|
@ -54,7 +54,8 @@ void loop() |
|
|
for(int i=0; i<=9; i++) { |
|
|
for(int i=0; i<=9; i++) { |
|
|
if (keyboard.getTouchDetected(i) == true) { |
|
|
if (keyboard.getTouchDetected(i) == true) { |
|
|
touched = true; |
|
|
touched = true; |
|
|
Serial.println("touch"); |
|
|
Serial.print("touch "); |
|
|
|
|
|
Serial.println(i, DEC); |
|
|
if (sound.playing == false) { |
|
|
if (sound.playing == false) { |
|
|
Serial.println("new task"); |
|
|
Serial.println("new task"); |
|
|
xTaskCreate(&(Sound::buffer_refill_task), "buffer_refill_task", 4096, (void*)soundFile[i/3][i%3], 5, &xTaskSound); |
|
|
xTaskCreate(&(Sound::buffer_refill_task), "buffer_refill_task", 4096, (void*)soundFile[i/3][i%3], 5, &xTaskSound); |
|
|