# What does "parts" attribute do?

**URL:** https://forum.makecode.com/t/what-does-parts-attribute-do/1821
**Category:** PXT
**Created:** [April 24, 2020, 11:19am UTC](https://forum.makecode.com/t/what-does-parts-attribute-do/1821 "2020-04-24T11:19:10Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![mkilpatr](https://avatars.discourse-cdn.com/v4/letter/m/ccd318/32.png) [@mkilpatr](https://forum.makecode.com/u/mkilpatr)
#### Post date: [April 24, 2020, 11:19am UTC](https://forum.makecode.com/t/what-does-parts-attribute-do/1821/1 "2020-04-24T11:19:10Z")

</div>

What exactly is the parts attribute for in the block annotations, please? There are examples in the “game” extension for the Microbit. When is it required and for what?

```
//% weight=60 blockGap=8 help=game/create-sprite
//% blockId=game_create_sprite block="create sprite at|x: %x|y: %y"
//% parts="ledmatrix"
export function createSprite(x: number, y: number): LedSprite {
    init();
    let p = new LedSprite(x, y);
    return p;
}
```

---

<div class="post-metadata">

### Author: ![richard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/richard/32/5417_2.png) [@richard](https://forum.makecode.com/u/richard)
#### Post date: [April 24, 2020, 3:19pm UTC](https://forum.makecode.com/t/what-does-parts-attribute-do/1821/2 "2020-04-24T15:19:12Z")

</div>

Those attributes shouldn’t necessary for micro:bit! I think the led matrix ones just never got cleaned up. It’s used for the breadboarding support MakeCode has. The easiest place to see it in action is [maker.makecode.com](http://maker.makecode.com); as you start to place blocks in the workspace you should see the simulator add the required hardware components to a breadboard.

---

<div class="post-metadata">

### Author: ![mkilpatr](https://avatars.discourse-cdn.com/v4/letter/m/ccd318/32.png) [@mkilpatr](https://forum.makecode.com/u/mkilpatr)
#### Post date: [April 24, 2020, 3:52pm UTC](https://forum.makecode.com/t/what-does-parts-attribute-do/1821/3 "2020-04-24T15:52:02Z")

</div>

Oh, I see. That’s a pretty nifty simulator.

Erm, is it possible to generate simulators for various LED displays such as the Pimoroni scroll:bit (and other things which use the IS31FL3731 matrix driver IC), or the Neopixel ZIP halo, the 8x8 ZIP tile, etc?

---

<div class="post-metadata">

### Author: ![peli](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/peli/32/12_2.png) [@peli](https://forum.makecode.com/u/peli)
#### Post date: [April 24, 2020, 3:58pm UTC](https://forum.makecode.com/t/what-does-parts-attribute-do/1821/4 "2020-04-24T15:58:24Z")

</div>

Currently we don’t support any “shape” for the LEDs.

---

<div class="post-metadata">

### Author: ![mkilpatr](https://avatars.discourse-cdn.com/v4/letter/m/ccd318/32.png) [@mkilpatr](https://forum.makecode.com/u/mkilpatr)
#### Post date: [April 24, 2020, 4:04pm UTC](https://forum.makecode.com/t/what-does-parts-attribute-do/1821/5 "2020-04-24T16:04:32Z")

</div>

Ah, but I see the [maker.makecom.com](http://maker.makecom.com) environment uses the sprite editor which looks like the one in Arcade, and it can create an image of any dimension. I wish you could make a monochrome copy of that for the Microbit world!

---

<div class="post-metadata">

### Author: ![peli](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/peli/32/12_2.png) [@peli](https://forum.makecode.com/u/peli)
#### Post date: [April 25, 2020, 6:47pm UTC](https://forum.makecode.com/t/what-does-parts-attribute-do/1821/6 "2020-04-25T18:47:15Z")

</div>

@richard can the sprite editor a Microbit image literal? We have grayscale in microbit 🙂

---

<div class="post-metadata">

### Author: ![richard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/richard/32/5417_2.png) [@richard](https://forum.makecode.com/u/richard)
#### Post date: [April 27, 2020, 4:47pm UTC](https://forum.makecode.com/t/what-does-parts-attribute-do/1821/7 "2020-04-27T16:47:20Z")

</div>

You could add a flag that does it but the sprite editor seems like overkill to me
