|
MaxMatrix
Drive chained 8x8 LED dot matrix modules with MAX7219.
|
A C array that knows its size, as std::array, and make_array(), which takes the size from the values. More...
Go to the source code of this file.
Classes | |
| struct | max_matrix::array< T, N > |
| A C array of N elements that knows its size. More... | |
| struct | max_matrix::internal::ArrayElement< T, Value, Braced > |
| Converts a value of make_array() that would narrow, a number, into an element. More... | |
| struct | max_matrix::internal::ArrayElement< T, Value, decltype(T{DeclVal< Value >()})> |
| A value of make_array() that becomes an element without narrowing: one of the type, a smaller number, or a char* for a char const*, which the range check could not cast back. More... | |
Functions | |
| template<typename T> | |
| T | max_matrix::internal::ValueOutOfRange () |
| Declared only, so that make_array() stops the build with its name. | |
| template<typename Value> | |
| constexpr bool | max_matrix::internal::IsNegative (Value value) |
| Returns whether value is below 0, without comparing a type that has no sign with 0, which -Wtype-limits reports. | |
| template<typename T> | |
| T && | max_matrix::internal::DeclVal () |
| Declared only: in a decltype, a value of type T, where nothing is evaluated, as std::declval(), which avr-gcc lacks. | |
| template<typename T, typename... Values> | |
| constexpr array< T, sizeof...(Values)> | max_matrix::make_array (Values... values) |
| Returns an array of T of its values, with the size taken from them. | |
A C array that knows its size, as std::array, and make_array(), which takes the size from the values.
|
constexpr |
Returns whether value is below 0, without comparing a type that has no sign with 0, which -Wtype-limits reports.
| [in] | value | The value. |
|
constexpr |
Returns an array of T of its values, with the size taken from them.
What C++17 deduces from std::array a{...}, and gnu++11 cannot. A font or a bitmap in PROGMEM is written so, its values as MD_MAX72XX writes them:
A value that does not fit T, as 256 or -1 for a uint8_t, stops the build with an error that names ValueOutOfRange, also in a sketch, which Arduino compiles with -Wno-error=narrowing, so that braces would only warn.
| T | The type of the elements. |
| [in] | values | The elements, each what becomes a T without narrowing, as a char* for a char const*, or a number that fits one. |
| T max_matrix::internal::ValueOutOfRange | ( | ) |
Declared only, so that make_array() stops the build with its name.
A value that does not fit calls it, and a call of a function that is not constexpr ends the evaluation when compiling with an error.