SPI and I2C Together Trinket M0
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- Frank_B
- Posts: 3
- Joined: Sun Nov 14, 2021 2:41 pm
SPI and I2C Together Trinket M0
Hi, I need to use a sensor that operates in I2C and have an SD Card the operates in SPI store the data from the sensor. I noticed that Pin 2 on the Trinket M0 has a dual function as SCL for I2C and MISO for SPI. Is there a way to have a component operate in SPI while using I2C with this board?
- dastels
- Posts: 15820
- Joined: Tue Oct 20, 2015 3:22 pm
Re: SPI and I2C Together Trinket M0
I don't believe so. Pins are very limited on the Trinket. To keep it small you could switch to the SAMD21 version of the QTPY which gives you more pins, including separate I2C and SPI.
Dave
Dave
- Frank_B
- Posts: 3
- Joined: Sun Nov 14, 2021 2:41 pm
Re: SPI and I2C Together Trinket M0
Thank you for your help.
Please be positive and constructive with your questions and comments.