# Using tone function and pushbutton toggle problem

**URL:** <https://forum.arduino.cc/t/using-tone-function-and-pushbutton-toggle-problem/1018538>\
**Category:** General Guidance\
**Created:** [August 2, 2022, 4:04pm UTC](https://forum.arduino.cc/t/using-tone-function-and-pushbutton-toggle-problem/1018538 "2022-08-02T16:04:45Z")\
**Posts on this page:** 1\
**Showing post:** 20

<div class="post-metadata">

**Author:** ![alto777](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/alto777/32/317385_2.png) [@alto777](https://forum.arduino.cc/u/alto777)\
**Post date:** [August 8, 2022, 10:14pm UTC](https://forum.arduino.cc/t/using-tone-function-and-pushbutton-toggle-problem/1018538/20 "2022-08-08T22:14:57Z")

</div>

Step by step.

I was able to copy the chunk that differs into my wokwi and execute your new block.

I think this thread I found might be worth a look.

> [@Trying to create an asymmetrical blink without delay PLEASE HELP!](https://forum.arduino.cc/t/trying-to-create-an-asymmetrical-blink-without-delay-please-help/294231):
>
> I am trying to create a heart beat using a relay + light and I can't have a delay because I am using a ping sensor and motor to make the heart beat faster and sculpture vibrate as you get closer. This is for a sculpture I am doing and my professor and I have tried many ways but can't seem to get it to work. All I need is the relay heart heart beat code and what I would I would map. I can do the rest. PLEASE HELP stuck_out_tongue_closed_eyes cry !!!!!

a7

---

_[View the full topic](https://forum.arduino.cc/t/using-tone-function-and-pushbutton-toggle-problem/1018538)._
