Closed phunanon closed 4 years ago
You need to add a #define such as:
#define SDCARD_SS_PIN 4
to specify which pin you're using for select.
@technoblogy, I tried this in the Arduino SD card info example, which also didn't work, and booting uLisp and evaluating (save-image)
gave:
Error: 'save-image' problem saving to SD card
For clarity, this is the R2 version, which is mounting correctly as a USB device on my machine. I haven't tried it for CircuitPython stuff though.
How are you connecting an SD card to the Serpente board?
Ah, I apologise greatly. I didn't realise that SD support and flash support were two different concepts - I'm new to the device and thought it was an emulated SD 4MB card through SPI or something.
It might be a nice idea to include the Flash code as a separate reusable library, but I'm not so aware on how uLisp is implemented across platforms.
Thank you for your time! 😅
Never mind again... https://github.com/technoblogy/simple-dataflash
You're welcome!
Uncommenting
sdcardsupport
with serpente-core installed:'SDCARD_SS_PIN' was not declared in this scope