fiduciary

Author Topic: Announcing the Teensy Saber open source sound board  (Read 91576 times)

0 Members and 1 Guest are viewing this topic.

Offline wingsaber

  • No Force
  • *
  • Posts: 8
  • Um...Hello?
Re: Announcing the Teensy Saber open source sound board
« Reply #420 on: February 20, 2018, 11:25:02 AM »
Hi, I  don't know if it is the right place to write this question. I'm trying to figure it out the code and I'm using apa102 60 led strip but couldn't make it work at all and when I change from config it gives an error. Also, I'm not going to use sd card and I commented out but after that, it gives error too. When I upload without changing anything V1 ( it is what I use) it says bank failure and low battery. I used some code that I found on youtube it is not great but worked without sound. I don't know What I'm doing wrong in these codes.

Offline profezzorn

  • Mining Colony Members
  • Master Force User
  • *
  • Posts: 901
  • May the source be with you.
    • Hubbe's Corner
Re: Announcing the Teensy Saber open source sound board
« Reply #421 on: February 20, 2018, 11:38:17 AM »
Hi, I  don't know if it is the right place to write this question. I'm trying to figure it out the code and I'm using apa102 60 led strip but couldn't make it work at all and when I change from config it gives an error. Also, I'm not going to use sd card and I commented out but after that, it gives error too. When I upload without changing anything V1 ( it is what I use) it says bank failure and low battery. I used some code that I found on youtube it is not great but worked without sound. I don't know What I'm doing wrong in these codes.

It's as good a place as any, some questions:

1. What version of teensysaber are you using?
2. What error do you get without ENABLE_SD?
3. APA102 is needs the fastled blade, which is not very well tested. (Is that what you're using?)
4. If you're not using SD, I assume you're using serialflash, correct?

Also, it will be easier to help if you explain a little better what hardware you have, how it's hooked up and exactly what your teensysaber config file looks like.

Offline wingsaber

  • No Force
  • *
  • Posts: 8
  • Um...Hello?
Re: Announcing the Teensy Saber open source sound board
« Reply #422 on: February 20, 2018, 12:37:23 PM »
it is 1.224 I downloaded today. I guess it is last version.

I tried 30 min. ago and it didnt give error but still keep saying low power. İt connected to the battery and also pc from usb. This one before I enabled Fastled. I just wanted to try.

Yes. I enabled FastLED in the graflex_v1 and try to upload but it gives this error.

In file included from C:\Users\Murat\Downloads\lightsaber-1.224 (1)\lightsaber\lightsaber.ino:1113:0:

C:\Users\Murat\AppData\Local\Temp\arduino_build_627516\sketch\styles/pov.h: In member function 'virtual void StylePOV::run(BladeBase*)':

C:\Users\Murat\AppData\Local\Temp\arduino_build_627516\sketch\styles/pov.h:95:32: error: 'MonopodWS2811' has not been declared

       memset((unsigned char *)&MonopodWS2811::drawBuffer,

                                ^

C:\Users\Murat\AppData\Local\Temp\arduino_build_627516\sketch\styles/pov.h:102:35: error: 'MonopodWS2811' has not been declared

                 (unsigned char *)&MonopodWS2811::drawBuffer,

                                   ^

C:\Users\Murat\AppData\Local\Temp\arduino_build_627516\sketch\styles/pov.h:107:10: error: 'MonopodWS2811' has not been declared

          MonopodWS2811::drawBuffer =

          ^

C:\Users\Murat\AppData\Local\Temp\arduino_build_627516\sketch\styles/pov.h:108:12: error: 'MonopodWS2811' has not been declared

            MonopodWS2811::drawBuffer[i * maxLedsPerStrip / num_leds];

            ^

In file included from C:\Users\Murat\AppData\Local\Temp\arduino_build_627516\sketch\blades/fastled_blade.h:6:0,

                 from C:\Users\Murat\Downloads\lightsaber-1.224 (1)\lightsaber\lightsaber.ino:1231:

C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\FastLED/FastLED.h: At global scope:

C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\FastLED/FastLED.h:17:21: note: #pragma message: FastLED version 3.001.008

 #    pragma message "FastLED version 3.001.008"

                     ^

In file included from C:\Users\Murat\Downloads\lightsaber-1.224 (1)\lightsaber\lightsaber.ino:1231:0:

C:\Users\Murat\AppData\Local\Temp\arduino_build_627516\sketch\blades/fastled_blade.h:71:21: error: 'Color' has not been declared

   void set(int led, Color c) override {

                     ^

Error compiling for board Teensy 3.2 / 3.1.

and Yes I will use serialflash.

thanks for the answer.
« Last Edit: February 20, 2018, 12:52:18 PM by wingsaber »

Offline profezzorn

  • Mining Colony Members
  • Master Force User
  • *
  • Posts: 901
  • May the source be with you.
    • Hubbe's Corner
Re: Announcing the Teensy Saber open source sound board
« Reply #423 on: February 20, 2018, 01:37:16 PM »
it is 1.224 I downloaded today. I guess it is last version.

I tried 30 min. ago and it didnt give error but still keep saying low power. İt connected to the battery and also pc from usb. This one before I enabled Fastled. I just wanted to try.

Yes. I enabled FastLED in the graflex_v1 and try to upload but it gives this error.

In file included from C:\Users\Murat\Downloads\lightsaber-1.224 (1)\lightsaber\lightsaber.ino:1113:0:

C:\Users\Murat\AppData\Local\Temp\arduino_build_627516\sketch\styles/pov.h: In member function 'virtual void StylePOV::run(BladeBase*)':

C:\Users\Murat\AppData\Local\Temp\arduino_build_627516\sketch\styles/pov.h:95:32: error: 'MonopodWS2811' has not been declared

       memset((unsigned char *)&MonopodWS2811::drawBuffer,

                                ^

C:\Users\Murat\AppData\Local\Temp\arduino_build_627516\sketch\styles/pov.h:102:35: error: 'MonopodWS2811' has not been declared

                 (unsigned char *)&MonopodWS2811::drawBuffer,

                                   ^

C:\Users\Murat\AppData\Local\Temp\arduino_build_627516\sketch\styles/pov.h:107:10: error: 'MonopodWS2811' has not been declared

          MonopodWS2811::drawBuffer =

          ^

C:\Users\Murat\AppData\Local\Temp\arduino_build_627516\sketch\styles/pov.h:108:12: error: 'MonopodWS2811' has not been declared

            MonopodWS2811::drawBuffer[i * maxLedsPerStrip / num_leds];

            ^

In file included from C:\Users\Murat\AppData\Local\Temp\arduino_build_627516\sketch\blades/fastled_blade.h:6:0,

                 from C:\Users\Murat\Downloads\lightsaber-1.224 (1)\lightsaber\lightsaber.ino:1231:

C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\FastLED/FastLED.h: At global scope:

C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\FastLED/FastLED.h:17:21: note: #pragma message: FastLED version 3.001.008

 #    pragma message "FastLED version 3.001.008"

                     ^

In file included from C:\Users\Murat\Downloads\lightsaber-1.224 (1)\lightsaber\lightsaber.ino:1231:0:

C:\Users\Murat\AppData\Local\Temp\arduino_build_627516\sketch\blades/fastled_blade.h:71:21: error: 'Color' has not been declared

   void set(int led, Color c) override {

                     ^

Error compiling for board Teensy 3.2 / 3.1.

and Yes I will use serialflash.

thanks for the answer.

Do you have ENABLE_WS2811 on as well?
Looks like it might need it.
If that doesn't help, I can try to provide a new beta later today.

Offline wingsaber

  • No Force
  • *
  • Posts: 8
  • Um...Hello?
Re: Announcing the Teensy Saber open source sound board
« Reply #424 on: February 20, 2018, 01:48:43 PM »
it is 1.224 I downloaded today. I guess it is last version.

I tried 30 min. ago and it didnt give error but still keep saying low power. İt connected to the battery and also pc from usb. This one before I enabled Fastled. I just wanted to try.

Yes. I enabled FastLED in the graflex_v1 and try to upload but it gives this error.



Do you have ENABLE_WS2811 on as well?
Looks like it might need it.
If that doesn't help, I can try to provide a new beta later today.

I was going to update my message. Yes I looked normal files and it should be enabled too but after it gives error again. it starts with pragma message like I copied before and all after is kinda same. I appreciate it thank you.

In file included from C:\Users\Murat\AppData\Local\Temp\arduino_build_627516\sketch\blades/fastled_blade.h:6:0,

                 from C:\Users\Murat\Downloads\lightsaber-1.224 (1)\lightsaber\lightsaber.ino:1231:

C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\FastLED/FastLED.h:17:21: note: #pragma message: FastLED version 3.001.008

 #    pragma message "FastLED version 3.001.008"

                     ^

In file included from C:\Users\Murat\Downloads\lightsaber-1.224 (1)\lightsaber\lightsaber.ino:1231:0:

C:\Users\Murat\AppData\Local\Temp\arduino_build_627516\sketch\blades/fastled_blade.h:71:21: error: 'Color' has not been declared

   void set(int led, Color c) override {

                     ^

Error compiling for board Teensy 3.2 / 3.1.
« Last Edit: February 20, 2018, 02:21:03 PM by wingsaber »

Offline profezzorn

  • Mining Colony Members
  • Master Force User
  • *
  • Posts: 901
  • May the source be with you.
    • Hubbe's Corner
Re: Announcing the Teensy Saber open source sound board
« Reply #425 on: February 20, 2018, 02:25:36 PM »
it is 1.224 I downloaded today. I guess it is last version.

I tried 30 min. ago and it didnt give error but still keep saying low power. İt connected to the battery and also pc from usb. This one before I enabled Fastled. I just wanted to try.

Yes. I enabled FastLED in the graflex_v1 and try to upload but it gives this error.



Do you have ENABLE_WS2811 on as well?
Looks like it might need it.
If that doesn't help, I can try to provide a new beta later today.

I was going to update my message. Yes I looked normal files and it should be enabled too but after it gives error again. it starts with pragma message like I copied before and all after is kinda same. I appreciate it thank you.

In file included from C:\Users\Murat\AppData\Local\Temp\arduino_build_627516\sketch\blades/fastled_blade.h:6:0,

                 from C:\Users\Murat\Downloads\lightsaber-1.224 (1)\lightsaber\lightsaber.ino:1231:

C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\FastLED/FastLED.h:17:21: note: #pragma message: FastLED version 3.001.008

 #    pragma message "FastLED version 3.001.008"

                     ^

In file included from C:\Users\Murat\Downloads\lightsaber-1.224 (1)\lightsaber\lightsaber.ino:1231:0:

C:\Users\Murat\AppData\Local\Temp\arduino_build_627516\sketch\blades/fastled_blade.h:71:21: error: 'Color' has not been declared

   void set(int led, Color c) override {

                     ^

Error compiling for board Teensy 3.2 / 3.1.

The pragma message can be ignored, but the other one indicates that the fastled stuff is currently broken.
I will have a go at fixing it later today.

Offline profezzorn

  • Mining Colony Members
  • Master Force User
  • *
  • Posts: 901
  • May the source be with you.
    • Hubbe's Corner
Re: Announcing the Teensy Saber open source sound board
« Reply #426 on: February 20, 2018, 04:30:14 PM »
it is 1.224 I downloaded today. I guess it is last version.

I tried 30 min. ago and it didnt give error but still keep saying low power. İt connected to the battery and also pc from usb. This one before I enabled Fastled. I just wanted to try.

Yes. I enabled FastLED in the graflex_v1 and try to upload but it gives this error.



Do you have ENABLE_WS2811 on as well?
Looks like it might need it.
If that doesn't help, I can try to provide a new beta later today.

I was going to update my message. Yes I looked normal files and it should be enabled too but after it gives error again. it starts with pragma message like I copied before and all after is kinda same. I appreciate it thank you.

In file included from C:\Users\Murat\AppData\Local\Temp\arduino_build_627516\sketch\blades/fastled_blade.h:6:0,

                 from C:\Users\Murat\Downloads\lightsaber-1.224 (1)\lightsaber\lightsaber.ino:1231:

C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\FastLED/FastLED.h:17:21: note: #pragma message: FastLED version 3.001.008

 #    pragma message "FastLED version 3.001.008"

                     ^

In file included from C:\Users\Murat\Downloads\lightsaber-1.224 (1)\lightsaber\lightsaber.ino:1231:0:

C:\Users\Murat\AppData\Local\Temp\arduino_build_627516\sketch\blades/fastled_blade.h:71:21: error: 'Color' has not been declared

   void set(int led, Color c) override {

                     ^

Error compiling for board Teensy 3.2 / 3.1.

The pragma message can be ignored, but the other one indicates that the fastled stuff is currently broken.
I will have a go at fixing it later today.

I think it should at least compile now. Please try this beta version:
https://fredrik.hubbe.net/lightsaber/lightsaber-1.240.zip

Offline wingsaber

  • No Force
  • *
  • Posts: 8
  • Um...Hello?
Re: Announcing the Teensy Saber open source sound board
« Reply #427 on: February 21, 2018, 02:42:55 AM »
it is 1.224 I downloaded today. I guess it is last version.

I tried 30 min. ago and it didnt give error but still keep saying low power. İt connected to the battery and also pc from usb. This one before I enabled Fastled. I just wanted to try.

Yes. I enabled FastLED in the graflex_v1 and try to upload but it gives this error.



Do you have ENABLE_WS2811 on as well?
Looks like it might need it.
If that doesn't help, I can try to provide a new beta later today.

I was going to update my message. Yes I looked normal files and it should be enabled too but after it gives error again. it starts with pragma message like I copied before and all after is kinda same. I appreciate it thank you.

In file included from C:\Users\Murat\AppData\Local\Temp\arduino_build_627516\sketch\blades/fastled_blade.h:6:0,

                 from C:\Users\Murat\Downloads\lightsaber-1.224 (1)\lightsaber\lightsaber.ino:1231:

C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\FastLED/FastLED.h:17:21: note: #pragma message: FastLED version 3.001.008

 #    pragma message "FastLED version 3.001.008"

                     ^

In file included from C:\Users\Murat\Downloads\lightsaber-1.224 (1)\lightsaber\lightsaber.ino:1231:0:

C:\Users\Murat\AppData\Local\Temp\arduino_build_627516\sketch\blades/fastled_blade.h:71:21: error: 'Color' has not been declared

   void set(int led, Color c) override {

                     ^

Error compiling for board Teensy 3.2 / 3.1.

The pragma message can be ignored, but the other one indicates that the fastled stuff is currently broken.
I will have a go at fixing it later today.

I think it should at least compile now. Please try this beta version:
http://fredrik.hubbe.net/lightsaber/lightsaber-1.240.zip

Thank you, I tried and it didn't give an error. But I guess power pin changed and became 1. I tried few times to push the button and open it but nothing happened. maybe I'm doing something wrong. I will look into it.

I took fastledblade file and change it in the 1.224. it uploaded without error but keep saying again low power in that version.

teensymonitor writes this over and over again.

Motion setup ... failed.
Motion chip timeout, reboot motion chip!
Motion setup ... failed.
Motion chip timeout, reboot motion chip!


 I checked with another code that works with motion and light.

Code: [Select]
// Full orientation sensing using NXP's advanced sensor fusion algorithm.
//
// You *must* perform a magnetic calibration before this code will work.
//
// To view this data, use the Arduino Serial Monitor to watch the
// scrolling angles, or run the OrientationVisualiser example in Processing.
 
 
#include <NXPMotionSense.h>
#include <Wire.h>
#include <EEPROM.h>
#include <FastLED.h>
 
 
#define NUM_LEDS 60
CRGB leds[NUM_LEDS];
 
 
NXPMotionSense imu;
NXPSensorFusion filter;
int a;
int acc_rms;
void setup() {
  Serial.begin(9600);
  imu.begin();
  filter.begin(100);
  delay(2000);     
  FastLED.addLeds<APA102,11,13,BGR,DATA_RATE_MHZ(1)>(leds, NUM_LEDS); 
  pinMode(7, OUTPUT);
  digitalWrite(7, HIGH);  // enable access to LEDs
}
 
 
void loop() {
  float ax, ay, az;
  float gx, gy, gz;
  float mx, my, mz;
  float roll, pitch, heading;
 
 
  if (imu.available()) {
    // Read the motion sensors
    imu.readMotionSensor(ax, ay, az, gx, gy, gz, mx, my, mz);
   
    // Update the SensorFusion filter
    filter.update(gx, gy, gz, ax, ay, az, mx, my, mz);
 
 
    // print the heading, pitch and roll
    roll = filter.getRoll();
    pitch = filter.getPitch();
    heading = filter.getYaw();
    Serial.print("Orientation: ");
    Serial.print(heading);
    Serial.print(" ");
     Serial.print(pitch);
    Serial.print(" ");
    Serial.println(roll);
    a=abs(roll/3);
    Serial.print(" ");
     
    acc_rms=sqrt(ax*ax+ay*ay+az*az)/3;
    Serial.println(acc_rms);
     
    //flash red if a violent shake event is detected
     
    if(acc_rms==1)
    {
       for(int n = 0; n < NUM_LEDS; n++) 
       {
           leds[n] = CRGB::Red;
           FastLED.show();
           delay(8);
           leds[n] = CRGB::Black;
      }
    }
     
    // Move a single white led as per rotation 
   for(int n = 0; n < NUM_LEDS; n++) 
    {
       if(a==n)
       {
          leds[n] = CRGB::White;
          FastLED.show();
          delay(8);
        }
       else
        {
           leds[n] = CRGB::Black;
        }
    }
 
 
  }
}

I deleted some code, this part
#endif

#if defined(ENABLE_MOTION) || defined(ENABLE_SSD1306)
#include "common/i2cdevice.h"
I2CBus i2cbus;
#endif



#ifdef ENABLE_MOTION
#include "motion/mpu6050.h"
#include "motion/lsm6ds3h.h"
#include "motion/fxos8700.h"
#include "motion/fxas21002.h"

and just made it #define enabled_motion it doesn't say anymore andteensymonitor shows ignition power on etc. but lights don't open. Also no sound too. I tried beep but nothing comes.
« Last Edit: February 21, 2018, 09:31:59 AM by wingsaber »

Offline profezzorn

  • Mining Colony Members
  • Master Force User
  • *
  • Posts: 901
  • May the source be with you.
    • Hubbe's Corner
Re: Announcing the Teensy Saber open source sound board
« Reply #428 on: February 21, 2018, 10:19:52 AM »
wingsaber: Are you sure you're using the right configuration file?
It kind of sounds like you're using a v2 or v3 config file.

I'm not sure what you mean by this: "But I guess power pin changed and became 1. "
My ability to help you is currently limited by the description of your problems.

Offline wingsaber

  • No Force
  • *
  • Posts: 8
  • Um...Hello?
Re: Announcing the Teensy Saber open source sound board
« Reply #429 on: February 21, 2018, 10:29:33 AM »
wingsaber: Are you sure you're using the right configuration file?
It kind of sounds like you're using a v2 or v3 config file.

I'm not sure what you mean by this: "But I guess power pin changed and became 1. "
My ability to help you is currently limited by the description of your problems.

I thought it changed but i was wrong cos of these line:
enum BUTTON : uint32_t {
  BUTTON_NONE = 0,   // used for gestures and the like
  BUTTON_POWER = 1,
  BUTTON_AUX = 2,
  BUTTON_AUX2 = 4,
  BUTTON_UP = 8,
  BUTTON_DOWN = 16,
  BUTTON_LEFT = 32,
  BUTTON_RIGHT = 64,
  BUTTON_SELECT = 128,
  MODE_ON = 256,
  MODE_OFF = 0,
};

And I used what you upload here and kill me please sorry. I didn't change the config. I don't even know why. I have an exam(DLR) and When I get bored I try to do this and obviously today my focus not good enough. I changed config but right now it keeps saying low power.
« Last Edit: February 21, 2018, 10:47:28 AM by wingsaber »

Offline profezzorn

  • Mining Colony Members
  • Master Force User
  • *
  • Posts: 901
  • May the source be with you.
    • Hubbe's Corner
Re: Announcing the Teensy Saber open source sound board
« Reply #430 on: February 21, 2018, 10:48:27 AM »
wingsaber: Are you sure you're using the right configuration file?
It kind of sounds like you're using a v2 or v3 config file.

I'm not sure what you mean by this: "But I guess power pin changed and became 1. "
My ability to help you is currently limited by the description of your problems.

I thought it changed but i was wrong cos of these line:
enum BUTTON : uint32_t {
  BUTTON_NONE = 0,   // used for gestures and the like
  BUTTON_POWER = 1,
  BUTTON_AUX = 2,
  BUTTON_AUX2 = 4,
  BUTTON_UP = 8,
  BUTTON_DOWN = 16,
  BUTTON_LEFT = 32,
  BUTTON_RIGHT = 64,
  BUTTON_SELECT = 128,
  MODE_ON = 256,
  MODE_OFF = 0,
};

And I used what you upload here and kill me please sorry. I didn't change the config. I don't even know why. I have an exam(DLR) and When I get bored I try to do this and obviously today my focus not good enough. I changed config but right now it keeps saying low power.

Do you have a resistor between the battery+ and pin14 on the teensy for battery sense? Is it 23kohm?
If if it's not 23kOhm, you'll need to change BATTERY_PULLUP_OHMS in the config file to reflect the value you used, or the battery voltage won't be measured correctly.

Offline wingsaber

  • No Force
  • *
  • Posts: 8
  • Um...Hello?
Re: Announcing the Teensy Saber open source sound board
« Reply #431 on: February 21, 2018, 12:09:11 PM »
I put 30k if it is ok and I changed the code too. it doesn't say low power and shows normal but when I open still no light
« Last Edit: February 21, 2018, 12:22:59 PM by wingsaber »

Offline profezzorn

  • Mining Colony Members
  • Master Force User
  • *
  • Posts: 901
  • May the source be with you.
    • Hubbe's Corner
Re: Announcing the Teensy Saber open source sound board
« Reply #432 on: February 21, 2018, 02:55:39 PM »
I put 30k if it is ok and I changed the code too. it doesn't say low power and shows normal but when I open still no light

So what does your blades[] array look like?
You probably also need to change config_files/v1_config.h and change spiLed* to the right values for you.
(I should probably make those arguments to FastLEDBladePtr<>())

Offline wingsaber

  • No Force
  • *
  • Posts: 8
  • Um...Hello?
Re: Announcing the Teensy Saber open source sound board
« Reply #433 on: February 21, 2018, 04:27:06 PM »
I put 30k if it is ok and I changed the code too. it doesn't say low power and shows normal but when I open still no light

So what does your blades[] array look like?
You probably also need to change config_files/v1_config.h and change spiLed* to the right values for you.
(I should probably make those arguments to FastLEDBladePtr<>())
Code: [Select]
spiLedDataOut = 11,
  spiLedClock = 13,
these lines? Actually, What should I know to change them? I have no idea.

https://images-na.ssl-images-amazon.com/images/I/61gwhjlLiiL._SX522_.jpg
I have this SD card module I guess I can use this with teensy too. I guess having apa102 was mistake.

and the last thing is when sounds come from the speaker for example low power it looks like speaker damaged but it is not, I tried new and it was same. This happened today. yesterday, It wasn't like this.
« Last Edit: February 21, 2018, 04:34:01 PM by wingsaber »

Offline profezzorn

  • Mining Colony Members
  • Master Force User
  • *
  • Posts: 901
  • May the source be with you.
    • Hubbe's Corner
Re: Announcing the Teensy Saber open source sound board
« Reply #434 on: February 21, 2018, 05:08:18 PM »
I put 30k if it is ok and I changed the code too. it doesn't say low power and shows normal but when I open still no light

So what does your blades[] array look like?
You probably also need to change config_files/v1_config.h and change spiLed* to the right values for you.
(I should probably make those arguments to FastLEDBladePtr<>())
Code: [Select]
spiLedDataOut = 11,
  spiLedClock = 13,
these lines? Actually, What should I know to change them? I have no idea.

http://images-na.ssl-images-amazon.com/images/I/61gwhjlLiiL._SX522_.jpg
I have this SD card module I guess I can use this with teensy too. I guess having apa102 was mistake.

and the last thing is when sounds come from the speaker for example low power it looks like speaker damaged but it is not, I tried new and it was same. This happened today. yesterday, It wasn't like this.

Actually, spiLedDataOut/SpiLedDataClock & spiLedSelect look correct and *should* work. (I was looking at the wrong file.)  However, because serialflash and fastled share the SPI bus, it's possible that it could affect the sound. Fastled/APA102 stuff is pretty much untested, so it's not clear if additional work is required for it to work.

An easy change would be to limit the fastled updates to 100 updates per second and see if that fixes the sound issues. The current limit is 1000, and is implemented in FASTLED_Blade::Loop() in blades/fastled_blade.h

I have no idea if that SD card module will work with the teensy. It seems likely, but without knowing the specs there is no way to know. If nothing else, this one is pretty handy: Teensy 3.x/LC slim micro SD card adapter from Fusion on Tindie

 

retrousse