diff --git a/libs/core/basic.cpp b/libs/core/basic.cpp index 6c7f1813..8b17946b 100644 --- a/libs/core/basic.cpp +++ b/libs/core/basic.cpp @@ -87,7 +87,7 @@ namespace basic { //% help=basic/show-animation imageLiteral=1 async //% parts="ledmatrix" void showAnimation(ImageLiteral leds, int interval = 400) { - uBit.display.animate(MicroBitImage(imageBytes(leds)), interval, 5, 0); + uBit.display.animate(MicroBitImage(imageBytes(leds)), interval, 5, 0, 0); } /** diff --git a/libs/core/images.cpp b/libs/core/images.cpp index 5433dd41..32ab137a 100644 --- a/libs/core/images.cpp +++ b/libs/core/images.cpp @@ -69,7 +69,7 @@ namespace ImageMethods { //% parts="ledmatrix" void scrollImage(Image id, int frameOffset, int interval) { MicroBitImage i(id); - uBit.display.animate(i, interval, frameOffset, MICROBIT_DISPLAY_WIDTH - 1); + uBit.display.animate(i, interval, frameOffset, MICROBIT_DISPLAY_ANIMATE_DEFAULT_POS, 0); }