(0)

    Bloques de programación LEGO® Powered UP

    La app LEGO® Powered UP presenta un lenguaje de programación sencillo y fácil de entender con el que los fans de todas las edades disfrutarán aprender y experimentar. Se basa en la experiencia principal que cualquier fan de LEGO entenderá instintivamente: conectar bloques unos con otros y apreciar cómo encajan.

    Los bloques de programación vienen en una gama de tipos y colores que le indican qué tipo de bloque está usando.

    Aquí algunos ejemplos de bloques de programación usados habitualmente. Si no está seguro de lo que hace un bloque y no aparece aquí, puede probarlo en la app o consultar nuestra guía completa de programación de bloques. Parte de la diversión de LEGO Powered UP está en la experimentación, el juego y el aprendizaje.

    Pale yellow circle with a triangle inside that indicates to play Bloques Amarillos de Flujo

    Los bloques amarillos controlan el flujo de sus órdenes. Puede utilizarlos para iniciar, detener, pausar un programa, o, incluso, para órdenes en repeticion.

    Yellow programming block with a curved left side and a green play arrow.

    Este bloque inicia el programa.

    Yellow programming block with an hourglass. At the bottom left of the hourglass, there is a stopwatch. Beneath the block there is a black checkmark.

    Este bloque de reloj de arena hará que el programa espere durante un número determinado de segundos.
     

    Yellow programming block with an empty space to fit another programming block. On the left of the block is an image of a loop, and in the lower left-hand corner there is a number symbol. Beneath the block is the number 3.

    Este bloque realizará una repeticion en la sección del programa durante un número determinado de veces.

    Yellow programming block with an empty space to fit another programming block. On the block, to the right, is a loop with an infinity symbol in the lower left-hand corner.

    Este bloque ejecutará el programa en repeticion ¡para siempre!
     

    Orange circle with an orange eye inside. Bloques Naranjas de Sensores

    Los bloques naranjas funcionan con el control remoto y con los sensores de color y distancia, de inclinación del hub de movimiento y WeDo 2.0. Estos bloques generan una acción cuando un sensor de su modelo detecte algo.

    Left-closed orange programming block with eye. On the lower left of the eye is an image of a painter's pallet. Tab on right has red circle next to a painter's pallet. Tab on left has the letter A and a bracket with in and out arrows.

    Utilice el sensor de color para activar un evento cuando se detecte un color específico.
    Orange programming block with eye. On the lower left of the eye is an image of a painter's pallet. Lower right tab has a red circle next to a painter's pallet. On the left, there's a tab with the letter A and a bracket with in and out arrows.

    Espere a que el sensor de color detecte el color elegido en el bloque.

    Orange programming block with eye and nub on top. On the lower left of the eye is an image of a painter's pallet. There's a white tab on the bottom with the letter A and a bracket with in and out arrows.

    Obtenga el color actual detectado por el sensor.
    Orange programming block with eye and nub on top. On lower left of the eye is a scale of white to black. There's a white tab on the bottom with the letter A and a bracket with in and out arrows.Obtenga el nivel de luz ambiental actual detectado por el sensor.

    Orange programming block with eye, closed on left side. On lower left of the eye is a line with hatch marks. Bottom left tab has letter A and a bracket with in and out arrows. On the right is a tab with 5 and a line with hatch marks.

    Se activa cuando la distancia medida por el sensor es menor a la distancia especificada.

    Orange programming block with curved left side and image of Move Hub. On lower left of hub is a rotation symbol. Bottom left tab has image of hub port and bracket with in and out arrows. Bottom right has tab with image of hub.

    Utilice el giróscopo interno para activar un evento basado en la orientación del hub. Espere a que la orientación del hub sea igual a la orientación del hub.

    Orange programming block with image of Move Hub. On lower left of hub is a rotation symbol. On bottom left tab is an image of hub port and bracket with in and out arrows. Bottom right tab has black rectangle.

    Espere a que la orientación hub sea igual a la orientación del hub.

    Green circle with a green propeller image. Bloques Verdes de Motores o Movimiento

    Los bloques verdes ponen su modelo en movimiento! Puede diferenciar entre motores Technic (para controlar la velocidad y la posición) y básicos (para conducir a toda velocidad).

    Olive green programming block with image of circle and arrows representing turning. On the bottom left of this image is a lighting symbol. Bottom left tab with the letter A and a bracket with in and out arrows. Right tab has number 50 and lightning image.

    Ajuste la potencia del motor. Los números positivos giran en el sentido de las agujas del reloj y los numeros negativos, en el sentido contrario.
    Olive green programming block with motor symbol. On lower left of symbol is red circle with crossed-out lightning symbol. Bottom white tab has the letter A and a bracket with in and out arrows.Elimina la potencia del motor y hará que se detenga lentamente.
    Olive green programming block with motor symbol. On lower left of symbol is red circle with image of car brake. Bottom white tab has the letter A and a bracket with in and out arrows.Detiene el motor.

    Purple circle with purple dial in the middle and little circles all around. Bloques Morados de Luz y Sonido

    Los bloques morados pueden reproducir sonidos a través de los altavoces de su dispositivo, o cambiar el color de las luces en el move hub o los sensores de color y distancia. Estos bloques también controlan las luces LED.

    Blue programming block with sensor light glowing. White tab on the bottom left with the letter A and a bracket with in and out arrows. On the lower right, there's a tab with a red circle next to a painter's pallet.

    Ajusta el color LED del sensor.
    Blue programming block with hub light glowing. Lower left tab has number 0. Tab on lower right has blue circle with painters pallet.Ajusta el LED del hub para que muestre el color.
    Blue programming block with flashlight symbol. Bottom left white tab has the letter A and a bracket with in and out arrows. Bottom right tab has number and percent symbol.Ajusta el brillo de la luz en lo que esta conectado al puerto especificado.
    Long blue programming block with flashlight symbol. First tab on lower left has letter A and brackets with in and out arrows.  4 other tabs have zeros.Ajusta el brillo de la luz en el puerto conectado al puerto (parámetro izquierdo), pero ajusta individualmente los cuatro semicírculos del LED del sensor.

    De izquierda a derecha, afectan a:
    • Arco superior "ojo" derecho
    • Arco superior "ojo" izquierdo
    • Arco inferior del "ojo" derecho
    • Arco inferior del "ojo" izquierdo
    Blue programming block with house symbol. On lower left of symbol is a volume icon. The below tab has number 2.Reproduce el sonido seleccionado de la biblioteca de sonidos de casa.
    Blue programming block with whistle symbol, on lower left of symbol is volume icon. Below tab has number 2. Reproduce el sonido seleccionado de la biblioteca de sonidos de silbido.
    Blue programming block with train symbol, on lower left of symbol is volume icon. Below tab has number 2. Reproduce el sonido seleccionado de la biblioteca de sonidos de tren.
    Blue programming block with car symbol, on lower left of symbol is volume icon. Below tab has number 2. Reproduce el sonido seleccionado de la biblioteca de sonidos de coche.
    Blue programming block with airplane symbol, on lower left of symbol is volume icon. Below tab has number 2. Reproduce el sonido seleccionado de la biblioteca de sonidos de avión.
    Blue programming block with dog symbol, on lower left of symbol is volume icon. Below tab has number 2. Reproduce el sonido seleccionado de la biblioteca de sonidos de perro.
    Blue programming block with cat symbol, on lower left of symbol is volume icon. Below tab has number 2. Reproduce el sonido seleccionado de la biblioteca de sonidos de gato.
    Blue programming block with whoopie cushion symbol, on lower left of symbol is volume icon. Below tab has number 2.Reproduce el sonido seleccionado de la biblioteca de sonidos de pedo.
    Blue programming block with the horn symbol, on lower left of symbol is volume icon. Below tab has number 2. Reproduce el sonido seleccionado de la biblioteca de sonidos de bocina.
    Blue programming block with hand clapping symbol, on lower left of symbol is volume icon. Below tab has number 2. Reproduce el sonido seleccionado de la biblioteca de sonidos de multitud..
    Blue programming block with robot symbol, on lower left of symbol is volume icon. Below tab has number 2.Reproduce el sonido seleccionado de la biblioteca de sonidos de robot.
    Blue programming block with raygun symbol, on lower left of symbol is volume icon. Below tab has number 2.Reproduce el sonido seleccionado de la biblioteca de sonidos de tiro al blanco.

    Teal circle with dark teal joystick inside. Bloques de widget teal

    Los bloques de color verde azulado le permiten controlar su modelo con widgets.

    Green small programming block with nub on top. Has image of button. Tab underneath has number zero.   

    Informa el estado (verdadero/falso o 0/1) del widget de botón del lienzo con Channel-ID (primer parámetro). 

    Green small programming block with nub on top. Has slider icon. Tab underneath has number zero.

    Informa el estado (verdadero/falso o 0/1) del widget alternar del lienzo con Channel-ID (primer parámetro).
    Green small programming block with nub on top. Has image of directional button, with arrows front, back, left, right. Tab underneath has number zero.Informa el estado del widget multibotón del lienzo con Channel-ID (primer parámetro), como eje. Esto significa: si pulsa el botón inferior, informa -100; si pulsa el superior, 100. Si no pulsa ninguno de las dos, 0.
    Green programming block with image of speedometer. Two tabs are on the bottom, the one on the left has letter a, the one on the right has number 0.Ordena al velocímetro del lienzo del widget, al monitor de enteros o a cualquier otro monitor con Channel-ID (primer parámetro) que muestre el valor (segundo parámetro).
    Green small programming block with nub on top. Has slider icon with hatch marks inside. Tab underneath has number zero.Informa la posición (-100 a 100) del widget deslizador del lienzo con Channel-ID (primer parámetro).
    Green small programming block with nub on top. Has joystick icon on block with image of speedometer in lower lefthand corner. Tab underneath has number zero.Informa la amplitud (-100 a 100) del joystick del lienzo del widget con Channel-ID (primer parámetro).

    Cuanto más se aleje el joystick del centro, mayor será el número. En la mitad superior del joystick, los números que se informan serán positivos. En la mitad inferior, negativos.
    Green small programming block with nub on top. Has joystick icon on block with image of steering wheel in lower lefthand corner. Tab underneath has number zero.Informa el ángulo (normalizado a: -100 a 100 no en grados, ¡lo que sería de -90 a 90!) del widget joystick del lienzo con Channel-ID (primer parámetro).

    Si el joystick apunta directamente hacia arriba o hacia abajo (independientemente de la amplitud), el bloque emite 0. Si se mueve la empuñadura del joystick en el sentido de las agujas del reloj, el número se vuelve negativo y disminuye hasta llegar a -100 directamente a la izquierda o a la derecha. Si se gira en sentido contrario a las agujas del reloj, el número es positivo y aumenta hacia 100.


    Si tiene preguntas sobre alguno de los bloques anteriores o necesita ayuda con cualquier otra cosa, póngase en contacto con nosotros.