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

    GPIO16 as input not working?

    Scheduled Pinned Locked Moved Cores
    3 Posts 3 Posters 5.8k Views
    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.
    • T Offline
      Thomasx
      last edited by

      Hi

      I am trying to use GPIO16 as input on an M5Stack Core, but it does not work.
      I tried using GPIO35 instead and that worked fine.

      But I want this signal on GPIO16. Any ideas on how to make that work?
      When searching for info on this I have not found any info that it shouldn't work. In general it says that it should work to use GPIO16 both as output and input.

      I am using GPIO17 as output and that is working fine.

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

        Hello @Thomasx

        judging from your other posts I assume you mean M5Core2 (the one with touch interface). If so on M5Core2 GPIO16 and GPIO17 are used internally for PSRAM - they cannot be used for anything else.

        Note: if for whatever reason you really need GPIO16 as output you'd need to switch to an M5Stack (Basic, Go or Gray). Not M5Stack Fire as it also has PSRAM.

        Thanks
        Felix

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

        1 Reply Last reply Reply Quote 0
        • M Offline
          macsbug
          last edited by macsbug

          GPIO is written in PinMap of M5Unified.

          M5Unified:PinMap
          https://github.com/m5stack/M5Unified

          0_1643950391586_pinmap.png

          1 Reply Last reply Reply Quote 1

          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
          • First post
            Last post