Here is an attempt to use the Pokitto SD card by plugging in the Pokitto and it detecting as mass storage device.
It doesn’t seem to work properly yet. Perhaps it can be adapted to use the existing Pokitto SD
functions?
– UPDATE –
After reformatting my SD card to FAT32 following a hint on discord by @jonne about why a different project might not be behaving correctly, this seems to work quite well, not much in the way of slowness etc.
Still use at own risk, but I believe the risk is low.
i tested this. The contents of the SD was showing ok in Linux. I could navigate to a folder. But when I tried to copy (replace) a 17Mb file to that folder the copy just hanged.
There might not be an error after all. It is just a bit slow I tried with a 1 Mb file and it succeeded in about 20-30 sec. So 17Mb would take about 425 s. I probably just did not wait long enough (there are no actual progress bar).
I used a normal micro-usb charging cable with an OTG adapter on the phone side. The first link is the one you would need. Internally the adapter shorts the extra micro-usb pin so that the phone knows it HAS to be host. (or os it that the device knows it HAS to be slave?)… Either way an OTG adapter is what you need.
No idea, I don’t have one. I only know that the 5th pin on micro-usb it to signify a slave device, so an OTG adapter has this bridged to ground to tell the phone to always act as the host.
Well alternatively i have been using an otg cable and an SD card reader to add/flash games on the go using my phone since almost day one as i am rarely in front of a computer in my free time .
If one of those command-functions in USBMSD_SD.cpp is related to the start/end of reading the file from SPI, that could be hacked to write something on the screen. Thought, updating the whole screen buffer to the screen might cause unwanted delays to the SPI traffic(?), so maybe using direct screen drawing to draw an indicator to the screen would be more SPI friendly.
I just noticed this do not appear in the Pokitto “Games, Apps & Demos” list. @spinal could you add “[TOOL]” to the title to make it appear in the list?
Edit: Not sure if the “tool” tag is also needed.
My old usb-to-SD adapter did not recognize any SD card any more but once again I could store files to Pokitto SD by using this wonderful program, the “USB mass storage device”