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
#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))
#define FULL_DMA_BUFFER
#define USE_FASTLED
#define COLOR_GRB
#include "I2SClocklessLedDriver.h"
#define NUM_LEDS_PER_STRIP 256
#define NUMSTRIPS 3
//here we have 3 colors per pixel
//uint8_t leds[numstrips*ledsperstrip*3];
//this one below is same as the one above
@hpwit
hpwit / codeprismark.ino
Last active October 5, 2022 14:45
code prismarl
/*
* Arduino interface for the use of WS2812 strip LEDs
* Uses Adalight protocol and is compatible with Boblight, Prismatik etc...
* "Magic Word" for synchronisation is 'Ada' followed by LED High, Low and Checksum
* @author: Wifsimster <wifsimster@gmail.com>
* @library: FastLED v3.001
* @date: 11/22/2015
*/
#include "FastLED.h"
#define NUM_LEDS 240
#define NBIS2SERIALPINS 7 //the number of virtual pins here mavimum 32 strips
#define STATIC_COLOR_GRB 1 //set the strip color
#define NUM_LEDS_PER_STRIP 120
#define NUM_LEDS (NUM_LEDS_PER_STRIP*NBIS2SERIALPINS*8)
#define CLOCK_PIN 16
#define LATCH_PIN 26
#define NUM_STRIPS 56
#define CONFIG_FREERTOS_USE_TRACE_FACILITY 1
#define CONFIG_FREERTOS_USE_STATS_FORMATTING_FUNCTIONS 1
@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 "FastLED.h"
#define NUM_LEDS_PER_STRIP 21
#define NUMSTRIPS 7
#define NUM_LEDS NUM_STRIPS * NUM_LEDS_PER_STRIP
#define CLOCK_PIN 18 //needs to be higher than 16
#include "I2SHD108.h"
int Pins[16]={23,22,21,19,5,4,2};
@hpwit
hpwit / test2.ino
Last active October 12, 2021 17:43
#include "FastLED.h"
#define NUM_LEDS_PER_STRIP 21
#define NUMSTRIPS 7
#define NUM_LEDS NUMSTRIPS * NUM_LEDS_PER_STRIP
#define CLOCK_PIN 18 //needs to be higher than 16
#include "I2SHD108.h"
int Pins[16]={23,22,21,19,5,4,2};
@hpwit
hpwit / ledtypes.h
Last active October 12, 2021 19:28
#pragma once
//#include "FastLED.h"
struct Brightness{
uint8_t bred;
uint8_t bgreen;
uint8_t bblue;
inline Brightness() __attribute__((always_inline))
{
@hpwit
hpwit / test.ino
Last active October 12, 2021 18:04
#include "FastLED.h"
#define NUM_LEDS_PER_STRIP 21
#define NUMSTRIPS 7
#define NUM_LEDS NUMSTRIPS * NUM_LEDS_PER_STRIP
#define CLOCK_PIN 18 //needs to be higher than 16
#include "I2SHD108.h"
int Pins[16]={23,22,21,19,5,4,2};