I was trying to write an interface to make the file library a bit easier to use, but for some reason when I use a global
SDFileSystem, the Pokitto’s buttons (apart from the right button) become unresponsive.
I’m using the same pins used in other examples:
SDFileSystem sd ( /*MOSI*/P0_9, /*MISO*/P0_8, /*SCK*/P0_6, /*CS*/P0_7, /*Mountpoint*/"sd", NC, SDFileSystem::SWITCH_NONE, 25000000 );
If I remove the object, the buttons work again.
Here’s the bin with
WithSD.bin (53.4 KB)
Here’s the bin without
NoSD.bin (25.0 KB)
And here’s the code:
The annoying thing is I did manage to get
SDFileSystem working before, hence this thread.
It’s possible that the two are related somehow.
It’s also possible that it might be a mistake in my project settings, but I think it’s unlikely.