MCPcopy Create free account
hub / github.com/Blueforcer/awtrix3 / getRandomTransition

Function getRandomTransition

src/MatrixDisplayUi.cpp:352–356  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

350uint8_t currentTransition;
351bool gotNewTransition = true;
352TransitionType getRandomTransition()
353{
354 // RANDOM is now index 0, so we add 1 to the result to ensure it's never selected
355 return static_cast<TransitionType>((rand() % (CROSSFADE)) + 1);
356}
357
358bool swapped = false;
359

Callers 1

drawAppMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected