ProtoTracer  1.0
Real-time 3D rendering and animation engine
Loading...
Searching...
No Matches
SmartMatrixAPA102.h
Go to the documentation of this file.
1/**
2 * @file SmartMatrixHUB75.h
3 * @brief Configuration file for SmartMatrix library with HUB75 panels and APA102 support.
4 *
5 * This file provides hardware-specific configurations and settings for SmartMatrix
6 * library usage with HUB75 LED panels and APA102 LED strips.
7 *
8 * SmartMatrix Library - Hardware-Specific Header File (for SmartMatrix Shield for Teensy 4 V5)
9 *
10 * @date 22/12/2024
11 * @author Copyright (c) 2020 Louis Beaudoin (Pixelmatix)
12 */
13
14#pragma once
15
16#ifndef SMARTMATRIXHUB75
17#define SMARTMATRIXHUB75
18
19//#include <MatrixHardware_Teensy3_ShieldV4.h> // SmartLED Shield for Teensy 3 (V4)
20#include <MatrixHardware_Teensy4_ShieldV5.h> // SmartLED Shield for Teensy 4 (V5)
21//#include <MatrixHardware_Teensy3_ShieldV1toV3.h> // SmartMatrix Shield for Teensy 3 V1-V3
22//#include <MatrixHardware_Teensy4_ShieldV4Adapter.h> // Teensy 4 Adapter attached to SmartLED Shield for Teensy 3 (V4)
23//#include <MatrixHardware_ESP32_V0.h> // This file contains multiple ESP32 hardware configurations, edit the file to define GPIOPINOUT (or add #define GPIOPINOUT with a hardcoded number before this #include)
24//#include "MatrixHardware_Custom.h" // Copy an existing MatrixHardware file to your Sketch directory, rename, customize, and you can include it like this
25#include <SmartMatrix.h>
26
27/**
28 * @def COLOR_DEPTH
29 * @brief Specifies the color depth used for storing pixels in the layers.
30 *
31 * Use 24 for most sketches. If the sketch uses type `rgb24` directly, set COLOR_DEPTH to 24.
32 */
33#define COLOR_DEPTH 24
34
35/**
36 * @def ENABLE_APA102_REFRESH
37 * @brief Enables APA102 refresh support.
38 */
39#define ENABLE_APA102_REFRESH 1
40
41/**
42 * @var kApaMatrixWidth
43 * @brief Width of the APA matrix or strip.
44 */
45const uint16_t kApaMatrixWidth = 176;
46
47/**
48 * @var kApaMatrixHeight
49 * @brief Height of the APA matrix. Set to 1 for strips.
50 */
51const uint16_t kApaMatrixHeight = 1;
52
53/**
54 * @var kApaRefreshDepth
55 * @brief Not currently used for APA matrices.
56 */
57const uint8_t kApaRefreshDepth = 36;
58
59/**
60 * @var kApaDmaBufferRows
61 * @brief Not currently used for APA matrices.
62 */
63const uint8_t kApaDmaBufferRows = 1;
64
65/**
66 * @var kApaPanelType
67 * @brief Not currently used for APA matrices.
68 */
69const uint8_t kApaPanelType = 0;
70
71/**
72 * @var kApaMatrixOptions
73 * @brief Options for APA matrices, including color order.
74 *
75 * The default color order is BGR. Adjust as needed to match your LEDs.
76 */
77const uint32_t kApaMatrixOptions = (SM_APA102_OPTIONS_COLOR_ORDER_BGR);
78
79/**
80 * @var kApaBackgroundLayerOptions
81 * @brief Background layer options for APA matrices.
82 */
83const uint8_t kApaBackgroundLayerOptions = (SM_BACKGROUND_OPTIONS_NONE);
84
85#endif
const uint8_t kApaBackgroundLayerOptions
Background layer options for APA matrices.
const uint16_t kApaMatrixWidth
Width of the APA matrix or strip.
const uint32_t kApaMatrixOptions
Options for APA matrices, including color order.
const uint8_t kApaDmaBufferRows
Not currently used for APA matrices.
const uint8_t kApaPanelType
Not currently used for APA matrices.
const uint16_t kApaMatrixHeight
Height of the APA matrix. Set to 1 for strips.
const uint8_t kApaRefreshDepth
Not currently used for APA matrices.