Using this code by: SmartMatrix Library written by Louis Beaudoin at pixelmatix.com
*
Written by: Craig A. Lindley
I get this compiling error: decoder.setFileSizeCallback(fileSizeCallback);
Stated in the docs it says: See the examples for a reference.
Okay, where are they?
I’ve copied and sent the error codes but I don’t know if they’re sent because I get this message:
An error occurred: Body is limited to 32000 characters; you entered 148692.
// Setup method runs once, when the sketch starts
void setup() {
decoder.setScreenClearCallback(screenClearCallback);
decoder.setUpdateScreenCallback(updateScreenCallback);
decoder.setDrawPixelCallback(drawPixelCallback);
decoder.setFileSeekCallback(fileSeekCallback);
decoder.setFilePositionCallback(filePositionCallback);
decoder.setFileReadCallback(fileReadCallback);
decoder.setFileReadBlockCallback(fileReadBlockCallback);
// NOTE: new callback function required after we moved to using the external AnimatedGIF library to decode GIFs
decoder.setFileSizeCallback(fileSizeCallback);
pragma message “SmartMatrix Library version 4.000.003”
^
sketch_mar13a: In function ‘void setup()’:
sketch_mar13a:178: error: ‘fileSizeCallback’ was not declared in this scope
decoder.setFileSizeCallback(fileSizeCallback);
^
sketch_mar13a:221: error: ‘initFileSystem’ was not declared in this scope
if(initFileSystem(SD_CS) < 0) {
^
Multiple libraries were found for “MatrixHardware_Teensy4_ShieldV5.h”
Used: /Users/alfredolivas/Desktop/Arduino/Sketchbook/libraries/SmartMatrix-master
Not used: /Users/alfredolivas/Desktop/Arduino/Sketchbook/libraries/SmartMatrix-4.0.3
Multiple libraries were found for “SD.h”
Used: /private/var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/AppTranslocation/B009F51A-62D4-4785-9044-2D140C3D2BA3/d/Arduino 3.app/Contents/Java/hardware/teensy/avr/libraries/SD
Not used: /private/var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/AppTranslocation/B009F51A-62D4-4785-9044-2D140C3D2BA3/d/Arduino 3.app/Contents/Java/libraries/SD
Not used: /Users/alfredolivas/Desktop/Arduino/Sketchbook/libraries/SD-master
Multiple libraries were found for “SdFat.h”
Used: /private/var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/AppTranslocation/B009F51A-62D4-4785-9044-2D140C3D2BA3/d/Arduino 3.app/Contents/Java/hardware/teensy/avr/libraries/SdFat
Not used: /Users/alfredolivas/Desktop/Arduino/Sketchbook/libraries/SdFat_-_Adafruit_Fork
Multiple libraries were found for “GifDecoder.h”
Used: /Users/alfredolivas/Desktop/Arduino/Sketchbook/libraries/GifDecoder
Not used: /Users/alfredolivas/Desktop/Arduino/Sketchbook/libraries/AnimatedGIFs-master
Not used: /Users/alfredolivas/Desktop/Arduino/Sketchbook/libraries/GifDecoder-master
Not used: /Users/alfredolivas/Desktop/Arduino/Sketchbook/libraries/AnimatedGIFs_SD-master
Using library SmartMatrix-master at version 4.0.3 in folder: /Users/alfredolivas/Desktop/Arduino/Sketchbook/libraries/SmartMatrix-master
Using library SD at version 2.0.0 in folder: /private/var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/AppTranslocation/B009F51A-62D4-4785-9044-2D140C3D2BA3/d/Arduino 3.app/Contents/Java/hardware/teensy/avr/libraries/SD
Using library SdFat at version 2.1.0 in folder: /private/var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/AppTranslocation/B009F51A-62D4-4785-9044-2D140C3D2BA3/d/Arduino 3.app/Contents/Java/hardware/teensy/avr/libraries/SdFat
Using library SPI at version 1.0 in folder: /private/var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/AppTranslocation/B009F51A-62D4-4785-9044-2D140C3D2BA3/d/Arduino 3.app/Contents/Java/hardware/teensy/avr/libraries/SPI
Using library GifDecoder at version 1.1.0 in folder: /Users/alfredolivas/Desktop/Arduino/Sketchbook/libraries/GifDecoder
Using library AnimatedGIF at version 1.4.7 in folder: /Users/alfredolivas/Desktop/Arduino/Sketchbook/libraries/AnimatedGIF
Using library AnimatedGIFs_SD-master in folder: /Users/alfredolivas/Desktop/Arduino/Sketchbook/libraries/AnimatedGIFs_SD-master (legacy)
‘fileSizeCallback’ was not declared in this scope