The show frame function.
Display an Image on the Calliope mini’s LED screen
export function showFrame(img: micro_bit.Image, frame: number)
plot frame
The show frame
function is the same as plot frame, but contains a built-in delay after the LED screen has been updated (whereas plot frame
has no built-in delay)
let img = images.createImage(`
# . . . # # . . . #
. # . # . . # # # .
. . # . . . # # # .
. # . # . . # # # .
# . . . # # . . . #
`)
img.showFrame(1)
create image, show animation, image, show image, scroll image