Skip to content

Instantly share code, notes, and snippets.

@ayoussef127
ayoussef127 / minimum_distance_reader_glitching
Created July 20, 2018 17:16
minimum distance reader - glitching
#include <IntStatistics.h>
#include <Statistics.h>
Statistics stats (100);
#include <FastLED.h>
#include <Wire.h>
#define NUM_LEDS 100
@ayoussef127
ayoussef127 / working_minimum_reader
Created July 7, 2018 03:44
Working minimum reader + servo
#include <IntStatistics.h>
#include <Statistics.h>
Statistics stats (100);
#include <FastLED.h>
#include <Wire.h>
#define NUM_LEDS 200
@ayoussef127
ayoussef127 / distance_sensor_minimum_read
Created July 3, 2018 12:25
Distance sensor - minimum reading
#include <FastLED.h>
#define NUM_LEDS 200
#define datapin 6
#define LED_TYPE WS2811
CRGB leds[NUM_LEDS];
const int trigPin = 10;
const int echoPin = 11;
#include <FastLED.h>
#define NUM_LEDS 200
#define datapin 6
#define LED_TYPE WS2811
CRGB leds[NUM_LEDS];
const int trigPin = 10;
const int echoPin = 11;
@ayoussef127
ayoussef127 / Distance_sensor_with_for_loop
Created July 2, 2018 13:30
Distance sensor with for loop
#include <FastLED.h>
#define NUM_LEDS 200
#define datapin 6
#define LED_TYPE WS2811
CRGB leds[NUM_LEDS];
const int trigPin = 10;
const int echoPin = 11;