MIDI support in simulator (#1332)

* gluing to support MIDI devices in the simulator

* sim support for midi

* simplify interface

* ensure helper function does not show up in TS

* bump pxt
This commit is contained in:
Peli de Halleux
2018-10-03 11:32:29 -07:00
committed by GitHub
parent 710abd50cb
commit 1a9235e333
4 changed files with 24 additions and 1 deletions

View File

@ -302,4 +302,13 @@ namespace control {
int deviceSerialNumber() {
return microbit_serial_number();
}
/**
* Informs simulator/runtime of a MIDI message
* Internal function to support the simulator.
*/
//% part=midioutput block
void __midiSend(Buffer buffer) {
// this is a stub to support the simulator
}
}