Está en la página 1de 3

13/10/21 16:44 Microsoft MakeCode for micro:bit

CON EL PLASTICO HASTA EL CUELLO - SANTIAGO ZULUAGA

https://makecode.microbit.org/#editor 1/3
13/10/21 16:44 Microsoft MakeCode for micro:bit

al iniciar al presionarse el botón B

establecer CONTADOR_DE_BOTELLAS para 0 cambiar CONTADOR_DE_BOTELLAS por 1

mostrar número CONTADOR_DE_BOTELLAS mostrar número CONTADOR_DE_BOTELLAS

al presionarse el botón A

si CONTADOR_DE_BOTELLAS = 0 entonces

play melody  at tempo 120 (bpm)

mostrar cadena " VACIO "

si CONTADOR_DE_BOTELLAS ≤
‫‏‬ 10 y CONTADOR_DE_BOTELLAS >
‫‏‬ 0 entonces

play melody  at tempo 120 (bpm)

mostrar cadena " CASI VACIO "

si CONTADOR_DE_BOTELLAS >
‫‏‬ 10 y CONTADOR_DE_BOTELLAS ≤
‫‏‬ 15 entonces

play melody  at tempo 120 (bpm)

mostrar cadena " MEDIO LLENO "

si CONTADOR_DE_BOTELLAS >
‫‏‬ 15 y CONTADOR_DE_BOTELLAS ≤
‫‏‬ 20 entonces

play melody  at tempo 120 (bpm)

mostrar cadena " ESTA POR LLENARSE "

si CONTADOR_DE_BOTELLAS >
‫‏‬ 20 y CONTADOR_DE_BOTELLAS ≤
‫‏‬ 25 entonces

play melody  at tempo 120 (bpm)

mostrar cadena " LLENISIMO "

si CONTADOR_DE_BOTELLAS >
‫‏‬ 25 entonces

play melody  at tempo 120 (bpm)

mostrar LEDs

mostrar LEDs

mostrar LEDs

mostrar LEDs

mostrar cadena " NO LE CABE 1 MAS "

https://makecode.microbit.org/#editor 2/3
13/10/21 16:44 Microsoft MakeCode for micro:bit

Extensiones
radio, *
microphone, *

https://makecode.microbit.org/#editor 3/3

También podría gustarte