# Synchronizing led with buzzer

**URL:** <https://forum.arduino.cc/t/synchronizing-led-with-buzzer/993217>\
**Category:** Programming\
**Created:** [May 18, 2022, 7:07pm UTC](https://forum.arduino.cc/t/synchronizing-led-with-buzzer/993217 "2022-05-18T19:07:08Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![ToddL1962](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/toddl1962/32/225060_2.png) [@ToddL1962](https://forum.arduino.cc/u/ToddL1962)\
**Post date:** [May 18, 2022, 7:44pm UTC](https://forum.arduino.cc/t/synchronizing-led-with-buzzer/993217/6 "2022-05-18T19:44:38Z")

</div>

> [@abddra](#):
>
> I was wondering how would I get the LED to turn on when the buzzer is on

Git rid of _delay()_ calls and use _millis()_. The following tutorials should help:

[Example-code for timing based on millis()](https://forum.arduino.cc/t/example-code-for-timing-based-on-millis-easier-to-understand-through-the-use-of-example-numbers-avoiding-delay/974017)

---

_[View the full topic](https://forum.arduino.cc/t/synchronizing-led-with-buzzer/993217)._
