diff --git a/libs/core/pins.cpp b/libs/core/pins.cpp index f2fc4103..47eef73a 100644 --- a/libs/core/pins.cpp +++ b/libs/core/pins.cpp @@ -342,7 +342,7 @@ namespace pins { void analogPitch(int frequency, int ms) { // init pins if needed if (NULL == pitchPin) { - pitchPin = getPin((int)AnalogPin::P0); + pitchPin = getPin((int)DigitalPin::P0); #ifdef SOUND_MIRROR_EXTENSION pitchPin2 = &SOUND_MIRROR_EXTENSION; #endif diff --git a/package.json b/package.json index 9619174f..0e5b66a9 100644 --- a/package.json +++ b/package.json @@ -46,6 +46,6 @@ }, "dependencies": { "pxt-common-packages": "7.0.4", - "pxt-core": "6.0.20" + "pxt-core": "6.0.23" } } diff --git a/pxtarget.json b/pxtarget.json index 7b52e407..855dbc2e 100644 --- a/pxtarget.json +++ b/pxtarget.json @@ -35,6 +35,7 @@ "deployDrives": "MINI", "driveName": "MINI", "hexMimeType": "application/x-microbit-hex", + "moveHexEof": true, "openocdScript": "source [find interface/cmsis-dap.cfg]; source [find target/nrf51.cfg]", "flashUsableEnd": 242688, "flashEnd": 242688,