Skip to content

Instantly share code, notes, and snippets.

hpwit

Block or report user

Report or block hpwit

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View code.ino
#include <WiFi.h>
//#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <Artnet.h>
#include "FastLED.h"
FASTLED_USING_NAMESPACE
//#include "I2S.h"
@hpwit
hpwit / multipleled.ino
Created Jul 19, 2019
multiple leds array on one strip
View multipleled.ino
#include "FastLED.h"
#define LED_TYPE WS2812B
#define DATA_PIN 7
#define COLOR_ORDER GRB
#define MASTER_BRIGHTNESS 255
#define NUM_LEDS 36
//Note: numA thru numD values must add up to NUM_LEDS
#define numA 8 //pixels 0-7
View dualcorefastledshow.ino
#include <FastLED.h>
#define FASTLED_SHOW_CORE 0
//
static TaskHandle_t FastLEDshowTaskHandle2 = 0;
static TaskHandle_t userTaskHandle = 0;
@hpwit
hpwit / artnet.ino
Last active Jul 9, 2019
arnetexmaple
View artnet.ino
/*
This example will receive multiple universes via Art-Net and control a strip of
WS2812 LEDs via the FastLED library: https://github.com/FastLED/FastLED
This example may be copied under the terms of the MIT license, see the LICENSE file for details
*/
#if defined(ARDUINO_ARCH_ESP32)
#include <WiFi.h>
#else
#include <ESP8266WiFi.h>
@hpwit
hpwit / convert.java
Created Apr 29, 2019
bmp to header file
View convert.java
package com.company;
import java.io.*;
public class Main {
public static void main(String[] args) {
File file = new File("C:\\Users\\yves\\Pictures/mar-daniel-garcia-8-bit-art-batman.bmp");
byte[] fileData = new byte[(int) file.length()];
try {
View clockless_esp32.h
/*
*
*
*/
/*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
View tets.ino
/*
XWLGFX lib example 2019
Enjoy!
*/
#define FASTLED_ALLOW_INTERRUPTS 0
#include "FastLED.h"
#include "XWLGFX.h"
#include "I2S.h"
View tryoyt.ino
#include "FastLED.h"
#define NUM_LEDS_PER_STRIP 118
#define NUM_STRIPS 1 //if set >1 - GOOD
#define NUM_LEDS NUM_STRIPS * NUM_LEDS_PER_STRIP
#include "I2S.h"
#define LED_PIN1 2
#define LED_PIN2 0
#define LED_PIN3 4
#define LED_PIN4 5
View dd.xml
<?xml version="1.0" encoding="UTF-8"?>
<jmeterTestPlan version="1.2" properties="5.0" jmeter="5.1 r1853635">
<hashTree>
<TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="Test Plan" enabled="true">
<stringProp name="TestPlan.comments"></stringProp>
<boolProp name="TestPlan.functional_mode">false</boolProp>
<boolProp name="TestPlan.serialize_threadgroups">false</boolProp>
<elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
<collectionProp name="Arguments.arguments"/>
</elementProp>
View 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
You can’t perform that action at this time.