sparkfun / Arduino_Boards

Board definitions for SparkFun-manufactured AVR, ARM, and ESP-based Arduino boards.
263 stars 125 forks source link

Add SPI clock divider support for 120MHz SAMD boards. #54

Closed kisom closed 4 years ago

kisom commented 4 years ago

Hello!

I ran into an issue with the BME280 library on the SAMD51 Thing Plus; I think this is the appropriate fix and will likely fix other SPI-related bugs in other libraries.

Another option would be to define the SPI clock dividers e.g.

  #define SPI_CLOCK_DIV2  ((F_CPU / 16000000) * 2)

to support faster boards in the future.

Cheers!

AndyEngland521 commented 4 years ago

added support in SAMD boards v1.7.1. Thanks for the PR!