Skip to content

Simulator does not update to V2 board when blocks are used #7

@microbit-mark

Description

@microbit-mark

We need to change to the V2 board when the power blocks are used. MakeCode team supplied this answer on how to implement:

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

Here’s where they are defined:

https://github.com/microsoft/pxt-microbit/blob/master/sim/dalboard.ts#L138

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions