Create Image

Make an image (picture) for the Calliope mini LED screen.

images.createImage(`
. . # . .
. # # # .
# # # # #
. # # # .
. . # . .
`)

Parameters

Example: Flip-flopping arrow

If you press button A, this program will make a picture of an arrow and show it on the LED screen. If you press button B, the program will show a picture of the arrow upside-down.

input.onButtonPressed(Button.A, () => {
    images.createImage(`
        . . # . .
        . # # # .
        # . # . #
        . . # . .
        . . # . .
        `).showImage(0);
});
input.onButtonPressed(Button.B, () => {
    images.createImage(`
        . . # . .
        . . # . .
        # . # . #
        . # # # .
        . . # . .
        `).showImage(0);
});

See also

Getting Started, image, create big image, show image, scroll image, show animation

Edit this page on GitHub