Assume one Max7219 unit if not specified

This commit is contained in:
Roxy-3D 2018-09-05 14:18:13 -05:00 committed by GitHub
parent 9651ceb36b
commit 8d5bea073b
Signed by: GitHub
GPG key ID: 4AEE18F83AFDEB23

View file

@ -47,6 +47,9 @@
#endif #endif
#define _ROT ((MAX7219_ROTATE + 360) % 360) #define _ROT ((MAX7219_ROTATE + 360) % 360)
#ifndef MAX7219_NUMBER_UNITS
#define MAX7219_NUMBER_UNITS 1
#endif
#define MAX7219_LINES (8 * (MAX7219_NUMBER_UNITS)) #define MAX7219_LINES (8 * (MAX7219_NUMBER_UNITS))
#if _ROT == 0 || _ROT == 180 #if _ROT == 0 || _ROT == 180