Skip to content

Instantly share code, notes, and snippets.

View janhohenheim's full-sized avatar
🌱
Doing business

Jan Hohenheim janhohenheim

🌱
Doing business
View GitHub Profile
@janhohenheim
janhohenheim / lightstimulus_arduino.cpp
Created December 5, 2024 19:07 — forked from Pleasegivemeamango/lightstimulus_arduino.cpp
Use Welford's online algorithm
#include <ArduinoGraphics.h>
#include <Arduino_MKRRGB.h>
#include <Stream.h>
#define let auto const
using namespace std;
const double CALIBRATION_SECONDS = 1.0;
const double STANDARD_DEVIATION_ABOVE_NOISE_MEAN = 3.0;