Skip to content

Instantly share code, notes, and snippets.

View ChrisSuryanto's full-sized avatar

Christian Suryanto ChrisSuryanto

View GitHub Profile
@ChrisSuryanto
ChrisSuryanto / u8g2_adafruit_SH1106_setFont_Rotate.ino
Last active April 4, 2024 23:57
SH1106 I2C OLED With setFont and rotate capability
/*
Hello_Adafruit_SH110X.ino
Demonstrates how to connect U8g2_for_Adafruit_GFX to Adafruit SH110X library.
U8g2_for_Adafruit_GFX:
- Use U8g2 fonts with Adafruit GFX
- Support for UTF-8 in print statement
- 90, 180 and 270 degree text direction
@ChrisSuryanto
ChrisSuryanto / FastLED_Pacifica_with_Hue.ino
Created November 1, 2023 12:02
FastLED_Pacifica_with_Hue
//
// "Pacifica"
// Gentle, blue-green ocean waves.
// December 2019, Mark Kriegsman and Mary Corey March.
// For Dan.
// -- modified to enable Hue settings --
//////////////////////////////////////////////////////////////////////////
//
// The code for this animation is more complicated than other examples, and
@ChrisSuryanto
ChrisSuryanto / FastLED_nonblocking.ino
Created November 1, 2023 11:58
FastLED_nonblocking
#include <FastLED.h>
//#include <ColorConverterLib.h>
#define LED_PIN 2
#define COLOR_ORDER GRB
#define CHIPSET WS2812B
#define kMatrixWidth 8
#define kMatrixHeight 24
#define currentBrightness 40
#define NUM_LEDS ((kMatrixWidth) * (kMatrixHeight))
@ChrisSuryanto
ChrisSuryanto / FastLED_Fireworks_Matrix.ino
Created November 1, 2023 11:46
FastLED_Fireworks_Matrix
#include <FastLED.h>
// Matrix size
#define kMatrixHeight 24 // Matrix Height / Rows
#define kMatrixWidth 8 // Matrix Width / Cols
#define NUM_LEDS kMatrixHeight * kMatrixWidth // Total number of LEDs
#define DATA_PIN 2 // pin on esp32 for driving Leds
#define currentBrightness 100 // brightness of Leds
// Define the array of leds
@ChrisSuryanto
ChrisSuryanto / FastLED_Fire2022.ino
Created November 1, 2023 11:40
FastLED_Fire2022
#include <FastLED.h>
//#include <ColorConverterLib.h>
#define NUM_LEDS 192
#define kMatrixHeight 24
#define kMatrixWidth 8
#define currentBrightness 60
CRGB Leds1[NUM_LEDS];
CRGB Leds2[NUM_LEDS];
@ChrisSuryanto
ChrisSuryanto / fastLED_e131_example.ino
Created November 1, 2023 11:39
FastLED_e131_Example
//#include <ESP8266WiFi.h> // Uncomment for esp8666 & comment out WiFi.h
#include <ESPAsyncE131.h>
#include <FastLED.h>
#include <WiFi.h> // Uncomment for esp32 & comment out ESP8266WiFi.h
#define NUM_LEDS 192
#define MAX_LEDS_PER_UNIVERSE 170
#define UNIVERSE 1
#define UNIVERSE_COUNT 10 // Total number of Universes to listen for, starting at UNIVERSE
@ChrisSuryanto
ChrisSuryanto / Fake_Spectrum_Bars_using_beatsin8.ino
Created November 1, 2023 11:36
Fake Spectrum Bars using beatsin8
// video on https://www.reddit.com/r/FastLED/comments/yv1c9t/fake_spectrum_analyzer_using_beatsin8_no_fft_not/
#include <FastLED.h>
#define kMatrixHeight 24
#define kMatrixWidth 8
#define NUM_LEDS kMatrixHeight*kMatrixWidth //192
CRGB leds[NUM_LEDS];