changed the SPI frequency to 2 Mhz.

APA102 can handle MUCH higher frequencies than WS2801, so 2Mhz is no big deal for them


Former-commit-id: 814faa648e4f39d7105710ff872bde00aaeaada9
This commit is contained in:
Schöck, Florian 2015-11-29 19:35:26 +01:00
parent 4cdba8cdb6
commit f950ec7df6
1 changed files with 1 additions and 1 deletions

View File

@ -126,7 +126,7 @@ void setup()
SPI.begin();
SPI.setBitOrder(MSBFIRST);
SPI.setDataMode(SPI_MODE0);
SPI.setClockDivider(SPI_CLOCK_DIV16); // 1 MHz max, else flicker
SPI.setClockDivider(SPI_CLOCK_DIV8); // 2Mhz
// Issue test pattern to LEDs on startup. This helps verify that
// wiring between the Arduino and LEDs is correct. Not knowing the