// LED Matrix Display Configuration // Define the entire width and height of the display in pixels. // This is the _total_ width and height of the rectangle defined by all the // chained panels. The width should be a multiple of the panel pixel width (32), // and the height should be a multiple of the panel pixel height (8, 16, or 32). display_width = 192; display_height = 64; // Define the width of each panel in pixels. This should always be 32 (but can // in theory be changed). panel_width = 64; // Define the height of each panel in pixels. This is typically 8, 16, or 32. // NOTE: Each panel in the display _must_ be the same height! You cannot mix // 16 and 32 pixel high panels for example. panel_height = 32; // Define the total number of panels in each chain. Count up however many // panels are connected together and put that value here. If you're using // multiple parallel chains count each one up separately and pick the largest // value for this configuration. chain_length = 6; // Define the total number of parallel chains. If using the Adafruit HAT you // can only have one chain so stick with the value 1. The Pi 2 can support up // to 3 parallel chains, see the rpi-rgb-led-matrix library for more information: // https://github.com/hzeller/rpi-rgb-led-matrix#chaining-parallel-chains-and-coordinate-system parallel_count = 1; // Configure each LED matrix panel. // This is a two-dimensional array with an entry for each panel. The array // defines the grid that will subdivide the display, so for example a 64x64 size // display with 32x32 pixel panels would be a 2x2 array of panel configurations. // // For each panel you must set the order that it is within its chain, i.e. the // first panel in a chain is order = 0, the next one is order = 1, etc. You can // also set a rotation for each panel to account for changes in panel orientation // (like when 'snaking' a series of panels end to end for shorter wire runs). // // For example the configuration below defines this grid display of panels and // their wiring (starting from the upper right panel and snaking left, down, and // right to the bottom right panel): // ______________ ______________ // | Panel | | Panel | // /==| order = 1 |<=| order = 0 |<= Chain start (from Pi) // | | rotate = 0 | | rotate = 0 | // | |______________| |______________| // | ______________ ______________ // | | Panel | | Panel | // \==| order = 2 |=>| order = 3 | // | rotate = 180 | | rotate = 180 | // |______________| |______________| // // Notice the chain starts in the upper right and snakes around to the bottom // right. The order of each panel is set as its position along the chain, // and rotation is applied to the lower panels that are flipped around relative // to the panels above them. // // Not shown but if you're using parallel chains you can specify for each entry // in the panels list a 'parallel = x;' option where x is the ID of a parallel // chain (0, 1, or 2). panels = ( ( { order = 2; rotate = 0;}, { order = 1; rotate = 0; }, { order = 0; rotate = 0; } ), ( { order = 3; rotate = 180; }, { order = 4; rotate = 180; }, {order = 5; rotate = 180;} ) ) // By default the rpi-fb-matrix tool will resize and scale down the screen // to fit the resolution of the display panels. However you can instead grab // a specific pixel-perfect copy of a region of the screen by setting the x, y // screen pixel coordinates below. A rectangle of the exact size of the display // (i.e. display_width x display_height pixels) will be copied from the screen // starting at the provided x, y coordinates. Comment this out to disable // this crop behavior and instead resize the screen down to the matrix display. //crop_origin = (0, 0)