-->
Page 1 of 1

Massive WS2812 Scroll Display!

PostPosted: Sat Jul 09, 2016 1:07 pm
by rvbcrs
Hi Guys!

I'm currently building this HUGE scroller :) https://wp.josh.com/2016/05/20/huge-scrolling-arduino-led-sign/comment-page-1/#comment-7623

The whole thing is controlled by a Arduino UNO, but I would really love to use an ESP8266 for this. The problem is that the code created to control this is not compatable. Can you guys please help me get this working on a ESP8266?

Here is a link to the code:
https://github.com/bigjosh/MacroMarquee/blob/master/Arduino/MacroMarquee/MacroMarquee.ino

At the start of the code my first problem starts:
Code: Select all#define PIXEL_PORT  PORTD  // Port of the pin the pixels are connected to
#define PIXEL_DDR   DDRD   // Port of the pin the pixels are connected to


Then a piece of assembly code starts wich shouldn't be a problem, but there are two :: in there which the compiler does not like:
Code: Select all      ::
      [port]    "I" (_SFR_IO_ADDR(PIXEL_PORT)),
      [row]   "d" (row),
      [onBits]   "d" (onBits),
      [colorbyte]   "d" (colorbyte),     // Phase 2 of the signal where the actual data bits show up.               
      [bitwalker] "r" (0x80)                      // Alocate a register to hold a bit that we will walk down though the color byte



Thanks for the help!