Uint8_t clockPin = 3 // Green wire on Adafruit Pixels Uint8_t dataPin = 2 // Yellow wire on Adafruit Pixels BE SURE TO CHECK YOUR PIXELS TO SEE WHICH WIRES TO USE! The colors of the wires may be totally different so Choose which 2 pins you will use for output. Written by Limor Fried/Ladyada for Adafruit Industries.īSD license, all text above must be included in any redistribution Please support Adafruit and open-source hardware by purchasing High speed PWM drivers for 24 bit color per pixelĪdafruit invests time and resources providing this open source code, These pixels use SPI to transmit the color data, and have built in #include "SPI.h" // Comment out this line if using Trinket or Gemma It's the strandtest.pde example of the ws2801 adafruit library: #include "Adafruit_WS2801.h" /libraries/SPI/SPI.cpp:44: error: 'LSBFIRST' was not declared in this scope /libraries/SPI/SPI.cpp: In static member function 'static void SPIClass::setBitOrder(uint8_t)': /libraries/SPI/SPI.cpp:29: error: 'HIGH' was not declared in this scope /libraries/SPI/SPI.cpp:27: error: 'digitalWrite' was not declared in this scope /libraries/SPI/SPI.cpp:27: error: 'LOW' was not declared in this scope /libraries/SPI/SPI.cpp:23: error: 'pinMode' was not declared in this scope /libraries/SPI/SPI.cpp:23: error: 'OUTPUT' was not declared in this scope /libraries/SPI/SPI.cpp: In static member function 'static void SPIClass::begin()': /libraries/SPI/SPI.h:55: error: 'byte' does not name a type /libraries/SPI/SPI.h:38: error: 'byte' does not name a type But by verifying the code, there is some huge error output: In file included from /./libraries/SPI/SPI.cpp:12: I want to upload some example code to test my new WS2801 LED strand, for which I downloaded the Adafruit library. There is some problem with SPI library I can't solve.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |