SPI and I2C Together Trinket M0

Adafruit's tiny microcontroller platform. Please tell us which board you are using.
For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
Frank_B
 
Posts: 3
Joined: Sun Nov 14, 2021 2:41 pm

SPI and I2C Together Trinket M0

Post by Frank_B »

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?

User avatar
dastels
 
Posts: 15817
Joined: Tue Oct 20, 2015 3:22 pm

Re: SPI and I2C Together Trinket M0

Post by dastels »

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

User avatar
Frank_B
 
Posts: 3
Joined: Sun Nov 14, 2021 2:41 pm

Re: SPI and I2C Together Trinket M0

Post by Frank_B »

Thank you for your help.

Locked
Please be positive and constructive with your questions and comments.

Return to “Trinket ATTiny, Trinket M0”