2019-05-05 23:43:18 +02:00
|
|
|
#ifndef _MATRIX_DISPLAY_H
|
|
|
|
#define _MATRIX_DISPLAY_H
|
|
|
|
|
2022-02-22 13:11:46 +01:00
|
|
|
#ifdef HAS_MATRIX_DISPLAY
|
|
|
|
|
2019-05-05 23:43:18 +02:00
|
|
|
#include "LEDMatrix.h"
|
|
|
|
#include "ledmatrixfonts.h"
|
2020-03-29 18:08:52 +02:00
|
|
|
#include "ledmatrixdisplay.h"
|
2019-05-05 23:43:18 +02:00
|
|
|
|
2019-05-27 23:29:26 +02:00
|
|
|
extern uint8_t MatrixDisplayIsOn;
|
2019-05-05 23:43:18 +02:00
|
|
|
extern LEDMatrix matrix;
|
2021-03-31 21:43:51 +02:00
|
|
|
extern hw_timer_t *matrixDisplayIRQ;
|
2019-05-05 23:43:18 +02:00
|
|
|
|
2019-05-30 13:00:24 +02:00
|
|
|
void init_matrix_display(bool reverse = false);
|
2019-05-31 13:20:11 +02:00
|
|
|
void refreshTheMatrixDisplay(bool nextPage = false);
|
2019-05-05 23:43:18 +02:00
|
|
|
void DrawNumber(String strNum, uint8_t iDotPos = 0);
|
|
|
|
uint8_t GetCharFromFont(char cChar);
|
|
|
|
uint8_t GetCharWidth(char cChar);
|
2019-09-30 19:44:49 +02:00
|
|
|
void ScrollMatrixLeft(uint8_t *buf, const uint16_t cols, const uint16_t rows);
|
2019-05-05 23:43:18 +02:00
|
|
|
|
2022-02-22 13:11:46 +01:00
|
|
|
#endif
|
|
|
|
|
2019-05-05 23:43:18 +02:00
|
|
|
#endif
|