Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Teensy 4 should use fast SPI like T3.x, not 8 MHz like Teensy 2.x #94

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

natecermak
Copy link

@natecermak natecermak commented Jan 22, 2024

Previously, if one were using this library with a Teensy 4.0 or 4.1, it would use the Teensy 2 SPI speed of 8 MHz because the code was written before T4 existed, and TEENSYDUINO is still defined. However, Teensy 4.x is faster than T3.x, and should at minimum use the same speed as T3.x (40 MHz). This PR fixes that.

Empirically I tested an ILI9341 display with 80MHz on the teensy 4.1 and it handled that fine too -- happy to change the define to that too if anyone feels it necessary (although i havent verified the chip is spec'd to operate at that speed, and that will make more sensitive to trace capacitance).

@natecermak natecermak changed the title Teensy 4 should use fast SPI like T3.x, not default speed. Teensy 4 should use fast SPI like T3.x, not Teensy LC/2.x Jan 22, 2024
@natecermak natecermak changed the title Teensy 4 should use fast SPI like T3.x, not Teensy LC/2.x Teensy 4 should use fast SPI like T3.x, not 8 MHz like Teensy 2.x Jan 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant