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

    Background noise

    General
    3
    4
    7.2k
    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.
    • D
      DavMartEs
      last edited by

      Does anyone knows how to silent the digital background noise from the loudspeaker without cutting the speaker wires? Sketch alarms should still be audible.

      1 Reply Last reply Reply Quote 0
      • lukasmaximusL
        lukasmaximus
        last edited by

        Which environment are you developing in? Arduino, micropython, esp-idf?

        1 Reply Last reply Reply Quote 0
        • Z
          zhufu86
          last edited by

          I use the code below. Works for me...

          dac = machine.DAC(machine.Pin(25))
          dac.write(0)
          
          1 Reply Last reply Reply Quote 1
          • lukasmaximusL
            lukasmaximus
            last edited by

            For arduino you should be able to use this,
            dacWrite (25,0);

            there will still be a tiny sound, but barely audible

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