Skip to content

Instantly share code, notes, and snippets.

View mikee47's full-sized avatar

Mike mikee47

  • Milton Keynes, UK
View GitHub Profile
@mikee47
mikee47 / keys.h
Last active January 21, 2021 09:53 — forked from Siapran/keys.h
#pragma once
#include "oled_gui.h"
template <typename T>
T clamped_sub(T lhs, T rhs)
{
return lhs > rhs ? lhs - rhs : 0;
}
template <const unsigned long VALID_MS,