You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
596B

  1. #include "Audio.h"
  2. // TODO: this needs some sort of trigger or delay or other options to make
  3. // actually useful for watching interesting parts of data, without spewing
  4. // tremendous and endless data to the Arduino Serial Monitor
  5. void AudioPrint::update(void)
  6. {
  7. audio_block_t *block;
  8. uint32_t i;
  9. Serial.println("AudioPrint::update");
  10. Serial.println(name);
  11. block = receiveReadOnly();
  12. if (block) {
  13. for (i=0; i < AUDIO_BLOCK_SAMPLES; i++) {
  14. Serial.print(block->data[i]);
  15. Serial.print(", ");
  16. if ((i % 12) == 11) Serial.println();
  17. }
  18. Serial.println();
  19. release(block);
  20. }
  21. }