renderbug-cpp/firmware/Figments/Animation.cpp

11 lines
188 B
C++
Raw Normal View History

2019-05-10 05:17:29 +00:00
#include "./Animation.h"
#include "./Input.h"
#include "./Display.h"
#include <algorithm>
uint8_t
AnimatedNumber::value() const
{
return NSFastLED::lerp8by8(m_start, m_end, m_idx);
}