You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// mask: value with up to 32 bits. Types with less bits are complemented with 0s automatically when cast.// bit_index: number of the bit [0..31]. 0 is LSB, 31 is MSB, greater will return 0.boolread_mask_bit(uint32_t mask, uint8_t bit_index) {
return (mask >> bit_index) & 1;
}
I also recommend making your arrays const or using constexpr to prevent accidental writes.
leds_screen/arduino/scoreboard.cpp
Lines 4 to 60 in 136535a
Consider replacing data structures of seven_segment_map and sixteen_segment_map with more efficient options.
The text was updated successfully, but these errors were encountered: