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"
@hpwit
hpwit / test fastLedshow32
Last active October 15, 2023 20:18
FastLed.show on the second core esp32
#define FASTLED_SHOW_CORE 0
/ -- Task handles for use in the notifications
static TaskHandle_t FastLEDshowTaskHandle = 0;
static TaskHandle_t userTaskHandle = 0;
void FastLEDshowESP32()
{
if (userTaskHandle == 0) {
const TickType_t xMaxBlockTime = pdMS_TO_TICKS( 200 );
#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
@hpwit
hpwit / whip.ino
Last active June 7, 2023 20:37
whip.ino
#include "settings.h"
#include "myCredentials.h" // oh yeah. there is myCredentials.zip on the root of this repository. include it as a library and then edit the file with your onw ips and stuff
#include "setupWifi.h"
#include "OTA.h"
#ifdef USING_SERIALOTA
#include "SerialOTA.h"
#endif
#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))