This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <Arduino.h> | |
| #include <FastLED.h> | |
| #include <UIPEthernet.h> | |
| #define NUM_LEDS 120 | |
| #define UNIVERSE_SIZE 120 | |
| #define START_UNIVERSE 0 | |
| #define ARTNET_PORT 6454 | |
| const uint8_t universesCount = NUM_LEDS/UNIVERSE_SIZE; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Hello Yves. Could you please check this code. I will be using different length led strips to fit the guitar matrix shape. A total of 600 leds (although probaly more like 800 !!) | |
| //thanks | |
| #include <WiFi.h> | |
| //#include <ESP8266WiFi.h> | |
| #include "SD.h" | |
| #include "SPI.h" | |
| //#include "FS.h" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //#define ARTNET_DEBUG | |
| #define ARTNET_NO_TIMEOUT | |
| #include <ArtnetESP32.h> | |
| #define NBIS2SERIALPINS 2 //number of esp32 pins you will use. the total number of strips available will be NBIS2SERIALPINS * 8 here 72 strips | |
| #define NUM_LEDS_PER_STRIP (3 * 123)//the length of your strip if you have different strips size put here the longuest strip | |
| //#define MULTIPLE_LEDSBUFFER //use the mode several leds buffers in that mode the number of NBIS2SERIALPINS has to be <=12 | |
| #define STATIC_COLOR_GRB 1 | |
| #define USE_FASTLED //te enable the needed types | |
| #include "FastLED.h" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <ArtnetESP32.h> | |
| #include "FastLED.h" | |
| FASTLED_USING_NAMESPACE | |
| //The following has to be adapted to your specifications | |
| #define LED_WIDTH 54 | |
| #define LED_HEIGHT 37 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //#define ESP32_VIRTUAL_DRIVER true //To enable virtual pin driver for esp32 | |
| //#define ESP_VIRTUAL_DRIVER_8 1 //to use the 8:1 ratio | |
| //#define FULL_DMA_BUFFER | |
| #define NBIS2SERIALPINS 9 //number of esp32 pins you will use. the total number of strips available will be NBIS2SERIALPINS * 8 here 72 strips | |
| #define NUM_LEDS_PER_STRIP 900 //the length of your strip if you have different strips size put here the longuest strip | |
| #define MULTIPLE_LEDSBUFFER //use the mode several leds buffers in that mode the number of NBIS2SERIALPINS has to be <=12 | |
| #define STATIC_COLOR_GRB 1 | |
| #define USE_FASTLED //te enable the needed types | |
| #include "FastLED.h" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #define ESP32_VIRTUAL_DRIVER true //To enable virtual pin driver for esp32 | |
| #define ESP_VIRTUAL_DRIVER_8 1 //to use the 8:1 ratio | |
| #define NBIS2SERIALPINS 8 //number of esp32 pins you will use. the total number of strips available will be NBIS2SERIALPINS * 8 here 56 strips | |
| #define NUM_LEDS_PER_STRIP 1080 //the length of your strip if you have different strips size put here the longuest strip | |
| /* | |
| the lines above needs to be declared before #include "FastLed.h" | |
| NBIS2SERIALPINS represents the number of pins used by the esp value, it ranges from 1->15 | |
| NUM_LEDS_PER_STRIP the length of your strip if you have different strips size put here the longuest strip | |
| for each pin you would be able to drive 8 virtuals pins |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #define ESP32_VIRTUAL_DRIVER true //To enable virtual pin driver for esp32 | |
| #define NBIS2SERIALPINS 18 | |
| /* | |
| This needs to be declared before #include "FastLed.h" | |
| NBIS2SERIALPINS represent the number of pins used by the esp value, it ranges from 1->20 | |
| for each pin you would be able to drive 5 virtuals pins | |
| i.e for | |
| #define NBIS2SERIALPINS 8 | |
| You will be able to drive up to 8*5=40 pins |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <ESPAsyncE131.h> | |
| #include "FastLED.h" | |
| #define UNIVERSE 1 // First DMX Universe to listen for | |
| #define UNIVERSE_COUNT 14 // Total number of Universes to listen for, starting at UNIVERSE | |
| const char ssid[] = "esp131"; // Replace with your SSID | |
| const char passphrase[] = "LEDtest1"; // Replace with your WPA2 passphrase | |
| byte vUniverse=0; | |
| byte vCycle1=0,vMark1; | |
| byte vCycle2=0,vMark2; |