320 {
323 static bool firstFrame = true;
325 const uint32_t deltaMs = firstFrame ? 0 : (now - lastMs);
326 firstFrame = false;
327 lastMs = now;
328
334 }
335
336 if (deltaMs > 0) {
337 const float deltaSeconds = float(deltaMs) * 0.001f;
349 deltaSeconds);
350 }
353 }
355}
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
#define EVERY_N_MILLIS(N)
Checks whether to execute a block of code every N milliseconds.
float gCenterEnvelopeStage
float gTriangleEnvelopeStage
constexpr float kTriangleEnvelopeFadeSeconds
uint32_t gTriangleFireAtMs
constexpr float kCenterEnvelopeFadeSeconds
constexpr float kMusicModeFadeSeconds
float gPendingTriangleLevel
void advanceDoubleEnvelope(float &trigger, float &stage, float &level, float attackSeconds, float decaySeconds, float deltaSeconds)
constexpr float kCenterEnvelopeAttackSeconds
constexpr float kTriangleEnvelopeAttackSeconds
float advanceLinearFade(float value, float target, float durationSeconds, float deltaSeconds)
constexpr common_type_t< T, U > max(T a, U b) FL_NO_EXCEPT
void delay(u32 ms, bool run_async=true) FL_NO_EXCEPT
Public delay wrapper that keeps bare Arduino delay() preferred after using fl::delay; while still all...
fl::u32 millis()
Universal millisecond timer - returns milliseconds since system startup.