Skip to content

Instantly share code, notes, and snippets.

View systembolaget's full-sized avatar

Andreas Hopf systembolaget

View GitHub Profile
#include <Wire.h>
const byte addressSlave = 7;
int rxValue;
void setup()
{
Wire.begin(addressSlave);
Wire.onReceive(receiveEvent);
Serial.begin(115200);
#include <Wire.h>
#include "FastLED.h"
const byte pinData = 3;
const byte pinSEN0232 = A0;
const byte pinPotentiometerMin = A1;
const byte pinPotentiometerMax = A2;
const byte ledCount = 24;
const byte ledBrightness = 192;
@systembolaget
systembolaget / Decibel_meter_peak_hold_and_drop.ino
Created May 30, 2021 14:53
Decibel_meter_peak_hold_and_drop
#include "FastLED.h"
const byte pinData = 6;
const byte pinSEN0232 = A0;
const byte pinPotentiometerMin = A1;
const byte pinPotentiometerMax = A2;
const float EMA_a = 0.7; // Lower is more laggy but smoother
const byte ledCount = 24;
#include "FastLED.h"
const byte pinData = 6;
const byte pinSEN0232 = A0;
const byte pinPotentiometerMin = A1;
const byte pinPotentiometerMax = A2;
const float EMA_a = 0.6;
const byte ledCount = 24;