I tried to build for the teensy 4.0 I just received, and here is the output
In file included from /home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrix3.h:127:0,
from /home/merlin/Arduino/libraries/SmartMatrix/src/SmartLEDShieldV4.h:5,
from /home/merlin/arduino/libraries/SmartMatrix/examples/FeatureDemo/FeatureDemo.ino:6:
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixMultiplexedRefreshTeensy_Impl.h: In constructor 'SmartMatrix3RefreshMultiplexed<refreshDepth, matrixWidth, matrixHeight, panelType, optionFlags>::SmartMatrix3RefreshMultiplexed(uint8_t, SmartMatrix3RefreshMultiplexed<refreshDepth, matrixWidth, matrixHeight, panelType, optionFlags>::rowDataStruct*)':
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixMultiplexedRefreshTeensy_Impl.h:38:40: error: 'TIMER_FREQUENCY' was not declared in this scope
#define NS_TO_TICKS(X) (uint32_t)(TIMER_FREQUENCY * ((X) / 1000000000.0))
^
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixMultiplexedRefreshTeensy_Impl.h:50:32: note: in expansion of macro 'NS_TO_TICKS'
#define MIN_BLOCK_PERIOD_TICKS NS_TO_TICKS(MIN_BLOCK_PERIOD_NS)
^
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixMultiplexedRefreshTeensy_Impl.h:139:34: note: in expansion of macro 'MIN_BLOCK_PERIOD_TICKS'
timerPairIdle.timer_period = MIN_BLOCK_PERIOD_TICKS;
^
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixMultiplexedRefreshTeensy_Impl.h: In static member function 'static void SmartMatrix3RefreshMultiplexed<refreshDepth, matrixWidth, matrixHeight, panelType, optionFlags>::calculateTimerLUT()':
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixMultiplexedRefreshTeensy_Impl.h:47:26: error: 'TIMER_FREQUENCY' was not declared in this scope
#define TICKS_PER_ROW (TIMER_FREQUENCY/refreshRate/MATRIX_SCAN_MOD)
^
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixMultiplexedRefreshTeensy_Impl.h:48:36: note: in expansion of macro 'TICKS_PER_ROW'
#define IDEAL_MSB_BLOCK_TICKS (TICKS_PER_ROW/2)
^
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixMultiplexedRefreshTeensy_Impl.h:233:30: note: in expansion of macro 'IDEAL_MSB_BLOCK_TICKS'
uint16_t msbBlockTicks = IDEAL_MSB_BLOCK_TICKS + MSB_BLOCK_TICKS_ADJUSTMENT_INCREMENT;
^
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixMultiplexedRefreshTeensy_Impl.h: In static member function 'static void SmartMatrix3RefreshMultiplexed<refreshDepth, matrixWidth, matrixHeight, panelType, optionFlags>::setRefreshRate(uint8_t)':
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixMultiplexedRefreshTeensy_Impl.h:53:32: error: 'TIMER_FREQUENCY' was not declared in this scope
#define MIN_REFRESH_RATE (((TIMER_FREQUENCY/65535)/MATRIX_SCAN_MOD/2) + 1)
^
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixMultiplexedRefreshTeensy_Impl.h:291:25: note: in expansion of macro 'MIN_REFRESH_RATE'
if(newRefreshRate > MIN_REFRESH_RATE)
^
In file included from /home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrix3.h:128:0,
from /home/merlin/Arduino/libraries/SmartMatrix/src/SmartLEDShieldV4.h:5,
from /home/merlin/arduino/libraries/SmartMatrix/examples/FeatureDemo/FeatureDemo.ino:6:
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixAPA102RefreshTeensy_Impl.h: In static member function 'static void SmartMatrixAPA102Refresh<refreshDepth, matrixWidth, matrixHeight, panelType, optionFlags>::begin()':
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixAPA102RefreshTeensy_Impl.h:165:55: error: 'SPI0_PUSHR' was not declared in this scope
dmaClockOutDataApa.destination((volatile uint8_t&)SPI0_PUSHR);
^
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixAPA102RefreshTeensy_Impl.h:167:47: error: 'DMAMUX_SOURCE_SPI0_TX' was not declared in this scope
dmaClockOutDataApa.triggerAtHardwareEvent(DMAMUX_SOURCE_SPI0_TX);
^
In file included from /var/local/arduino-1.8.9-teensyduino-1.47/hardware/teensy/avr/cores/teensy4/core_pins.h:32:0,
from /var/local/arduino-1.8.9-teensyduino-1.47/hardware/teensy/avr/cores/teensy4/wiring.h:38,
from /var/local/arduino-1.8.9-teensyduino-1.47/hardware/teensy/avr/cores/teensy4/WProgram.h:45,
from /tmp/arduino_build_363732/pch/Arduino.h:6:
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixAPA102RefreshTeensy_Impl.h:170:65: error: 'ROW_CALCULATION_ISR_PRIORITY' was not declared in this scope
NVIC_SET_PRIORITY(IRQ_DMA_CH0 + dmaClockOutDataApa.channel, ROW_CALCULATION_ISR_PRIORITY);
^
/var/local/arduino-1.8.9-teensyduino-1.47/hardware/teensy/avr/cores/teensy4/imxrt.h:8201:104: note: in definition of macro 'NVIC_SET_PRIORITY'
#define NVIC_SET_PRIORITY(irqnum, priority) (*((volatile uint8_t *)0xE000E400 + (irqnum)) = (uint8_t)(priority))
^
In file included from /home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrix3.h:128:0,
from /home/merlin/Arduino/libraries/SmartMatrix/src/SmartLEDShieldV4.h:5,
from /home/merlin/arduino/libraries/SmartMatrix/examples/FeatureDemo/FeatureDemo.ino:6:
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixAPA102RefreshTeensy_Impl.h:173:5: error: 'FTM2_SC' was not declared in this scope
FTM2_SC = 0;
^
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixAPA102RefreshTeensy_Impl.h:174:5: error: 'FTM2_CNT' was not declared in this scope
FTM2_CNT = 0;
^
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixAPA102RefreshTeensy_Impl.h:175:5: error: 'FTM2_MOD' was not declared in this scope
FTM2_MOD = APA_TICKS_PER_FRAME;
^
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixAPA102RefreshTeensy_Impl.h:48:32: error: 'APA_TIMER_FREQUENCY' was not declared in this scope
#define APA_TICKS_PER_FRAME (APA_TIMER_FREQUENCY/refreshRate)
^
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixAPA102RefreshTeensy_Impl.h:175:16: note: in expansion of macro 'APA_TICKS_PER_FRAME'
FTM2_MOD = APA_TICKS_PER_FRAME;
^
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixAPA102RefreshTeensy_Impl.h:191:28: warning: there are no arguments to 'FTM_SC_CLKS' that depend on a template parameter, so a declaration of 'FTM_SC_CLKS' must be available [-fpermissive]
FTM2_SC = FTM_SC_CLKS(1) | FTM_SC_PS(APA_LATCH_TIMER_PRESCALE) | FTM_SC_TOIE;
^
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixAPA102RefreshTeensy_Impl.h:191:66: warning: there are no arguments to 'FTM_SC_PS' that depend on a template parameter, so a declaration of 'FTM_SC_PS' must be available [-fpermissive]
FTM2_SC = FTM_SC_CLKS(1) | FTM_SC_PS(APA_LATCH_TIMER_PRESCALE) | FTM_SC_TOIE;
^
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixAPA102RefreshTeensy_Impl.h:191:70: error: 'FTM_SC_TOIE' was not declared in this scope
FTM2_SC = FTM_SC_CLKS(1) | FTM_SC_PS(APA_LATCH_TIMER_PRESCALE) | FTM_SC_TOIE;
^
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixAPA102RefreshTeensy_Impl.h:193:27: error: 'IRQ_FTM2' was not declared in this scope
attachInterruptVector(IRQ_FTM2, apaRowShiftCompleteISR<refreshDepth, matrixWidth, matrixHeight, panelType, optionFlags>);
^
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixAPA102RefreshTeensy_Impl.h: In function 'void apaRowShiftCompleteISR()':
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixAPA102RefreshTeensy_Impl.h:233:5: error: 'SPI0_RSER' was not declared in this scope
SPI0_RSER = 0;
^
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixAPA102RefreshTeensy_Impl.h:235:5: error: 'SPI0_SR' was not declared in this scope
SPI0_SR = SPI_SR_TCF | SPI_SR_EOQF | SPI_SR_TFUF | SPI_SR_TFFF | SPI_SR_RFOF | SPI_SR_RFDF;
^
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixAPA102RefreshTeensy_Impl.h:235:15: error: 'SPI_SR_TCF' was not declared in this scope
SPI0_SR = SPI_SR_TCF | SPI_SR_EOQF | SPI_SR_TFUF | SPI_SR_TFFF | SPI_SR_RFOF | SPI_SR_RFDF;
^
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixAPA102RefreshTeensy_Impl.h:235:28: error: 'SPI_SR_EOQF' was not declared in this scope
SPI0_SR = SPI_SR_TCF | SPI_SR_EOQF | SPI_SR_TFUF | SPI_SR_TFFF | SPI_SR_RFOF | SPI_SR_RFDF;
^
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixAPA102RefreshTeensy_Impl.h:235:42: error: 'SPI_SR_TFUF' was not declared in this scope
SPI0_SR = SPI_SR_TCF | SPI_SR_EOQF | SPI_SR_TFUF | SPI_SR_TFFF | SPI_SR_RFOF | SPI_SR_RFDF;
^
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixAPA102RefreshTeensy_Impl.h:235:56: error: 'SPI_SR_TFFF' was not declared in this scope
SPI0_SR = SPI_SR_TCF | SPI_SR_EOQF | SPI_SR_TFUF | SPI_SR_TFFF | SPI_SR_RFOF | SPI_SR_RFDF;
^
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixAPA102RefreshTeensy_Impl.h:235:70: error: 'SPI_SR_RFOF' was not declared in this scope
SPI0_SR = SPI_SR_TCF | SPI_SR_EOQF | SPI_SR_TFUF | SPI_SR_TFFF | SPI_SR_RFOF | SPI_SR_RFDF;
^
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixAPA102RefreshTeensy_Impl.h:235:84: error: 'SPI_SR_RFDF' was not declared in this scope
SPI0_SR = SPI_SR_TCF | SPI_SR_EOQF | SPI_SR_TFUF | SPI_SR_TFFF | SPI_SR_RFOF | SPI_SR_RFDF;
^
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixAPA102RefreshTeensy_Impl.h:239:17: error: 'SPI_RSER_TFFF_RE' was not declared in this scope
SPI0_RSER = SPI_RSER_TFFF_RE | SPI_RSER_TFFF_DIRS;
^
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixAPA102RefreshTeensy_Impl.h:239:36: error: 'SPI_RSER_TFFF_DIRS' was not declared in this scope
SPI0_RSER = SPI_RSER_TFFF_RE | SPI_RSER_TFFF_DIRS;
^
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixAPA102RefreshTeensy_Impl.h:244:5: error: 'FTM2_SC' was not declared in this scope
FTM2_SC &= ~FTM_SC_TOF;
^
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixAPA102RefreshTeensy_Impl.h:244:17: error: 'FTM_SC_TOF' was not declared in this scope
FTM2_SC &= ~FTM_SC_TOF;
^
In file included from /home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrix3.h:127:0,
from /home/merlin/Arduino/libraries/SmartMatrix/src/SmartLEDShieldV4.h:5,
from /home/merlin/arduino/libraries/SmartMatrix/examples/FeatureDemo/FeatureDemo.ino:6:
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixMultiplexedCalcTeensy_Impl.h: In static member function 'static void SmartMatrix3<refreshDepth, matrixWidth, matrixHeight, panelType, optionFlags>::matrixCalculations(bool)':
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixMultiplexedRefreshTeensy_Impl.h:53:32: error: 'TIMER_FREQUENCY' was not declared in this scope
#define MIN_REFRESH_RATE (((TIMER_FREQUENCY/65535)/MATRIX_SCAN_MOD/2) + 1)
^
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixMultiplexedCalcTeensy_Impl.h:111:47: note: in expansion of macro 'MIN_REFRESH_RATE'
if(!initial && calc_refreshRate > MIN_REFRESH_RATE) {
^
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixMultiplexedRefreshTeensy_Impl.h:53:32: error: 'TIMER_FREQUENCY' was not declared in this scope
#define MIN_REFRESH_RATE (((TIMER_FREQUENCY/65535)/MATRIX_SCAN_MOD/2) + 1)
^
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixMultiplexedCalcTeensy_Impl.h:160:35: note: in expansion of macro 'MIN_REFRESH_RATE'
if(calc_refreshRate > MIN_REFRESH_RATE) {
^
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixMultiplexedCalcTeensy_Impl.h: In member function 'void SmartMatrix3<refreshDepth, matrixWidth, matrixHeight, panelType, optionFlags>::setRefreshRate(uint8_t)':
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixMultiplexedRefreshTeensy_Impl.h:53:32: error: 'TIMER_FREQUENCY' was not declared in this scope
#define MIN_REFRESH_RATE (((TIMER_FREQUENCY/65535)/MATRIX_SCAN_MOD/2) + 1)
^
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixMultiplexedCalcTeensy_Impl.h:216:25: note: in expansion of macro 'MIN_REFRESH_RATE'
if(newRefreshRate > MIN_REFRESH_RATE)
^
In file included from /home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrix3.h:140:0,
from /home/merlin/Arduino/libraries/SmartMatrix/src/SmartLEDShieldV4.h:5,
from /home/merlin/arduino/libraries/SmartMatrix/examples/FeatureDemo/FeatureDemo.ino:6:
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixCoprocessorSend_Impl.h: In static member function 'static void SmartMatrix3CoprocessorSend<refreshDepth, matrixWidth, matrixHeight, panelType, optionFlags>::setRefreshRate(uint8_t)':
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixCoprocessorSend_Impl.h:40:41: error: 'TIMER_FREQUENCY' was not declared in this scope
#define COPROCESSOR_MIN_REFRESH_RATE (((TIMER_FREQUENCY/65535)/MATRIX_SCAN_MOD) + 1)
^
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixCoprocessorSend_Impl.h:139:25: note: in expansion of macro 'COPROCESSOR_MIN_REFRESH_RATE'
if(newRefreshRate > COPROCESSOR_MIN_REFRESH_RATE)
^
In file included from /home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrix3.h:140:0,
from /home/merlin/Arduino/libraries/SmartMatrix/src/SmartLEDShieldV4.h:5,
from /home/merlin/arduino/libraries/SmartMatrix/examples/FeatureDemo/FeatureDemo.ino:6:
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixCoprocessorSend_Impl.h: In static member function 'static void SmartMatrix3CoprocessorSend<refreshDepth, matrixWidth, matrixHeight, panelType, optionFlags>::begin()':
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixCoprocessorSend_Impl.h:170:67: error: 'SPI0_PUSHR' was not declared in this scope
dmaClockOutDataCoprocessorSend.destination((volatile uint8_t&)SPI0_PUSHR);
^
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixCoprocessorSend_Impl.h:172:59: error: 'DMAMUX_SOURCE_SPI0_TX' was not declared in this scope
dmaClockOutDataCoprocessorSend.triggerAtHardwareEvent(DMAMUX_SOURCE_SPI0_TX);
^
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixCoprocessorSend_Impl.h:178:5: error: 'FTM2_SC' was not declared in this scope
FTM2_SC = 0;
^
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixCoprocessorSend_Impl.h:179:5: error: 'FTM2_CNT' was not declared in this scope
FTM2_CNT = 0;
^
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixCoprocessorSend_Impl.h:180:5: error: 'FTM2_MOD' was not declared in this scope
FTM2_MOD = COPROCESSOR_TICKS_PER_ROW;
^
In file included from /home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrix3.h:140:0,
from /home/merlin/Arduino/libraries/SmartMatrix/src/SmartLEDShieldV4.h:5,
from /home/merlin/arduino/libraries/SmartMatrix/examples/FeatureDemo/FeatureDemo.ino:6:
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixCoprocessorSend_Impl.h:35:42: error: 'F_BUS' was not declared in this scope
#define COPROCESSOR_TIMER_FREQUENCY (F_BUS/16)
^
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixCoprocessorSend_Impl.h:38:38: note: in expansion of macro 'COPROCESSOR_TIMER_FREQUENCY'
#define COPROCESSOR_TICKS_PER_ROW (COPROCESSOR_TIMER_FREQUENCY/refreshRate/MATRIX_SCAN_MOD)
^
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixCoprocessorSend_Impl.h:180:16: note: in expansion of macro 'COPROCESSOR_TICKS_PER_ROW'
FTM2_MOD = COPROCESSOR_TICKS_PER_ROW;
^
In file included from /home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrix3.h:140:0,
from /home/merlin/Arduino/libraries/SmartMatrix/src/SmartLEDShieldV4.h:5,
from /home/merlin/arduino/libraries/SmartMatrix/examples/FeatureDemo/FeatureDemo.ino:6:
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixCoprocessorSend_Impl.h:184:5: error: 'FTM2_C0V' was not declared in this scope
FTM2_C0V = 100;
^
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixCoprocessorSend_Impl.h:188:43: warning: there are no arguments to 'PORT_PCR_MUX' that depend on a template parameter, so a declaration of 'PORT_PCR_MUX' must be available [-fpermissive]
CORE_PIN3_CONFIG |= PORT_PCR_MUX(3) | PORT_PCR_DSE | PORT_PCR_SRE; \
^
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixCoprocessorSend_Impl.h:192:5: note: in expansion of macro 'ENABLE_LATCH_PWM_OUTPUT'
ENABLE_LATCH_PWM_OUTPUT();
^
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixCoprocessorSend_Impl.h:188:47: error: 'PORT_PCR_DSE' was not declared in this scope
CORE_PIN3_CONFIG |= PORT_PCR_MUX(3) | PORT_PCR_DSE | PORT_PCR_SRE; \
^
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixCoprocessorSend_Impl.h:192:5: note: in expansion of macro 'ENABLE_LATCH_PWM_OUTPUT'
ENABLE_LATCH_PWM_OUTPUT();
^
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixCoprocessorSend_Impl.h:188:62: error: 'PORT_PCR_SRE' was not declared in this scope
CORE_PIN3_CONFIG |= PORT_PCR_MUX(3) | PORT_PCR_DSE | PORT_PCR_SRE; \
^
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixCoprocessorSend_Impl.h:192:5: note: in expansion of macro 'ENABLE_LATCH_PWM_OUTPUT'
ENABLE_LATCH_PWM_OUTPUT();
^
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixCoprocessorSend_Impl.h:196:28: warning: there are no arguments to 'FTM_SC_CLKS' that depend on a template parameter, so a declaration of 'FTM_SC_CLKS' must be available [-fpermissive]
FTM2_SC = FTM_SC_CLKS(1) | FTM_SC_PS(COPROCESSOR_LATCH_TIMER_PRESCALE) | FTM_SC_TOIE;
^
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixCoprocessorSend_Impl.h:196:74: warning: there are no arguments to 'FTM_SC_PS' that depend on a template parameter, so a declaration of 'FTM_SC_PS' must be available [-fpermissive]
FTM2_SC = FTM_SC_CLKS(1) | FTM_SC_PS(COPROCESSOR_LATCH_TIMER_PRESCALE) | FTM_SC_TOIE;
^
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixCoprocessorSend_Impl.h:196:78: error: 'FTM_SC_TOIE' was not declared in this scope
FTM2_SC = FTM_SC_CLKS(1) | FTM_SC_PS(COPROCESSOR_LATCH_TIMER_PRESCALE) | FTM_SC_TOIE;
^
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixCoprocessorSend_Impl.h:198:27: error: 'IRQ_FTM2' was not declared in this scope
attachInterruptVector(IRQ_FTM2, coprocessorSendRowShiftCompleteISR<refreshDepth, matrixWidth, matrixHeight, panelType, optionFlags>);
^
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixCoprocessorSend_Impl.h: In function 'void coprocessorSendRowShiftCompleteISR()':
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixCoprocessorSend_Impl.h:240:5: error: 'SPI0_RSER' was not declared in this scope
SPI0_RSER = 0;
^
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixCoprocessorSend_Impl.h:242:5: error: 'SPI0_SR' was not declared in this scope
SPI0_SR = SPI_SR_TCF | SPI_SR_EOQF | SPI_SR_TFUF | SPI_SR_TFFF | SPI_SR_RFOF | SPI_SR_RFDF;
^
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixCoprocessorSend_Impl.h:242:15: error: 'SPI_SR_TCF' was not declared in this scope
SPI0_SR = SPI_SR_TCF | SPI_SR_EOQF | SPI_SR_TFUF | SPI_SR_TFFF | SPI_SR_RFOF | SPI_SR_RFDF;
^
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixCoprocessorSend_Impl.h:242:28: error: 'SPI_SR_EOQF' was not declared in this scope
SPI0_SR = SPI_SR_TCF | SPI_SR_EOQF | SPI_SR_TFUF | SPI_SR_TFFF | SPI_SR_RFOF | SPI_SR_RFDF;
^
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixCoprocessorSend_Impl.h:242:42: error: 'SPI_SR_TFUF' was not declared in this scope
SPI0_SR = SPI_SR_TCF | SPI_SR_EOQF | SPI_SR_TFUF | SPI_SR_TFFF | SPI_SR_RFOF | SPI_SR_RFDF;
^
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixCoprocessorSend_Impl.h:242:56: error: 'SPI_SR_TFFF' was not declared in this scope
SPI0_SR = SPI_SR_TCF | SPI_SR_EOQF | SPI_SR_TFUF | SPI_SR_TFFF | SPI_SR_RFOF | SPI_SR_RFDF;
^
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixCoprocessorSend_Impl.h:242:70: error: 'SPI_SR_RFOF' was not declared in this scope
SPI0_SR = SPI_SR_TCF | SPI_SR_EOQF | SPI_SR_TFUF | SPI_SR_TFFF | SPI_SR_RFOF | SPI_SR_RFDF;
^
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixCoprocessorSend_Impl.h:242:84: error: 'SPI_SR_RFDF' was not declared in this scope
SPI0_SR = SPI_SR_TCF | SPI_SR_EOQF | SPI_SR_TFUF | SPI_SR_TFFF | SPI_SR_RFOF | SPI_SR_RFDF;
^
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixCoprocessorSend_Impl.h:246:17: error: 'SPI_RSER_TFFF_RE' was not declared in this scope
SPI0_RSER = SPI_RSER_TFFF_RE | SPI_RSER_TFFF_DIRS;
^
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixCoprocessorSend_Impl.h:246:36: error: 'SPI_RSER_TFFF_DIRS' was not declared in this scope
SPI0_RSER = SPI_RSER_TFFF_RE | SPI_RSER_TFFF_DIRS;
^
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixCoprocessorSend_Impl.h:252:5: error: 'FTM2_SC' was not declared in this scope
FTM2_SC &= ~FTM_SC_TOF;
^
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixCoprocessorSend_Impl.h:252:17: error: 'FTM_SC_TOF' was not declared in this scope
FTM2_SC &= ~FTM_SC_TOF;
^
In file included from /home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrix3.h:127:0,
from /home/merlin/Arduino/libraries/SmartMatrix/src/SmartLEDShieldV4.h:5,
from /home/merlin/arduino/libraries/SmartMatrix/examples/FeatureDemo/FeatureDemo.ino:6:
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixCoprocessorCalc_Impl.h: In static member function 'static void SmartMatrixCoprocessorCalc<refreshDepth, matrixWidth, matrixHeight, panelType, optionFlags>::matrixCalculations(bool)':
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixMultiplexedRefreshTeensy_Impl.h:53:32: error: 'TIMER_FREQUENCY' was not declared in this scope
#define MIN_REFRESH_RATE (((TIMER_FREQUENCY/65535)/MATRIX_SCAN_MOD/2) + 1)
^
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixCoprocessorCalc_Impl.h:99:47: note: in expansion of macro 'MIN_REFRESH_RATE'
if(!initial && calc_refreshRate > MIN_REFRESH_RATE) {
^
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixMultiplexedRefreshTeensy_Impl.h:53:32: error: 'TIMER_FREQUENCY' was not declared in this scope
#define MIN_REFRESH_RATE (((TIMER_FREQUENCY/65535)/MATRIX_SCAN_MOD/2) + 1)
^
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixCoprocessorCalc_Impl.h:148:35: note: in expansion of macro 'MIN_REFRESH_RATE'
if(calc_refreshRate > MIN_REFRESH_RATE) {
^
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixCoprocessorCalc_Impl.h: In member function 'void SmartMatrixCoprocessorCalc<refreshDepth, matrixWidth, matrixHeight, panelType, optionFlags>::setRefreshRate(uint8_t)':
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixMultiplexedRefreshTeensy_Impl.h:53:32: error: 'TIMER_FREQUENCY' was not declared in this scope
#define MIN_REFRESH_RATE (((TIMER_FREQUENCY/65535)/MATRIX_SCAN_MOD/2) + 1)
^
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixCoprocessorCalc_Impl.h:204:25: note: in expansion of macro 'MIN_REFRESH_RATE'
if(newRefreshRate > MIN_REFRESH_RATE)
^
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixAPA102Calc_Impl.h: In member function 'void SmartMatrixApaCalc<refreshDepth, matrixWidth, matrixHeight, panelType, optionFlags>::setRefreshRate(uint8_t)':
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixMultiplexedRefreshTeensy_Impl.h:53:32: error: 'TIMER_FREQUENCY' was not declared in this scope
#define MIN_REFRESH_RATE (((TIMER_FREQUENCY/65535)/MATRIX_SCAN_MOD/2) + 1)
^
/home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrixAPA102Calc_Impl.h:179:25: note: in expansion of macro 'MIN_REFRESH_RATE'
if(newRefreshRate > MIN_REFRESH_RATE)
^
In file included from /home/merlin/Arduino/libraries/SmartMatrix/src/Layer_Background.h:117:0,
from /home/merlin/Arduino/libraries/SmartMatrix/src/SmartMatrix3.h:48,
from /home/merlin/Arduino/libraries/SmartMatrix/src/SmartLEDShieldV4.h:5,
from /home/merlin/arduino/libraries/SmartMatrix/examples/FeatureDemo/FeatureDemo.ino:6:
/home/merlin/Arduino/libraries/SmartMatrix/src/Layer_Background_Impl.h: In instantiation of 'void SMLayerBackground<RGB, optionFlags>::drawString(int16_t, int16_t, const RGB&, const char*) [with RGB = rgb24; unsigned int optionFlags = 0u; int16_t = short int]':
/home/merlin/arduino/libraries/SmartMatrix/examples/FeatureDemo/FeatureDemo.ino:704:104: required from here