FabGL
ESP32 VGA Controller and Graphics Library
utils.h File Reference

Go to the source code of this file.

Namespaces

 fabgl
 

Functions

template<typename T >
const T & fabgl::max (const T &a, const T &b)
 
template<typename T >
const T & fabgl::min (const T &a, const T &b)
 
template<typename T >
const T & fabgl::clamp (const T &v, const T &lo, const T &hi)
 
template<typename T >
const T & fabgl::wrap (const T &v, const T &lo, const T &hi)
 
template<typename T >
void fabgl::swap (T &v1, T &v2)
 
bool fabgl::calcParity (uint8_t v)