Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FastLED/FastLED.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Garcia <danielgarcia@gmail.com>2014-10-02 08:16:14 +0400
committerDaniel Garcia <danielgarcia@gmail.com>2014-10-02 08:16:14 +0400
commitd4cfd0be38bf7fe9ae565061f643bc5105a71d85 (patch)
tree6ecfbd5cdffb49758600720bc87aa4fcac26263a
parent20c7d9455794e901301feaa2a2e9d978384853ff (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.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/chipsets.h b/chipsets.h
index e9a91132..d60dbe72 100644
--- a/chipsets.h
+++ b/chipsets.h
@@ -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();