From 00a75ab82f374c544baba149a1d4e20b93993609 Mon Sep 17 00:00:00 2001 From: JCT Date: Thu, 7 May 2026 21:08:23 -0300 Subject: [PATCH] Fix 'constexpr error' para ESP32-C3 --- src/shift7seg.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/shift7seg.h b/src/shift7seg.h index 56683d3..0acfc3f 100755 --- a/src/shift7seg.h +++ b/src/shift7seg.h @@ -11,7 +11,7 @@ class shift7seg uint8_t _latchPin, uint8_t _clkPin); - static const uint8_t numbers[10] = // 7 segment values for decimals 0..9 + static constexpr uint8_t numbers[10] = // 7 segment values for decimals 0..9 { //TRUTH TABLE | 0 = segment on //ABCDEFGH | 1 = segment off @@ -27,7 +27,7 @@ class shift7seg B00011001 //9 | }; - static const uint8_t capital[11] = + static constexpr uint8_t capital[11] = { B00010001, //A 0 B00000001, //B 1 @@ -42,7 +42,7 @@ class shift7seg B10000011 //U 10 }; - static const uint8_t lower[9] = + static constexpr uint8_t lower[9] = { B11000001, //b 0 B11100101, //c 1 @@ -85,4 +85,4 @@ class shift7seg }; -#endif \ No newline at end of file +#endif