Hi everyone!
I am having problems saving images from my OpenMV camera to an SD Card.
I imported the machine library and used the code: sd = machine.SDCard() to initialize the SD Card. I get the error ‘module’ object has no attribute 'SDCard." Any advice would be greatly appreciated.
I’m using a microSD card and I did not have to initialize the sd card at all. I’m using the H7 Plus but I don’t think it matters. Can you just try to save to a directory on the sd card without the initialization? See a similar example with the on disk frame differencing example here: openmv/on_disk_basic_frame_differencing.py at master · openmv/openmv · GitHub
Hi, you don’t want to use that API.
You just do open() in Python and you can talk to the SD card. It’s already setup like in normal Python on an operating system.
That machine API is for like but banging an SD card attached to I/O pins.