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

    Stamp-Pico Arduino lib?

    Cores
    3
    4
    5.5k
    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.
    • vkichlineV
      vkichline
      last edited by

      https://docs.m5stack.com/en/arduino/arduino_development mentions the new stamp-pico, but falls short of mentioning what library/header one uses in an Arduino Stamp sketch for it.
      Would it use M5Atom.h?
      Thanks!

      1 Reply Last reply Reply Quote 0
      • felmueF
        felmue
        last edited by

        Hello @vkichline

        interesting question. Looking at the schematics of M5Atom and M5Stamp it looks like they are mostly the same.
        Same:

        • ESP32 PICO
        • RGB LED - GPIO27
        • Button - GPIO39

        Different:

        • Groove - GPIO32/26 (M5Atom) vs. GPIO33/32 (M5Stamp)

        So, yes, I'd say using the M5Atom Arduino library should get you started.

        Thanks
        Felix

        GPIO translation table M5Stack / M5Core2
        Information about various M5Stack products.
        Code examples

        1 Reply Last reply Reply Quote 0
        • ajb2k3A
          ajb2k3
          last edited by

          The M5Stamp uses an ESP32 PICO D4 and so any library that supports the Pico D4 is usable.
          You just need to make sure to define the pins correctly in your code.
          StickC and Atom are both Pico D4 and should be ok but will have different pins defined.

          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!

          1 Reply Last reply Reply Quote 0
          • vkichlineV
            vkichline
            last edited by

            Felix; thanks for the tip in the Grove pinout; exactly where I was stuck after experimenting.

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