# More than 2 analogWrite blocks crashes the code

**URL:** https://forum.makecode.com/t/more-than-2-analogwrite-blocks-crashes-the-code/1681
**Category:** Maker
**Created:** [April 13, 2020, 5:10pm UTC](https://forum.makecode.com/t/more-than-2-analogwrite-blocks-crashes-the-code/1681 "2020-04-13T17:10:58Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![suraj022](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/suraj022/32/821_2.png) [@suraj022](https://forum.makecode.com/u/suraj022)
#### Post date: [April 13, 2020, 5:10pm UTC](https://forum.makecode.com/t/more-than-2-analogwrite-blocks-crashes-the-code/1681/1 "2020-04-13T17:10:58Z")

</div>

Hi

I’m using a feather M0 express board and whenever I add more than 2 analogWrite functions to the forever block the code doen’t work. the code is as follows

> **[analogwrite test](https://maker.makecode.com/11357-24877-78748-71379)**
>
> Made with ❤️ in MakeCode Maker - Blocks / Javascript editor.

thanks.

---

<div class="post-metadata">

### Author: ![gfdfranco](https://avatars.discourse-cdn.com/v4/letter/g/db5fbb/32.png) [@gfdfranco](https://forum.makecode.com/u/gfdfranco)
#### Post date: [September 2, 2020, 5:37am UTC](https://forum.makecode.com/t/more-than-2-analogwrite-blocks-crashes-the-code/1681/2 "2020-09-02T05:37:44Z")

</div>

I have the same problem
