diff options
| author | mrfaptastic <12006953+mrfaptastic@users.noreply.github.com> | 2023-01-30 04:20:07 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-30 04:20:07 +0000 |
| commit | c23e8878188e4a8f5d298670a40e98521deea133 (patch) | |
| tree | ab27d81c2edf99d70f0179f863904bb7aa173346 /examples/PIO_TestPatterns/src | |
| parent | fd5aba705456ea6f87069a7942aaaf849263eeeb (diff) | |
| parent | a85b0e649ffa9da618b1610cecd212b72800d3bc (diff) | |
Merge pull request #385 from elliotmatson/master
Move CI to a matrix, add ESP-IDF coverage
Diffstat (limited to 'examples/PIO_TestPatterns/src')
| -rw-r--r-- | examples/PIO_TestPatterns/src/main.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/PIO_TestPatterns/src/main.cpp b/examples/PIO_TestPatterns/src/main.cpp index 6325b63..40d077e 100644 --- a/examples/PIO_TestPatterns/src/main.cpp +++ b/examples/PIO_TestPatterns/src/main.cpp @@ -1,14 +1,14 @@ // How to use this library with a FM6126 panel, thanks goes to: // https://github.com/hzeller/rpi-rgb-led-matrix/issues/746 -/* -// IDF +#ifdef IDF_BUILD #include <stdio.h> #include <freertos/FreeRTOS.h> #include <freertos/task.h> #include <driver/gpio.h> #include "sdkconfig.h" -*/ +#endif + #include <Arduino.h> #include "xtensa/core-macros.h" #ifdef VIRTUAL_PANE @@ -241,7 +241,7 @@ void loop(){ delay(PATTERN_DELAY); // -#ifdef TEST_FASTLINES +#ifndef NO_FAST_FUNCTIONS // Fillrate for fillRect() function Serial.print("Estimating fullscreen fillrate with fillRect() time: "); t1 = micros(); @@ -293,7 +293,7 @@ void loop(){ Serial.printf("%lu us, %u ticks\n", t2, ccount1); delay(PATTERN_DELAY); -#ifdef TEST_FASTLINES +#ifndef NO_FAST_FUNCTIONS Serial.println("Estimating V-lines with vlineDMA(): "); // matrix->fillScreen(0); color2 = random8(); @@ -347,7 +347,7 @@ void loop(){ Serial.printf("%lu us, %u ticks\n", t2, ccount1); delay(PATTERN_DELAY); -#ifdef TEST_FASTLINES +#ifndef NO_FAST_FUNCTIONS Serial.println("Estimating H-lines with hlineDMA(): "); matrix->fillScreen(0); color2 = random8(); |
