I found a solution,
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 ![]()