# How do you get the device's version and if it's in the Simulator?

**URL:** <https://forum.makecode.com/t/how-do-you-get-the-devices-version-and-if-its-in-the-simulator/21996>\
**Category:** Help\
**Created:** [August 21, 2023, 5:20pm UTC](https://forum.makecode.com/t/how-do-you-get-the-devices-version-and-if-its-in-the-simulator/21996 "2023-08-21T17:20:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![instant-veemo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/instant-veemo/32/10098_2.png) [@instant-veemo](https://forum.makecode.com/u/instant-veemo)\
**Post date:** [August 21, 2023, 5:20pm UTC](https://forum.makecode.com/t/how-do-you-get-the-devices-version-and-if-its-in-the-simulator/21996/1 "2023-08-21T17:20:20Z")

</div>

I’m making a game for my Meowbit and I want to use its LED via the official extension by Kittenbot. But the emulator can’t simulate it running '(the same happens when using the wireless module). I remember a command in javascript allowing me to get a device’s version and/or if it’s in the emulator but I haven’t been on Makecode (needed that too) so how do I do it? It’s something like .DeviceVersion

---

<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:** [August 21, 2023, 5:21pm UTC](https://forum.makecode.com/t/how-do-you-get-the-devices-version-and-if-its-in-the-simulator/21996/2 "2023-08-21T17:21:25Z")

</div>

`control.deviceDalVersion()` will return `sim` if it’s in the browser

---

<div class="post-metadata">

**Author:** ![instant-veemo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/instant-veemo/32/10098_2.png) [@instant-veemo](https://forum.makecode.com/u/instant-veemo)\
**Post date:** [August 21, 2023, 5:24pm UTC](https://forum.makecode.com/t/how-do-you-get-the-devices-version-and-if-its-in-the-simulator/21996/3 "2023-08-21T17:24:34Z")

</div>

Funny enough I found it as I made the post… lol

---

<div class="post-metadata">

**Author:** ![Sarge](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sarge/32/19590_2.png) [@Sarge](https://forum.makecode.com/u/Sarge)\
**Post date:** [August 21, 2023, 9:25pm UTC](https://forum.makecode.com/t/how-do-you-get-the-devices-version-and-if-its-in-the-simulator/21996/4 "2023-08-21T21:25:09Z")

</div>

At this point I thought I’d interject and advertise my super handy-dandy extension:

> **[GitHub - S0m3randomguy/control: Control namespace turned into block form](https://github.com/S0m3randomguy/control)**
>
> Control namespace turned into block form. Contribute to S0m3randomguy/control development by creating an account on GitHub.

Block control, an extension that adds all of the functions from the control namespace as blocks! So, if you ever need them in block form, you know where to find them

---

<div class="post-metadata">

**Author:** ![instant-veemo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/instant-veemo/32/10098_2.png) [@instant-veemo](https://forum.makecode.com/u/instant-veemo)\
**Post date:** [August 22, 2023, 4:28pm UTC](https://forum.makecode.com/t/how-do-you-get-the-devices-version-and-if-its-in-the-simulator/21996/5 "2023-08-22T16:28:40Z")

</div>

Ooooo Thx! That makes like much easier!
