Closed mjs513 closed 3 years ago
Brian This PR is to fix an issue with the library working the Teensy 4.0. If you look at the thread https://forum.pjrc.com/threads/58688-Teensy-4-0-Clock-speed-influences-delay-and-SPI you can see the whole history.
To get it working I modified writeregs and readregs to use digitalwritefast's and added 200 nanosecond delays after going low and going high. I wrapped the changed functions in an if def for the imxrt1062.
Thanks! I'll test this when I can and pull - likely early in January.
Wow, that was fast:) not a problem. There might be a better way.. but this works.
Updated the library and it works with Teensy 4.x now.
Brian This PR is to fix an issue with the library working the Teensy 4.0. If you look at the thread https://forum.pjrc.com/threads/58688-Teensy-4-0-Clock-speed-influences-delay-and-SPI you can see the whole history.
To get it working I modified writeregs and readregs to use digitalwritefast's and added 200 nanosecond delays after going low and going high. I wrapped the changed functions in an if def for the imxrt1062.