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

    How to use the Buzzer in M5Stick

    UIFlow
    m5stick buzzer
    2
    2
    9.0k
    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.
    • A
      an-erd
      last edited by

      I tried to use the buzzer on M5Stick.
      In UIFlow I used Advanced > PIN > digital write pin 26 to 1, but you don't hear the buzzer. You can feel that M5Stick "tries" to do it.

      So what did I wrong? I expected to have a buffer as in a mobile phone to at least feel if vibrating or to hear a beep?

      ajb2k3A 1 Reply Last reply Reply Quote 0
      • ajb2k3A
        ajb2k3 @an-erd
        last edited by

        @an-erd said in How to use the Buzzer in M5Stick:

        I tried to use the buzzer on M5Stick.
        In UIFlow I used Advanced > PIN > digital write pin 26 to 1, but you don't hear the buzzer. You can feel that M5Stick "tries" to do it.

        So what did I wrong? I expected to have a buffer as in a mobile phone to at least feel if vibrating or to hear a beep?

        You don't do that in UIflow, you use speaker.tone(1600, 200) or speaker.sing(220, 1)

        from m5stack import *
        from m5ui import *
        
        clear_bg(0x111111)
        
        
        
        
        
        speaker.tone(1600, 200)
        speaker.sing(220, 1)
        

        or the Speaker beep and play tone blocks in the blocky mode.

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