10 * the Software, and to permit persons to whom the Software is furnished to do so,
11 * subject to the following conditions:
12 *
13 * The above copyright notice and this permission notice shall be included in all
14 * copies or substantial portions of the Software.
15 *
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
18 * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
19 * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
20 * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 */
23
24// Hardware-specific header file for the SmartLED Shield for Teensy 4 (V5):
25// Only Teensy 4.0/4.1 models are supported.
26//
27// Some of the pin assignments can be changed using solderable jumpers on the adapter board:
28// JP4:
29// Default: Pin 7 connected to BUFFER_CLK, Pin 8 free
30// Alt: Pin 8 connected to BUFFER_CLK, Pin 7 free
31// To use the alternate clock pin, in addition to soldering the jumper you must set flag SMARTMATRIX_OPTIONS_T4_CLK_PIN_ALT in kMatrixOptions
32// JP2 & JP3:
33// Default: Pin 4 connected to APA_CLK, Pin 5 connected to APA_DAT (intended for APA102 driving via SPI emulation), LED Matrix is drivable at the same time
34// Alt: Pins 4 & 5 free, Pin 13 connected to APA_CLK, Pin 11 connected to APA_DAT (intended for APA102 driving via hardware SPI), LED Matrix not drivable at the same time
35
36// Note: only one MatrixHardware_*.h file should be included per project
37
38#ifndef MATRIX_HARDWARE_H
39#define MATRIX_HARDWARE_H
40
41#pragma message "MatrixHardware: SmartLED Shield for Teensy 4 (V5)"
42
43/* an advanced user may need to tweak these values */
44
45// size of latch pulse - can be short for V4 shield which doesn't need to update ADDX lines during latch pulse
46// 20 is minimum working value on DP5020B panel
47// set to 100 for improved support with FM6126A panel
48// don't exceed 150 to avoid interference between latch and data transfer