diff options
author | Daniel Garcia <danielgarcia@gmail.com> | 2014-10-02 08:16:14 +0400 |
---|---|---|
committer | Daniel Garcia <danielgarcia@gmail.com> | 2014-10-02 08:16:14 +0400 |
commit | d4cfd0be38bf7fe9ae565061f643bc5105a71d85 (patch) | |
tree | 6ecfbd5cdffb49758600720bc87aa4fcac26263a | |
parent | 20c7d9455794e901301feaa2a2e9d978384853ff (diff) |
Turns out everything we were doing with the SPI clock doubling stuff on the teensy 3/3.1 was correct. 12Mhz is a more realistic driving speed for the teensy 3/3.1 for LPD8806 than 20Mhz.
-rw-r--r-- | chipsets.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -10,7 +10,7 @@ // ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -template <uint8_t DATA_PIN, uint8_t CLOCK_PIN, EOrder RGB_ORDER = RGB, uint8_t SPI_SPEED = DATA_RATE_MHZ(20) > +template <uint8_t DATA_PIN, uint8_t CLOCK_PIN, EOrder RGB_ORDER = RGB, uint8_t SPI_SPEED = DATA_RATE_MHZ(12) > class LPD8806Controller : public CLEDController { typedef SPIOutput<DATA_PIN, CLOCK_PIN, SPI_SPEED> SPI; @@ -331,7 +331,7 @@ public: } protected: - + virtual void showColor(const struct CRGB & data, int nLeds, CRGB scale) { mSPI.template writePixels<FLAG_START_BIT, DATA_NOP, RGB_ORDER>(PixelController<RGB_ORDER>(data, nLeds, scale, getDither())); writeHeader(); |