Skip to content

Instantly share code, notes, and snippets.

#define DEBUG_ETHERNET_WEBSERVER_PORT Serial
// Debug Level from 0 to 4
#define _ETHERNET_WEBSERVER_LOGLEVEL_ 3
#include <WebServer_ESP32_W5500.h>
#include "I2SClocklessLedDriver.h"
#include "Arduino.h"
#include "artnetESP32V2.h"
#include <WiFi.h>
#include "Arduino.h"
#include "artnetESP32V2.h"
#define NUM_LEDS_PER_STRIP 270
#define NUMSTRIPS 8
#define NB_CHANNEL_PER_LED 3 //Should be 4 if your sending tool is sending RGBW
#define UNIVERSE_SIZE_IN_CHANNEL 510
#define START_UNIVERSE 0
#include "FS.h"
#include "SD.h"
#include "SPI.h"
File myFile;
bool FILE_IS_OPEN = false;
int nb_bytes=0;
void setup() {
#include "FastLED.h"
#include "freertos/queue.h"
#include "freertos/semphr.h"
#include "SD.h"
#include "SPI.h"
#define NUM_LEDS 5184
#define LEDS_PER_PIN (NUM_LEDS / 6)
#define QUEUE_SIZE 50
#include "FastLED.h"
#include "freertos/queue.h"
#include "freertos/semphr.h"
#include "SD.h"
#include "SPI.h"
#define NUM_LEDS 5184
#define LEDS_PER_PIN (NUM_LEDS / 6)
#define QUEUE_SIZE 50
#include <stdio.h>
#include "WiFi.h"
#define ARTNET_STAT
#include "artnetESP32V2.h"
//#define ESP_VIRTUAL_DRIVER_8 1 //to use the 8:1 ratio
#define HARDWARESPRITES 0
#define ALTERNATEPATTERN 1
#define STATICCOLOR 0 //to get
//#define FULL_DMA_BUFFER
#define NBIS2SERIALPINS 2 //number of esp32 pins you will use. the total number of strips available will be NBIS2SERIALPINS * 8 here 72 strips
#define __HARDWARE_MAP
#include "I2SClocklessLedDriver.h"
#define ledsperstrip 256
#define numstrips 16
//here we have 3 colors per pixel
uint8_t leds[numstrips*ledsperstrip*3];
#define LED_WIDTH 16
uint16_t cal(int i)
{
int d=i/LED_WIDTH;
#include <FastLED.h>
struct UDS56503
{
uint32_t valuel ;
uint8_t valueh ;
inline UDS56503() __attribute__((always_inline))
#define FULL_DMA_BUFFER
#define USE_FASTLED
#define COLOR_GRB
#include "I2SClocklessLedDriver.h"
#define NUM_LEDS_PER_STRIP 256
#define NUMSTRIPS 3
//here we have 3 colors per pixel
//uint8_t leds[numstrips*ledsperstrip*3];
//this one below is same as the one above
@hpwit
hpwit / codeprismark.ino
Last active October 5, 2022 14:45
code prismarl
/*
* Arduino interface for the use of WS2812 strip LEDs
* Uses Adalight protocol and is compatible with Boblight, Prismatik etc...
* "Magic Word" for synchronisation is 'Ada' followed by LED High, Low and Checksum
* @author: Wifsimster <wifsimster@gmail.com>
* @library: FastLED v3.001
* @date: 11/22/2015
*/
#include "FastLED.h"
#define NUM_LEDS 240