minodekit / pxt-minode

mi:node kit(micro:bit IoT Starter Kit by element14) driver package for PXT/microbit
MIT License
27 stars 11 forks source link

Compatibility with micro:bit v2 #7

Open microbit-sam opened 3 years ago

microbit-sam commented 3 years ago

Hi @minodekit,

As you might have seen from microsoft/pxt-microbit#3506 this extension is currently not compiling against the latest version of Micro:bit CODAL. This means it will not work with micro:bit V2.

Software for micro:bit V2 boards is built using CODAL rather than the DAL, and no longer includes the mbed layer. We’ve implemented the most frequently used mbed classes to support easy porting of existing extensions, but there may still be corner cases with this compatibility layer.

As your extension is currently not building, it will be disabled for micro:bit V2. People attempting to use your extension with a micro:bit V2 board will get error 929. This extension will only be re-enabled on micro:bit V2 once it is fixed.

There are details on how to ensure extensions work on both version of the micro:bit here (lancaster-university/codal-microbit-v2#31).

Looking at your extension source I believe that your extension falls under this category:

  1. Use of mbed APIs that are not included in the compatibility layer, or microbit-dal APIs that need different constructors

Due to it's use of MicroBitPin.h

microbit-mark commented 2 years ago

@ahnniu @jerryxiajie are you able to take a look at this?

fabgilson commented 2 years ago

Hello Team,

Any news on this? I run a bunch of workshops in schools with mi:node extensions (I have a few boxes), but they are pretty much useless now. Any timeline to get this updated?

Thanks heaps, Fabian

oleingemann commented 2 years ago

Also interested in an update on this - or workaround