Hi,
on Arduino DUE ist was possible to set the SPI speed to clk/2, on Teensy 3.1 there is no way to controll the SPI speed like Arduino DUE. Why? Is there an simple way to overwrite the SPI clock settings like in this code snipped?
From the Adafruit_ST7735.cpp
best regards
Barney
on Arduino DUE ist was possible to set the SPI speed to clk/2, on Teensy 3.1 there is no way to controll the SPI speed like Arduino DUE. Why? Is there an simple way to overwrite the SPI clock settings like in this code snipped?
From the Adafruit_ST7735.cpp
Code:
#ifdef __AVR__
SPI.setClockDivider(SPI_CLOCK_DIV2); // 4 MHz (half speed)
//Due defaults to 4mHz (clock divider setting of 21)
#endif
#if defined(__SAM3X8E__)
SPI.setClockDivider(21); // 4 MHz
//Due defaults to 4mHz (clock divider setting of 21), but we'll set it anyway
#endif
best regards
Barney