# V2 simulator image for extension

**URL:** <https://forum.makecode.com/t/v2-simulator-image-for-extension/9220>\
**Category:** micro:bit\
**Created:** [July 15, 2021, 4:12pm UTC](https://forum.makecode.com/t/v2-simulator-image-for-extension/9220 "2021-07-15T16:12:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![halspeed](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/halspeed/32/3848_2.png) [@halspeed](https://forum.makecode.com/u/halspeed)\
**Post date:** [July 15, 2021, 4:12pm UTC](https://forum.makecode.com/t/v2-simulator-image-for-extension/9220/1 "2021-07-15T16:12:47Z")

</div>

As an extension author, is there a way to change the simulator image to V2 when the extension loads or when an extension block is used?

---

<div class="post-metadata">

**Author:** ![halspeed](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/halspeed/32/3848_2.png) [@halspeed](https://forum.makecode.com/u/halspeed)\
**Post date:** [July 21, 2021, 3:23pm UTC](https://forum.makecode.com/t/v2-simulator-image-for-extension/9220/2 "2021-07-21T15:23:50Z")

</div>

From the MakeCode and micro:bit teams (thanks Mark):

We switch to v2 sim based off the v2 exclusive parts; e.g. this parts attribute on a microphone block: [https://github.com/microsoft/pxt-microbit/blob/master/libs/microphone/microphone.cpp#L78](https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fpxt-microbit%2Fblob%2Fmaster%2Flibs%2Fmicrophone%2Fmicrophone.cpp%23L78&data=04%7C01%7Cabchatra%40microsoft.com%7Cefa8c08b421e47e8ddca08d94af8cd94%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637623254728683085%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=vJKco9q4xiaZ78e4ookpu%2F8SjpgyijPdG9fMwP5Oppo%3D&reserved=0)

Here’s where they are defined:

[https://github.com/microsoft/pxt-microbit/blob/master/sim/dalboard.ts#L138](https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fpxt-microbit%2Fblob%2Fmaster%2Fsim%2Fdalboard.ts%23L138&data=04%7C01%7Cabchatra%40microsoft.com%7Cefa8c08b421e47e8ddca08d94af8cd94%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637623254728693080%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=1h%2B2rb50ynalaR%2FJR5yIvZoyeACNocKfVBsLtOg8UAo%3D&reserved=0)

so `//% parts=”v2”` should be fine

---

<div class="post-metadata">

**Author:** ![jwunderl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jwunderl/32/5308_2.png) [@jwunderl](https://forum.makecode.com/u/jwunderl)\
**Post date:** [July 21, 2021, 4:57pm UTC](https://forum.makecode.com/t/v2-simulator-image-for-extension/9220/3 "2021-07-21T16:57:26Z")

</div>

Ahh, sorry for the delay since I missed this thread but glad my response got routed back to you!
