Lyra 4.2 I2C Pins #21
Replies: 4 comments 12 replies
-
I suggest that you update to the latest version and then read https://github.com/pschatzmann/arduino-audiokit/wiki/SPI-and-I2C. If you have an old version, channel 0 (which corresponds to the Wire object) is used by the AudioKit and must not be used. |
Beta Was this translation helpful? Give feedback.
-
I think you might be able to use Wire with pin 13 and 15 on the jtag section, if you don't use the SD. |
Beta Was this translation helpful? Give feedback.
-
You should be able to reuse Wire1. Just make sure that you don't call any additoinal begin on it... |
Beta Was this translation helpful? Give feedback.
-
I don't do anything with the green LED, but I manage the PA to activate the speaker and I am not sure if it is a good idea to use this pin. I admit, I did not realize how bad the situation with the available GPIOs really is. I would consider the following pins:
For the other option I would recommend to prefer drivers that don't do any I2C initialization and allow you to pass a TwoWire object. |
Beta Was this translation helpful? Give feedback.
-
Most of AudioKit seems to be OK so I assumed that anything I2C was using the correct pins. However I just tried an external I2C device and it does not work with the standard Lyra/AudioKit setup.
It does work just running it's example code on the Lyra, if I use #including wire.h and Wire.begin(18, 23); Adding that to an AudioKit example doesn't work. #including wire.h and Wire.begin(18, 23); crashes. Must be conflicting with AudioKit's 12C config.
Am I doing something wrong? Can I change the pins in a .h somewhere, or can I override it in the .ino?
Beta Was this translation helpful? Give feedback.
All reactions