Skip to content

Instantly share code, notes, and snippets.

@headphones81
headphones81 / gist:14196461d47fabd7f496ddb280a5130b
Created March 9, 2018 14:40
Multicasting spectrum bytes from MSGEQ7 to multiple clients
//Server part
//UDPSend
#include <WiFiUdp.h>
WiFiUDP Udp;
IPAddress ipMulti(239, 0, 0, 57); //Our multicast group
unsigned int localUdpPort = 4210; //Our port
char spectrumUDP[7]; //Just define it
//Setup part
Udp.begin(localUdpPort);
@headphones81
headphones81 / ESP-Webserv.ino
Created July 13, 2017 11:50
ESP8266 + FASTLED
int rgbarray[] = {100,150,200};
int Rval = rgbarray[0];
int Gval = rgbarray[1];
int Bval = rgbarray[2];
int Speed = 100;
int BRIGHTNESS = 255;
#define LED_DITHER 255 // try 0 to disable flickering
String Preset = "pnoise";
String PresetArray = "AutoVu,AutoStat,Static,blur,pnoise,beatwave,cylon,ripple,rainbow1,ripple2,Twinkle,pattern2,juggle2,pattern3,bpm,fire,vu,vu2,Vu3,Vu4,Vu6,niko,vu7,vu8,vu9,vu10";