Skip to content

the package seems to not be compatible with the makeCode compiler #15

@radu-sover

Description

@radu-sover

Using a micro:bit v1, and using only the midi-bluetooth extension I got the following error:
Cannot read properties of undefined (reading 'toString').

The program is simple:

bluetooth.onBluetoothConnected(function () {
basic.showIcon(IconNames.Happy)
})
bluetooth.onBluetoothDisconnected(function () {
basic.showIcon(IconNames.Sad)
})

let knobValue = 0
let readValue = 0
basic.showIcon(IconNames.Fabulous)

basic.forever(function () {
readValue = Math.round(pins.analogReadPin(AnalogPin.P1) / 8.06)
if (readValue != knobValue) {
knobValue = readValue
midi.channel(1).controlChange(33, knobValue)
led.plotBarGraph(knobValue, 127)
}
})

Screen Shot 2022-10-20 at 19 19 01

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions