Skip to content

Instantly share code, notes, and snippets.

View hpwit's full-sized avatar
🐨
new parser for esp32

hpwit

🐨
new parser for esp32
View GitHub Profile
@hpwit
hpwit / savesdwithnumber.io
Last active August 31, 2018 13:22
save artnet on SD viaWifi with start/stop
#include <WiFi.h>
//#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <Artnet.h>
#define BLYNK_PRINT Serial
@hpwit
hpwit / save+read.ino
Last active September 30, 2021 16:14
//
// dddddd.c
//
//
// Created by Yves BAZIN on 5/09/18.
//
//-------------------Set RTC-------------------------------------------------------
#include "time.h"
// 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
@hpwit
hpwit / wiwifsip.ino
Last active September 16, 2018 17:36
//**********************************************************************************************************//
// 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 //
//**********************************************************************************************************//
@hpwit
hpwit / strip class.ino
Last active October 1, 2018 11:19
class for strips
//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);
@hpwit
hpwit / test.ino
Last active November 7, 2021 11:13
test fastled 20 strips parallel output
#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
#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
@hpwit
hpwit / fukkcode.ino
Created October 5, 2018 17:11
code with Yves's branch
// 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
@hpwit
hpwit / anim.ino
Created December 9, 2018 18:16
CODE FOR ANIMATION
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
{
@hpwit
hpwit / arnetexample.ino
Created January 14, 2019 18:35
arnetexample.ino
#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