Forum Rule: Always post complete source code & details to reproduce any issue!
-
Teensy 3.0 SPI 1MHz
Hi there,
I have a device running at 1MHz SPI slave, I want to use my Teensy 3.0 board to connect to it, is there any way to set the SPI speed to 1MHz?
Thanks.
-
Senior Member
Use SPI.setClockDivider(SPI_CLOCK_DIV16);
Even though Teensy 3.0 runs much faster, the SPI Arduino library "SPI_CLOCK_DIVxx" settings are designed to give the same speed output as an AVR-based board running at 16 MHz, for compatibility with Arduino code.
-
Hi,
Thanks, it works as you said.
Cheers!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules