You are on page 1of 3

Taller: De cuadrado a triángulo y a punto

1. CODIGO:

input.onButtonPressed(Button.A, function () {
basic.showIcon(IconNames.Square)
basic.showLeds(`
#####
#...#
#...#
#...#
#####
`)
basic.pause(100)
basic.showLeds(`
.####
#...#
#...#
#...#
#####
`)
basic.pause(200)
basic.showLeds(`
..###
.#..#
#...#
#...#
#####
`)
basic.pause(200)
basic.showLeds(`
...##
..#.#
.#..#
#...#
#####
`)
basic.pause(200)
basic.showLeds(`
....#
...##
..#.#
.#..#
#####
`)
basic.pause(1000)
basic.showLeds(`
.....
....#
...##
..#.#
.####
`)
basic.pause(200)
basic.showLeds(`
.....
.....
....#
...##
..###
`)
basic.pause(200)
basic.showLeds(`
.....
.....
.....
....#
...##
`)
basic.pause(200)
basic.showLeds(`
.....
.....
.....
.....
....#
`)
basic.pause(2000)
basic.showIcon(IconNames.Yes)
basic.clearScreen()
})
2. EVIDENCIAS DE FUNCIONAMIENTO

3. PARA IR MÁS LEJOS:

https://makecode.microbit.org/_RmHWheTpgA7z

You might also like