Skip to content

Instantly share code, notes, and snippets.

View reinst's full-sized avatar

Reinst reinst

  • MN
View GitHub Profile
@reinst
reinst / led_distance.ino
Created November 16, 2019 20:59
Arduino LED & sonar
#include <FastLED.h>
#include <QuickStats.h>
QuickStats stats;
// defining the pins
#define LED_PIN 7
#define NUM_LEDS 29
#define BRIGHTNESS 10
const int trigPin = 9;
const int echoPin = 10;
// defining variables