Skip to content

Commit be4010a

Browse files
committed
Inline CP437 font and clean MAX7219 header
Move CP437 font data into header as an inline constexpr array (kCp437Font) and provide character dimensions as constexpr. Remove the separate font_cp437.cpp translation unit. Update copyright/year and tweak file comment. Clean up Max7219Matrix API by removing the Rotate declaration and removing unused font_size_ and font_ members.
1 parent e77349b commit be4010a

4 files changed

Lines changed: 290 additions & 332 deletions

File tree

lib-device/include/max7219matrix.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,9 @@ class Max7219Matrix : public MAX7219 {
5555
void UpdateCharacter(uint32_t c, const uint8_t bytes[8]);
5656

5757
private:
58-
uint8_t Rotate(uint32_t r, uint32_t x);
5958
void WriteAll(uint8_t reg, uint8_t data);
6059

6160
private:
62-
uint32_t font_size_;
63-
uint8_t* font_;
6461
uint16_t count_{4};
6562
};
6663

lib-device/src/font_cp437.cpp

Lines changed: 0 additions & 294 deletions
This file was deleted.

0 commit comments

Comments
 (0)