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

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

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

1 Like

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

1 Like

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

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

1 Like

Ooooo Thx! That makes like much easier!

2 Likes