#pragma once
#include <avr/io.h>
// Call with address to led color array (order is Green-Red-Blue)
// <lengh> should be divisable by 3
namespace ws2812{
void sendarray(const uint8_t*ledarray,uint16_t length);
// Define your I/O pin here
const uint8_t pin=2; // Number of the data out pin
#define ws2812_port PORTB // Data port register
}
| Detected encoding: ASCII (7 bit) | 2 |