Arduino WS2812 control

@sterretje @Deva_Rishi

I found a solution,

@sterretje

void strip::setToOutput(const volatile uint8_t* port, volatile uint8_t* reg, uint8_t pin) {
	pinMask = (1<<pin);
	ws2812_port = port;
	ws2812_port_reg = reg;
}

and the call,

LED.setOutput((uint16_t) &PORTE,(uint16_t) &DDRE,2);

it allows me to blink LEDs via PE2

thanks :slightly_smiling_face:

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.