Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
/*
* Author: Tim (cpldcpu@gmail.com), Patrick Pederse (ctx.xda@gmail.com)
*
* A stripped down and altered version of cpldcpu's light_ws2812.h header.
*
* License: GNU GPL v2+ (see License.txt)
+
*/
#pragma once
#include "config.h"
#include "stdint.h"
#if STRIP_TYPE == WS2812
#ifdef ARDUINO_BUILD
#include <Arduino.h>
#define WS2812_DIN_MSK (digitalPinToBitMask(WS2812_DIN))
#define WS2812_DIN_PORT (*portOutputRegister(digitalPinToPort(WS2812_DIN)))
#else
#define WS2812_DIN_MSK (1 << WS2812_DIN)
#endif
void ws2812_prep_tx();
void ws2812_wait_rst();
void ws2812_tx_byte(uint8_t byte);
void ws2812_end_tx();
#endif40c6cc833This file is pinned to the selected release. Download the original to open it in your design tool.