🤖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?

    Cores
    3
    3
    4.7k
    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
      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
        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
          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
          • First post
            Last post