|
17 | 17 |
|
18 | 18 | const uint8_t _tm1637_digit[] =
|
19 | 19 | {0x3f, 0x06, 0x5b, 0x4f, 0x66, 0x6d, 0x7d, 0x07, 0x7f, 0x6f};
|
| 20 | +const uint8_t _tm1637_on[6] = {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF}; |
| 21 | +const uint8_t _tm1637_off[6] = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0}; |
| 22 | +const uint8_t fill_off[4] = {0x00, 0x00, 0x00, 0x00}; |
20 | 23 | const uint8_t _tm1637_minus = 0x40;
|
21 | 24 | const uint8_t _tm1637_dot = 0x80;
|
22 | 25 | //#######################################################################################################################
|
@@ -243,6 +246,16 @@ void tm1637_show_zero(tm1637_t *tm1637, bool enable)
|
243 | 246 | tm1637->show_zero = enable;
|
244 | 247 | }
|
245 | 248 | //#######################################################################################################################
|
| 249 | +void tm1637_fill(tm1637_t *tm1637, bool enable) |
| 250 | +{ |
| 251 | + if (enable) |
| 252 | + tm1637_write_segment(tm1637, _tm1637_on, 6, 0); |
| 253 | + else |
| 254 | + tm1637_write_segment(tm1637, _tm1637_off, 6, 0); |
| 255 | +} |
| 256 | +//####################################################################################################################### |
| 257 | + |
| 258 | +//####################################################################################################################### |
246 | 259 |
|
247 | 260 |
|
248 | 261 |
|
|
0 commit comments