🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    TF-Card

    Atom
    2
    5
    733
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • I
      imahgin
      last edited by

      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

      I 1 Reply Last reply Reply Quote 0
      • I
        imahgin @imahgin
        last edited by

        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

        I 1 Reply Last reply Reply Quote 0
        • I
          imahgin @imahgin
          last edited by

          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'))
          
          ajb2k3A 1 Reply Last reply Reply Quote 1
          • ajb2k3A
            ajb2k3 @imahgin
            last edited by

            @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.

            UIFlow, so easy an adult can learn it!
            If I don't know it, be patient!
            I've ether not learned it or am too drunk to remember it!
            Author of the WIP UIFlow Handbook!
            M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

            I 1 Reply Last reply Reply Quote 0
            • I
              imahgin @ajb2k3
              last edited by

              @ajb2k3 said in TF-Card:

              @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.

              Ok, thks.
              In the meantime, I'll use this code to access to the microSD
              BR

              1 Reply Last reply Reply Quote 0
              • First post
                Last post