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 <WiFi.h> | |
| //#include <ESP8266WiFi.h> | |
| #include <WiFiClient.h> | |
| #include <Artnet.h> | |
| #define BLYNK_PRINT Serial |
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
| // | |
| // dddddd.c | |
| // | |
| // | |
| // Created by Yves BAZIN on 5/09/18. | |
| // | |
| //-------------------Set RTC------------------------------------------------------- | |
| #include "time.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
| // This code is meant to take at most 10 inputs (eventually 70) and display them in WS2812B individually addressed LEDs | |
| // 9/3/2018 : Now keeps track of what LEDs are on and how long each have been on (almost) | |
| // Changes needed: Find why the leds never turn off. currently the time on is not changing past 30miliseconds. | |
| // | |
| #include <FastLED.h> | |
| #define LED_PIN 7 | |
| #define NUM_LEDS 10 | |
| #define BRIGHTNESS 30 // 0-64 |
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
| //**********************************************************************************************************// | |
| // With this project its possible to drive Ws2812 Leds with Artnet over Wifi (with Jinx! or Glediator) // | |
| // and it´s also possible to switch to the SD-card version where animations can be recorded from Artnet and // | |
| // than be played back. Although a Matrix-clock can be switched on and off over the animations. // | |
| // You will need the Fastled Library from Samguyer https://github.com/samguyer/FastLED // | |
| // and the Artnet-library of Yves Bazin: https://github.com/hpwit/artnet // | |
| // // | |
| // Created by Stefan Weickinger & Yves BAZIN 2018 // | |
| //**********************************************************************************************************// |
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
| //You would have a class define like this | |
| class Strip | |
| { | |
| public: | |
| CRGB *leds; | |
| Strip(int num_leds); | |
| void Comet(CRGB color); | |
| void OTC(CRGB color); | |
| void Ravel(CRGB color); |
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 NUM_STRIPS 20 | |
| #define FastMask(MASK) ((MASK & 15) << 2 ) | ((MASK & 4080) << 8 ) | ((MASK & 28672) << 9 ) | ((MASK & 1015808) << 10 ) | |
| #define FASTLED_ALLOW_INTERRUPTS 0 | |
| #define INTERRUPT_THRESHOLD 1 | |
| #include "FastLED.h" | |
| FASTLED_USING_NAMESPACE | |
| #define FASTLED_SHOW_CORE 0 | |
| #define PORT_MASK 0b111110111011111111000000111100 |
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 NUM_STRIPS 8 | |
| #define FastMask(MASK) ((MASK & 1) << 2 ) | ((MASK & 6) << 3 ) | ((MASK & 8) << 12 ) | ((MASK & 48) << 14 ) | ((MASK & 64) << 15 ) | ((MASK & 128) << 16 ) | |
| #define FASTLED_ALLOW_INTERRUPTS 0 | |
| #define INTERRUPT_THRESHOLD 1 | |
| #include "FastLED.h" | |
| FASTLED_USING_NAMESPACE | |
| #define FASTLED_SHOW_CORE 0 | |
| #define PORT_MASK 0b0101011001000000000110100 |
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
| // code by Mark Estes | |
| // this version has audio input turned off unless you are specific matrix size | |
| #include <SPI.h> | |
| //#include <FastLED.h> //https://github.com/FastLED/FastLED | |
| // Yves adds | |
| #define NUM_STRIPS 16 | |
| //define NUM_STRIPS 20 //if you have 20 strips |
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
| void PixelOn(int x,int y,CRGB Color) | |
| { | |
| if (x<0 or y<0 or x>=LED_WIDTH or y>=LED_HEIGHT) | |
| return ; | |
| if(y%2==0) | |
| leds[x+y*LED_WIDTH]=Color; | |
| else | |
| { |
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 <WiFi.h> | |
| //#include <ESP8266WiFi.h> | |
| #include <WiFiClient.h> | |
| #include <Artnet.h> | |
| #define FASTLED_ALLOW_INTERRUPTS 0 | |
| #define INTERRUPT_THRESHOLD 1 | |
| #include "FastLED.h" | |
| FASTLED_USING_NAMESPACE |