Replies: 2 comments 3 replies
-
This reflects from my previous post where i mentioned I'd like to use a dedicated SPI bus for a player instance, but the other lib i'm using (MFRC522) does not offer the possibility to pass an SPIClass instance either ; so i'm a bit stuck since both are using (in the meantime i'm trying to find replacement libs for the rfid reader as well, but still i think this would be a nice - non breaking - addition to this library) |
Beta Was this translation helpful? Give feedback.
-
I suggest that you just do it for AudioSourceIdxSD and AudioSourceSD The cs can already be redefined in the constructior. To be consistent maybe it would be better just to create an additional constructor which contains the SPIClass as well |
Beta Was this translation helpful? Give feedback.
-
Hello,
I have looked at the source code of the one source i'm interested (AudioLibs/AudioSourceSD) and found that it's not possible to pass an already defined spi class to the source.
More practically speaking, I'd like to know if this:
arduino-audio-tools/src/AudioLibs/AudioSourceSD.h
Lines 44 to 55 in 2f35a96
could eventually become this instead:
so that we can eventually override the SPI used.
I hope this makes sense, and sorry if there are typos in the proposed code (i'm not very advanced in cpp)
Beta Was this translation helpful? Give feedback.
All reactions