OctoSK6812 errors

Status
Not open for further replies.

delray

New member
Im trying to use the modified code for RGBW LED strips from here: https://github.com/cosmikwolf/OctoSK6812

I used the Arduino "Add .zip Library" to install the library and I installed it manually into Arduino>Libraries folder, but I still get the following errors:

Code:
Archiving built core (caching) in: C:\Users\m\AppData\Local\Temp\arduino_cache_744832\core\core_teensy_avr_teensy31_usb_keyboard,speed_72,opt_o2std,keys_en-us_4939f5412a75a8560acb0f9e98268f02.a
C:\Users\m\AppData\Local\Temp\arduino_build_665180\libraries\OctoSK6812_master\OctoSK6812.cpp.o: In function `OctoSK6812::OctoSK6812(unsigned long, void*, void*, unsigned char)':

C:\Users\m\Documents\Arduino\libraries\OctoSK6812_master/OctoSK6812.cpp:57: undefined reference to `OctoSK6812::pixelBits'

C:\Users\m\AppData\Local\Temp\arduino_build_665180\libraries\OctoSK6812_master\OctoSK6812.cpp.o: In function `OctoSK6812::begin()':

C:\Users\m\Documents\Arduino\libraries\OctoSK6812_master/OctoSK6812.cpp:117: undefined reference to `OctoSK6812::pixelBits'

C:\Users\m\AppData\Local\Temp\arduino_build_665180\libraries\OctoSK6812_master\OctoSK6812.cpp.o: In function `OctoSK6812::show()':

C:\Users\m\Documents\Arduino\libraries\OctoSK6812_master/OctoSK6812.cpp:382: undefined reference to `OctoSK6812::pixelBits'

C:\Users\m\AppData\Local\Temp\arduino_build_665180\libraries\OctoSK6812_master\OctoSK6812.cpp.o: In function `OctoSK6812::setPixel(unsigned long, int)':

C:\Users\m\Documents\Arduino\libraries\OctoSK6812_master/OctoSK6812.cpp:394: undefined reference to `OctoSK6812::pixelBits'

collect2.exe: error: ld returned 1 exit status

Error compiling for board Teensy 3.2 / 3.1.

I'm simply trying to compile the supplied OctoSK6812Test file as such:

Code:
/*Required Connections
  --------------------
    pin 2:  LED Strip #1    OctoWS2811 drives 8 LED Strips.
    pin 14: LED strip #2    All 8 are the same length.
    pin 7:  LED strip #3
    pin 8:  LED strip #4    A 100 ohm resistor should used
    pin 6:  LED strip #5    between each Teensy pin and the
    pin 20: LED strip #6    wire to the LED strip, to minimize
    pin 21: LED strip #7    high frequency ringining & noise.
    pin 5:  LED strip #8
    pin 15 & 16 - Connect together, but do not use
    pin 4 - Do not use
    pin 3 - Do not use as PWM.  Normal use is ok.
*/

#include <OctoSK6812.h>

const int ledsPerStrip = 120;

// why multiply by 6? 2 bytes per colour??
DMAMEM int displayMemory[ledsPerStrip * 8];
int drawingMemory[ledsPerStrip * 8];

OctoSK6812 leds(ledsPerStrip, displayMemory, drawingMemory, SK6812_GRBW);

void setup() {
  // put your setup code here, to run once:
  leds.begin();
  leds.show();

  leds.setPixel(0, 0xFF000000);
  leds.setPixel(1, 0x00FF0000);
  leds.setPixel(2, 0x0000FF00);
  leds.setPixel(3, 0x000000FF);
  leds.setPixel(4, 0xFFFFFFFF);
  leds.show();
  delay(5000);
}

#define RED    0xFF000000
#define GREEN  0x00FF0000
#define BLUE   0x0000FF00
#define YELLOW 0xFFFF0000
#define PINK   0xFF108800
#define ORANGE 0xE0580000
#define WHITE  0x000000FF

void loop() {
  int microsec = 2000000 / leds.numPixels();  // change them all in 2 seconds

  // uncomment for voltage controlled speed
  // millisec = analogRead(A9) / 40;

  colorWipe(RED, microsec);
  colorWipe(GREEN, microsec);
  colorWipe(BLUE, microsec);
  colorWipe(WHITE, microsec);
  colorWipe(YELLOW, microsec);
  colorWipe(PINK, microsec);
  colorWipe(ORANGE, microsec);
  colorWipe(0xFFFFFFFF, microsec);
}

void colorWipe(int color, int wait)
{
  for (int i = 0; i < leds.numPixels(); i++) {
    leds.setPixel(i, color);
    leds.show();
    delayMicroseconds(wait);

Im running windows10, Arduino 1.8.2 and teensyduino 1.41 with a teensy 3.2

Anyone have any clues why it cant seem to find the right files?? I read somewhere online that dashes werent advised for libs, so I did change that to an underscore, but it didnt seem to help...would love to get this running.

for what its worth, the original code for Octo2811 works just fine.

thanks in advance.
 
Last edited:
Status
Not open for further replies.
Back
Top