v1.7.61 (LED matrix support)
This commit is contained in:
1 parent
c0a767e833
commit
19849c4eea
5 files changed
+24
-17
No files matched your search
@@ -8,7 +8,7 @@
|
||||
static const char TAG[] = __FILE__;
|
||||
|
||||
uint8_t MatrixDisplayIsOn = 0;
|
||||
unsigned long ulLastNumMacs = 0;
|
||||
static unsigned long ulLastNumMacs = 0;
|
||||
|
||||
LEDMatrix matrix(LED_MATRIX_LA_74138, LED_MATRIX_LB_74138, LED_MATRIX_LC_74138,
|
||||
LED_MATRIX_LD_74138, LED_MATRIX_EN_74138, LED_MATRIX_DATA_R1,
|
||||
@@ -31,6 +31,15 @@ void init_matrix_display(const char *Productname, const char *Version) {
|
||||
|
||||
void refreshTheMatrixDisplay() {
|
||||
|
||||
// if Matrixdisplay is switched off we don't refresh it to relax cpu
|
||||
if (!MatrixDisplayIsOn && (MatrixDisplayIsOn == cfg.screenon))
|
||||
return;
|
||||
|
||||
// set display on/off according to current device configuration
|
||||
if (MatrixDisplayIsOn != cfg.screenon) {
|
||||
MatrixDisplayIsOn = cfg.screenon;
|
||||
}
|
||||
|
||||
if (ulLastNumMacs != macs.size()) {
|
||||
ulLastNumMacs = macs.size();
|
||||
matrix.clear();
|
||||
|
||||
+1
-1
@@ -52,7 +52,7 @@ So don't do it if you do not own a digital oscilloscope.
|
||||
0 displayIRQ -> display refresh -> 40ms (DISPLAYREFRESH_MS)
|
||||
1 ppsIRQ -> pps clock irq -> 1sec
|
||||
2 gpsIRQ -> gps store data -> 300ms
|
||||
3 unused
|
||||
3 MatrixDisplayIRQ -> matrix mux cycle -> 0,5ms (MATRIX_DISPLAY_SCAN_US)
|
||||
|
||||
|
||||
// Interrupt routines
|
||||
|
||||
Reference in new issue
Block a user