FastLED 3.9.15
Loading...
Searching...
No Matches
FxNoiseRing.ino File Reference
#include <Arduino.h>
#include <stdio.h>
#include "fl/json.h"
#include "fl/math_macros.h"
#include "fl/warn.h"
#include "noisegen.h"
#include "fl/screenmap.h"
#include "fl/slice.h"
#include "fl/ui.h"
#include "FastLED.h"
#include "sensors/pir.h"
#include "timer.h"
+ Include dependency graph for FxNoiseRing.ino:

Go to the source code of this file.

Macros

#define COLOR_ORDER   GRB
 
#define LED_PIN   2
 
#define NUM_LEDS   250
 
#define PIN_PIR   0
 
#define PIR_FALLING_TIME   1000
 
#define PIR_LATCH_MS   60000
 
#define PIR_RISING_TIME   1000
 

Functions

void draw (uint32_t now)
 
void handleSerialDither ()
 
void loop ()
 
void setup ()
 

Variables

UISlider brightness ("Brightness", 1, 0, 1)
 
CLEDControllercontroller = nullptr
 
float current_brightness = 0
 
CRGB leds [NUM_LEDS]
 
PirAdvanced pir (PIN_PIR, PIR_LATCH_MS, PIR_RISING_TIME, PIR_FALLING_TIME)
 
UISlider scale ("Scale", 4,.1, 4,.1)
 
UISlider timeBitshift ("Time Bitshift", 5, 0, 16, 1)
 
Timer timer
 
UISlider timescale ("Time Scale", 1,.1, 10,.1)
 
UICheckbox useDither ("Use Binary Dither", true)