Hi David,
Thanks for the reply.
Yes it was a bit silly that I forgot to include an .ino file.
I’ve included your neopixels.ino , and with a minor addition of
#define NEOPIXEL_NUM 4
#define PIN_NEOPIXEL 9
I got it working.
But , remember the (directory) you created last week , there still is an issue :
/home/ronny/Arduino/sketch_aug20a/sketch_aug20a.ino: In function ‘int saveimage(object*)’:
/home/ronny/Arduino/sketch_aug20a/sketch_aug20a.ino:953:64: warning: unsigned conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} changes value from ‘1538’ to ‘2’ [-Woverflow]
953 | file = SD.open(MakeFilename(arg, buffer), O_RDWR | O_CREAT | O_TRUNC);
| ^
/home/ronny/Arduino/sketch_aug20a/sketch_aug20a.ino:957:51: warning: unsigned conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} changes value from ‘1538’ to ‘2’ [-Woverflow]
957 | file = SD.open("/ULISP.IMG", O_RDWR | O_CREAT | O_TRUNC);
| ^
/home/ronny/Arduino/sketch_aug20a/directory.ino: In function ‘object* fn_directory(object*, object*)’:
/home/ronny/Arduino/sketch_aug20a/directory.ino:7:11: error: no matching function for call to ‘SDClass::begin(int, SPIClass&)’
7 | SD.begin(SDCARD_SS_PIN,SPI1);
| ^~~~~~~~~~~~
In file included from /home/ronny/Arduino/sketch_aug20a/sketch_aug20a.ino:32:
/home/ronny/.arduino15/packages/teensy/hardware/avr/1.58.1/libraries/SD/src/SD.h:180:14: note: candidate: ‘bool SDClass::begin(uint8_t)’
180 | bool begin(uint8_t csPin = 10);
| ^~~~~
/home/ronny/.arduino15/packages/teensy/hardware/avr/1.58.1/libraries/SD/src/SD.h:180:14: note: candidate expects 1 argument, 2 provided
Multiple libraries were found for “SD.h”
Used: /home/ronny/.arduino15/packages/teensy/hardware/avr/1.58.1/libraries/SD
Not used: /home/ronny/.arduino15/libraries/SD
Not used: /home/ronny/Arduino/libraries/SD
Using library SPI at version 1.0 in folder: /home/ronny/.arduino15/packages/teensy/hardware/avr/1.58.1/libraries/SPI
Using library Wire at version 1.0 in folder: /home/ronny/.arduino15/packages/teensy/hardware/avr/1.58.1/libraries/Wire
Using library SD at version 2.0.0 in folder: /home/ronny/.arduino15/packages/teensy/hardware/avr/1.58.1/libraries/SD
Using library SdFat at version 2.1.2 in folder: /home/ronny/.arduino15/packages/teensy/hardware/avr/1.58.1/libraries/SdFat
Using library LittleFS at version 1.0.0 in folder: /home/ronny/.arduino15/packages/teensy/hardware/avr/1.58.1/libraries/LittleFS
exit status 1
Compilation error: no matching function for call to ‘SDClass::begin(int, SPIClass&)’
I will try to upload the directory.ino
Regards,
Ronny