TF-Card
-
I own a TF-Card and wanted to create an example using UIFlow.
As I can see in the TF-Reader schematics, header 5 contains the SPI pins, but in the AtomS3, this header is mapped to GPIO G5-G8, ADC and touch.
In PinMap MOSI, CLK and MISO are respectively GPIO19, GPIO23 and GPIO33
How can I configure it to use the SD card?BR
-
Acording to the product page it is compatible with Atom Matrix, Atom Lite, AtomS3, and AtomS3 Lite.
There is available an ATOM TF-CARD Kit which includes an AtomS3 Lite, and according to its pinout, MISO, MOSI and CLK are maped to header 5, but AtomS3 don't!!!BR
-
It turns out that there are some missing information -or I didn't find it- regarding to the SPI module.
The information available in the TF-Card page doesn't apply to the AtomS3 and there is no TF-CARD module in the Unit selection insdide UIFlow.I compiled and ran the example for the Arduino IDE and then tried again to build a working example using microPython.
To whom it may interest, this is the code that works with my device:
import os from machine import SDCard from machine import Pin sd = SDCard(slot=3, miso=Pin(8), mosi=Pin(6), sck=Pin(7), cs=Pin(5)) sd.info() os.mount(sd, '/sd') print("SD card mounted at \"/sd\"") print(os.listdir('/sd')) -
@imahgin The TF adapter will be added to the BASE menu in UIFlow when the programmer get through the back log and there is no TF UNIT.
-
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login