#define HW_DIG_ROWS 0#define HW_REV_COLS 0#define HW_REV_ROWS 1
#if USE_OTHER_HW // user defined custom hardware configuration//#pragma message "OTHER HW selected"#define HW_DIG_ROWS 0 ///< MAX72xx digits are mapped to rows in on the matrix#define HW_REV_COLS 0 ///< Normal orientation is col 0 on the right. Set to 1 if reversed#define HW_REV_ROWS 1 ///< Normal orientation is row 0 at the top. Set to 1 if reversed#endif
/** \def USE_OTHER_HW Set to 1 to use other hardware not defined above. Module 0 (Data In) must be set up on the RHS and the CUSTOM hardware defines must be set up in the MD_MAD72xx_lib.h file under for this section, using the HW_Mapper utility to work out what the correct values to use are. */#define USE_OTHER_HW 1
/** * \file * \brief Main header file for the MD_MAX72xx library *//** \def USE_PAROLA_HW Set to 1 (default) to use the Parola hardware modules. The software was originally designed to operate with this hardware type. */#define USE_PAROLA_HW 0/** \def USE_GENERIC_HW Set to 1 to use 'generic' hardware modules commonly available, with connectors at the top and bottom of the PCB, available from many sources. */#define USE_GENERIC_HW 0/** \def USE_ICSTATION_HW Set to 1 to use ICStation DIY hardware module kits available from http://www.icstation.com/product_info.php?products_id=2609#.UxqVJyxWGHs This hardware must be set up with the input on the RHS. */#define USE_ICSTATION_HW 0/** \def USE_FC16_HW Set to 1 to use FC16 hardware module kits. FC16 modules are similar in format to the ICStation modules but are wired differently. Modules are identified by a FC-16 designation on the PCB */#define USE_FC16_HW 1/** \def USE_OTHER_HW Set to 1 to use other hardware not defined above. Module 0 (Data In) must be set up on the RHS and the CUSTOM hardware defines must be set up in the MD_MAD72xx_lib.h file under for this section, using the HW_Mapper utility to work out what the correct values to use are. */#define USE_OTHER_HW 0/** \def USE_LOCAL_FONT Set to 1 (default) to enable local font in this library and enable loadChar() and related methods. If the library is just used for graphics some FLASH RAM can be saved by not including the code to process font data. The font file is stored in PROGMEM. */#define USE_LOCAL_FONT 1/** \def USE_INDEX_FONT Set to 1 to enable font indexing to speed up font lookups - usually disabled. This will trade off increased stack RAM usage for lookup speed if enabled. When disabled lookups will then become linear searches through PROGMEM. Uses ASCII_INDEX_SIZE elements of uint16_t (512 bytes) if enabled. For most purposes the increase in speed is not needed. USE_LOCAL FONT must be enabled for this option to take effect. */#define USE_INDEX_FONT 0// Display parameter constants// Defined values that are used throughout the library to define physical limits#define ROW_SIZE 8 ///< The size in pixels of a row in the device LED matrix array#define COL_SIZE 8 ///< The size in pixels of a column in the device LED matrix array#define MAX_INTENSITY 0xf ///< The maximum intensity value that can be set for a LED array#define MAX_SCANLIMIT 7 ///< The maximum scan limit value that can be set for the devices
+5v -> VinGnd -> Gndpin 12 Data -> DINpin 11 CLK -> CLKpin 10 CS -> CS
// Define the number of devices we have in the chain and the hardware interface// NOTE: These pin numbers will probably not work with your hardware and may// need to be adapted#define MAX_DEVICES 4#define CLK_PIN 13#define DATA_PIN 11#define CS_PIN 10// Hardware SPI connectionMD_Parola P = MD_Parola(CS_PIN, MAX_DEVICES);// Arbitrary output pins// MD_Parola P = MD_Parola(DATA_PIN, CLK_PIN, CS_PIN, MAX_DEVICES);
As I have the luck to speak with you, do you think I can achieve my 96x16 matrix (6 of the 4 connected modules) with one single SPI connection, in terms of performance ?