Forum Rule: Always post complete source code & details to reproduce any issue!
-
portable Arduino-IDE compiler-error 'BUILTIN_SDCARD' was not declared in this scope
Hi everybody,
I installed the Arduino-for-windows1.8.13-zip-file to the folder
D:\ArduPTest\arduino-1.8.13portable\arduino-1.8.13
Then run the TeensyduinoInstall.exe and chosed this folder
D:\ArduPTest\arduino-1.8.13portable\arduino-1.8.13
to install the Teendyduino-addon.
If I start this portable version the teensys show up in the boardmanager
but If I try to compile a sketch that uses SD-Card from this codeline
Code:
const int chipSelect = BUILTIN_SDCARD;
I get the error-message
exit status 1
'BUILTIN_SDCARD' was not declared in this scope
So did I do something wrong with the folder?
Does it have to be the portable-folder?
best regards Stefan
-
Which Teensy are you compiling this for? The earlier ones don't have a builtin SD card.
Or insert #include <SD.h> at the top of the file.
Pete
-
Hi pete,
it is a 4.1. in the meantime I found the cause for the error. I simply had the Arduino-IDE configured for Arduino Uno instead for Teensy 4.1
now everything compiles.
Thank you for asking "which Teensy"
best regards Stefan
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules