LEGO® Powered Up extended code block guide

This is the full code block guide for the LEGO® Powered Up app.
Latest update: 01/29/2020
App version used: 3.0.0

Usage

This is the extended version of the code block guide. Click here for the simple version with an easy navigation interface.

In this version you have the following options:
– filter columns – use the Column visibility button to toggle the columns
– search – use the search text box to filter for any expression (e.g. block category)
– change the number of rows – use the Show x entries drop down to change the rows displayed. Only advised to increase on a touch screen interface where the table can be scrolled horizontally without the slider on the bottom.

Glossary

Simple motor – a Powered Up motor that only has power regulation, like the 45303 Simple Medium Linear Motor
Tacho motor – a Powered Up motor that has an internal encoder and has speed and position regulation like the 88008 Medium Linear Motor or the L / XL motors.
Slider interface – one of the controller interfaces in the Free Code area of the Powered Up app with 2 sliders and 3 buttons
Race Car interface – one of the controller intarfaces in the Free Code area of the Powered Up app with 1 joystick and 4 buttons
Composite Block – a block that contains one or more program sequences

Disclaimer – This guide is partially based on a document received from LEGO® Customer Service, additional information and examples were added based on the Powered Up app and my experience.

Block ImageBlock CategoryBlock SubCategoryBlock NameDescription (official / my notes)easymediumhardApp versionExampleExample (code)Notes
Flow BlocksStartStarts the execution of the attached sequence when the block is clicked or when the program starts.xxx2.1.0+Starts the sequence that sets the motor power on port A to 50
Flow BlocksStartOnTrueStarts the execution of the attached sequence when the condition is true.xx2.1.0+If Slider 1's position is not 0 then sets the light intensity on port D to 100%
Flow BlocksStartOnEdgeStarts the execution of the attached sequence when the condition switches from false to true.x2.1.0+If Slider 1's position is changed from 0 then play the car start sound
Flow BlocksEventStartStarts the execution of the attached sequence when the flag number is triggered.xx2.1.0+The Start sequence begins first, sets the light intensity on port D to 100% then triggers the "Flag 1" sequence that sets the motor power on port A to 50.
Flow BlocksEventTriggerTriggers flag number.xx2.1.0+The Start sequence begins first, sets the light intensity on port D to 100% then triggers the "Flag 1" sequence that sets the motor power on port A to 50.
Flow BlocksWaitForTimeWait for time (in seconds).xxx2.1.0+After the sequence is started the timer waits for 2 seconds before setting the motor power on port A to 50
Flow BlocksWaitForTrueWait for the condition to become true.xx2.1.0+The sequence sets the light intensity on port D to 0%, then waits for the slider to be moved, once it is moved it plays the car start sound
Flow BlocksCountLoopLoop enclosed sequence for number of times.xxx2.1.0+The Hub's LED light is set to red and then off 3 times - this makes the LED blink quickly in red 3 times
Flow BlocksWhileLoopLopp enclosed sequence while condition is true.xx2.1.0+Plays the engine revving sound until the slider is moved
Flow BlocksLoopForeverLoop enclosed sequence forever.xxx2.1.0+The most frequently used and most important loop - required for every "square" that needs to run constantly. Here Slider 1 sets the speed of motor on port A, it needs to loop to adjust the speed constantly according to the position of the slider.
Flow BlocksIfSwitchIf condition is true then execute top sequence, else execute bottom sequence.xx2.1.0+If the slider is below 50 then the LED on the hub is red, over 50 it turns green. Enclosed in a loop for constant monitoring of the slider position.
Flow BlocksForkJoinExecute both sequences at the same time, and wait for both sequences to complete before executing next block.xx2.1.0+Motor A runs for 2 seconds, motor B runs for 5 seconds but the car sound is played only when both motors stop.
Flow BlocksInterruptOthersStops all other program sequences and continues with execution of the attached sequence.xx2.1.0+Slider 1 controls the power of motor A, once the wheel button is pressed the slider stops working and the car brake sound is played.
Flow BlocksEndStops the execution of all sequences running on the current canvas.
If used in the top most program, this will terminate the program.
If used in a Model Block, then the Model Block is terminated, but the program containing the Model Block will continue execution.
xx2.1.0+Wheel button acts as an emergency stop, once it is pressed all other sequences are stopped therefore the slider will stop controlling the speed of the motor.
SensorsBoost SensorsTriggerOnColorTriggers when the color measured by the Sensor is equal to color.
Boost Sensor only
xxx2.1.0+If the sensor attached to port C detects red then the sound is played
SensorsBoost SensorsWaitForColorWait for the color measured by the Sensor to be equal to color.
Boost sensor only
xxx2.1.0+The Hub's LED is turned off first, if the sensor attached to port C detects red then the Hub's LED is also switched to red
SensorsBoost SensorsColorSensorGet current color measured by the Sensor.
Boost sensor only
xx2.1.0+The Hub's sensor is set to the color what the sensor attached to port C detects
SensorsBoost SensorsTriggerOnDistancelessThanTriggers when the distance measured by the Sensor is less than distance.
Boost sensor only
xxx2.1.0+If the sensor detects something at distance 5 then the sound is played
SensorsBoost SensorsWaitForDistancelessThanWait for the distance measured by the Sensor to be less than distance.
Boost sensor only.
xxx2.1.0+The Hub's LED is turned off first, if the sensor attached to port C detects something in distance '5' then the Hub's LED is also switched to red
SensorsBoost SensorsVisionProximitySensor AddressablePortGet current distance measured by the Sensor.
Boost sensor only
xx2.1.0+If something gets closer to the sensor than distance '5' then the sound is played
SensorsBoost SensorsVisionReflectionSensor AddressablePortGet current ambient light level measured by the Sensor.
Boost sensor only
xx2.1.0+If the something covers the light sensor (value becomes greater than 2) then the sound is played
SensorsBoost SensorsTriggerOnOrientationTriggers when the Hub Orientation is equal to Hub Orientation.
Boost hub only
xxx2.1.0+If the Hub's orientation becomes horizontal then the Hub's LED color switched to red
SensorsBoost SensorsWaitForOrientationWait for the Hub orientation to be equal to Hub orientation.
Boost hub only
xxx2.1.0+If the Hub's orientation becomes horizontal then the Hub's LED color switched to red
SensorsBoost SensorsDriveBaseTiltGetOrientation AddressablePortGet current Hub orientation.
Boost hub only
xx2.1.0+The Hub's orientation is stored in variable "a" and can be used as an input in other sequences
SensorsBoost SensorsDriverbaseTiltGetAngleX AddressablePortGet current Hub tilt angle on the X axis (-90 .90).
Boost Hub only
xx2.1.0+The Hub's tilt angle X is displayed on the slider controller screen
SensorsBoost SensorsDriverbaseTiltGetAngleY AddressablePortGet current Hub tilt angle on the Y axis (-90 .90).
Boost Hub only
xx2.1.0+The Hub's tilt angle Y is displayed on the slider controller screen
SensorsBoost SensorsOrientationAngleCaptures data with the Boost hub and the Technic hub as well. Boost hub provides only X and Y data, Technic hub provides X, Y and Z dataxx3.0.0+If the Hub moves (X value changes from 0) then a sound is played
SensorsBoost SensorsDrivebaseTiltConfigure OrientationAddressablePortSupposed to set the tilt orientation of Boost hub but it does not override the value detected - more tests needed.x2.1.0+
SensorsAccelerometerCaptures data with the Boost hub and the Technic hub as well, exact information is unconfirmedxx3.0.0+
SensorsWeDo SensorsDistanceSensor AddressablePortWeDo sensor onlyxx2.1.0+
SensorsWeDo SensorsTiltSensorXAddressablePortWeDo sensor onlyxx2.1.0+
SensorsWeDo SensorsTiltSensorYAddressablePortWeDo sensor onlyxx2.1.0+
SensorsDevice SensorsAccelerometerXUses the X axis tilt position of the smart device (left-right). 0 is the central position.xx3.0.0+The App-Controlled Batmobile can be controlled with this configuration, the smart device's orientation drives it forward-backward and turns it as well
SensorsDevice SensorsAccelerometerYUses the y axis tilt position of the smart device (forward-backward). 0 is around 30 degrees with the device screen facing towards you.xx3.0.0+The App-Controlled Batmobile can be controlled with this configuration, the smart device's orientation drives it forward-backward and turns it as well
MotorsSimple Motor (any)MotorPowerSets power to the motor - Positive numbers rotates clockwise and negative rotates counter clockwise - Power value can be between -100 and 100xxx2.1.0+Slider 1 sets the power of motor on port A, it's in a loop adjust the speed constantly according to the position of the slider.
MotorsSimple Motor (any)ContinuousMedium MotorControlSets power to the motor attached to the selected port and runs until the program runs without the need of a loop - Positive numbers rotates clockwise and negative rotates counter clockwise (Between -100 and 100)xxx2.2.0+Slider 1 sets the speed of motor on port A. No need to put in a loop as the block with a rounded end runs continously.Only appears on the controller interfaces
MotorsSimple Motor (any)MotorFloatRemoves power from the motorxxx2.1.0+Tacho motor on port A runs at speed 50 for 2 seconds, then power is cut from the motor and it can be rotated freely
MotorsSimple Motor (any)ContinuousMediumMotor ControlSpeedSteeringSets power to the motors attached to the selected ports and runs until the program runs without the need of a loop. First value sets the speed, second value defines steering (changing the speed of the motors to steer the vehicle), third value defines if both motors run in the same or opposite directions.xxx2.4.0+The App-Controlled Batmobile can be controlled with this configuration, the smart device's orientation drives it forward-backward and turns it as wellOnly appears on the controller interfaces
MotorsSimple Motor (any)MotorBrakeStops the motorxx2.1.0+Tacho motor on port A runs at speed 50 for 2 seconds, then power is cut from the motor but the motor "brake" is on, difficult to turn
MotorsTacho Motors onlyTachoMotorGetSpeedReads the speed value of the motor attached to the specified portxxx2.1.0+Speed of Tacho motor on port A is displayed on the Slider controller interface's left widget
MotorsTacho Motors onlyTachoMotorSpeedRun tacho motor on defined port with speed (-100..100)xxx2.1.0+Slider 1 sets the speed of Tacho motor on port A, it's in a loop adjust the speed constantly according to the position of the slider.
MotorsTacho Motors onlyTachoMotorSpeedDurationRun tacho motor on defined port with speed (-100..100) for duration (in seconds)xx2.1.0+Tacho motor on port A runs for 5 seconds with speed 50, then stops and actively holds position
MotorsTacho Motors onlyTachoMotorGetPositionReads the position of the tacho motor. Position is relative, 0 is the position where the motor was turned on.xxx2.1.0+Position of Tacho motor on port A is displayed on the Slider controller interface's left widget
MotorsTacho Motors onlyTachoMotorSpeedPositionTurns the tacho motor on defined port with defined speed (0..100) to the defined position (-9999..9999 in degrees)xx2.1.0+Position of Tacho motor on port A is set to 45, it turns with speed 50
MotorsTacho Motors onlyTachoMotorPresetPositionSets the current position of the tacho motor on defined port to the defined value (-9999..9999 in degrees)xx2.1.0+Tacho motor's current position is set to 0 - position of the motor is relative, 0 is the "turn on" value, this can be resetted with this command to the current position
MotorsTacho Motors onlyTachoMotorHoldStops and holds the tacho motor on defined port xx2.2.0+Tacho motor on port A runs for 5 seconds with speed 50, then stops and actively holds position
MotorsTacho Motors onlyTachoMotorMaxPowerSets max power of the tacho motor on defined port (0..100)x2.1.0+Sets the maximum power of the Tacho motor on port A to 25, then the speed is controlled with Slider 1 on the controller interface. With this change the motor only runs at 25%.
MotorsTacho Motors onlyTachoMotorAccelerationTimeSets the acceleration duration (in seconds) of the tacho motor on defined port x2.1.0+The acceleration and deceleration time of the Tacho motor on port A is set to 0.1, this makes the reaction to the slider movement very fast.
MotorsTacho Motors onlyTachoMotorDecelerationTimeSets the deceleration duration (in seconds) of the tacho motor on defined port x2.1.0+The acceleration and deceleration time of the Tacho motor on port A is set to 0.1, this makes the reaction to the slider movement very fast.
MotorsSimple Motor PairSynchroMotorPowerSets independently the power (-100..100) of a pair of motors on the defined ports (AB or CD)xx2.1.0+The power of the motors attached to port AB is set to 50
MotorsTacho Motor PairSynchroTachoMotorSpeedSets independently the speed (-100..100) of a pair of tacho motors on the defined ports (AB or CD)xx2.1.0+The speed of the Tacho motors attached to port AB is set to 50. This command works for the Boost internal motors as well.
MotorsTacho Motor PairSynchroTachoMotor SpeedDurationSets independently the speed (-100..100) of a pair of tacho motors on the defined ports (AB or CD) for duration (in seconds)xx2.1.0+The speed of the Tacho motors attached to port AB is set to 50 and they run for 5 seconds. This command works for the Boost internal motors as well.
MotorsTacho Motor PairSynchroTachoMotor SpeedPositionSets the the position (-9999..9999) of a pair of tacho motors on the defined ports (AB or CD) with speed independently set (-100..100)xx2.1.0+The Tacho motors attached to port AB are both turned to 85 degrees position with the speed of 50. This command works for the Boost internal motors as well.Command seems to add the defined position data to the current value instead of setting it as a target position
MotorsTacho Motor PairSynchroTachoMotor SpeedSteeringSets the speed (-100..100) of a pair of tacho motors on the defined ports (AB or CD) with the steering direction (-100..100) defining a tank steering style behavior. 0 sets equal power to both outputs, 50 only powers one motor and 100 powers the motors in opposite directions. Positive-negative value for steering defines the direction.xx2.1.0+The Tacho motors attached to port AB tank-steered to 49% with the speed of 50. This command works for the Boost internal motors as well.
MotorsTacho Motor PairSynchroTachoMotor SpeedSteeringDurationSets the speed (-100..100) of a pair of tacho motors on the defined ports (AB or CD) with the steering direction (-100..100) defining a tank steering style behavior. The motors are running for the defined duration (in sconds). 0 sets equal power to both outputs, 50 only powers one motor and 100 powers the motors in opposite directions. Positive-negative value for steering defines the direction.xx2.1.0+The Tacho motors attached to port AB tank-steered to 50% with the speed of 50 for 5 seconds. This command works for the Boost internal motors as well.
MotorsTacho Motor PairSynchroTachoMotor SpeedSteeringPositionSets the speed (-100..100) of a pair of tacho motors on the defined ports (AB or CD) with the steering direction (-100..100) defining a tank steering style behavior. The motors are running until the defined degree of rotation is reached (-9999..9999 in degrees). 0 sets equal power to both outputs, 50 only powers one motor and 100 powers the motors in opposite directions. Positive-negative value for steering defines the direction.xx2.1.0+The Tacho motors attached to port AB tank-steered to the direction of 100% (meaning the 2 motors are running in opposite direction) with the speed of 50, and they both turn only 90 degrees. This command works for the Boost internal motors as well.
Custom ControllerSlider interfacewidget-reporter-block-37Returns the current value of the AccelratorWidget 1xxx2.2.0+Run motor connected to port A with a given speed based on the value of the sliderOny appears when Slider interface is used
Custom ControllerSlider interfacewidget-reporter-block-38Returns the current value of the AccelratorWidget 2xxx2.2.0+Similar to widget-reporter-block-37
Custom ControllerSlider interfacewidget-reporter-block-39Starts the execution of the programming strip when the wheel button is pressed.xxx2.2.0+When the wheel button on the controller screen is pressed the following sound will be executedStartOnWheelChange
Custom ControllerSlider interfacewidget-reporter-block-40Starts the execution of the programming strip when the traffic light button is pressed.xxx2.2.0+Similar to widget-reporter-block-39StartOnTrafficlightChange
Custom ControllerSlider interfacewidget-reporter-block-41Starts the execution of the programming strip when the road button is pressed.xxx2.2.0+Similar to widget-reporter-block-39StartOnRoadChange
Custom ControllerSlider interfacewidget-reporter-block-42Returns the current value of the SpeedoMeter Widget 1
Usually used to trigger the execution of other programming strips based on its value
xx2.2.0+If the value of the widget is below 50 then the LED on the hub is red, over 50 it turns green. Enclosed in a loop for constant monitoring of the slider position.SpeedoMeterPosition1?
Custom ControllerSlider interfacewidget-reporter-block-43Returns the current value of the SpeedoMeter Widget 2
Usually used to trigger the execution of other programming strips based on its value
xx2.2.0+Similar to widget-reporter-block-42SpeedoMeterPosition2?
Custom ControllerSlider interfacewidget-instruction-block-38Slider Widget 1 that can go from -100 to 100xx2.2.0+Changes the start position of Slider 1, in this case it starts with the value 50Ony appears when Slider interface is used
Custom ControllerSlider interfacewidget-instruction-block-39Slider Widget 2 that can go from -100 to 100xx2.2.0+Similar to widget-reporter-block-43
Custom ControllerSlider interfacewidget-instruction-block-40Boolean Widget that can trigger the StartOnWheelChange block - Triggers the widget when the condition is truex2.2.0+The Wheel widget is triggered when the slider is moved (value is changed from 0) - the Wheel widget needs to be also defined like in the example of widget-reporter-block-39Ony appears when Slider interface is used
Custom ControllerSlider interfacewidget-instruction-block-41Boolean Widget that can trigger the StartOnTrafficlightChange block - Triggers the widget when the condition is truex2.2.0+Similar to widget-instruction-block-40Ony appears when Slider interface is used
Custom ControllerSlider interfacewidget-instruction-block-42Boolean Widget that can trigger theS tartOnRoadChange block - Triggers the widget when the condition is truex2.2.0+Similar to widget-instruction-block-40Ony appears when Slider interface is used
Custom ControllerSlider interfacewidget-instruction-block-43Widget that can display a numeric value on the controller screen (left)xxx2.2.0+The widget display a numeric value on the Controller interface, in this case it displays the speed of the Tacho motor on port AOny appears when Slider interface is used
Custom ControllerSlider interfacewidget-instruction-block-44Widget that can display a numeric value on the controller screen (right)xxx2.2.0+Similar to widget-instruction-block-43Ony appears when Slider interface is used
Custom ControllerRace Car interfacewidget-reporter-block-55Starts the execution of the programming strip when the wheel button is pressed.xxx2.4.0+Similar to widget-reporter-block-39
Custom ControllerRace Car interfacewidget-reporter-block-56Starts the execution of the programming strip when the tools button is pressed.xxx2.4.0+Similar to widget-reporter-block-39
Custom ControllerRace Car interfacewidget-reporter-block-57Starts the execution of the programming strip when the flags button is pressed.xxx2.4.0+Similar to widget-reporter-block-39
Custom ControllerRace Car interfacewidget-reporter-block-58Starts the execution of the programming strip when the red button is pressed.xxx2.4.0+Similar to widget-reporter-block-39
Custom ControllerRace Car interfacewidget-reporter-block-59aReturns the current X (horizontal) value of the joystick (-100..100)xxx2.4.0+
Custom ControllerRace Car interfacewidget-reporter-block-59bReturns the current Y (vertical) value of the joystick (-100..100)xxx2.4.0+The value is used to change the speed of the simple motor attached to port A
Custom ControllerRace Car interfacewidget-reporter-block-59cReturns the relative distance of the joystick from 0, positive/negative value depends on the forward/backward direction (-100..100).xxx2.4.0+The value is used to change the speed of the simple motor attached to port A
Custom ControllerRace Car interfacewidget-reporter-block-59dReturns the steering angle value of the joystick (-90..90)xxx2.4.0+
Custom ControllerRace Car interfacewidget-reporter-block-60Assumption - should return the value of the speed meter widget (-100..100) but always stays 0xx2.4.0+
Custom ControllerRace Car interfacewidget-reporter-block-62Returns the value of the turbo widget (0..100)xx2.4.0+
Custom ControllerRace Car interfacewidget-instruction-block-55Triggers wheel widget when the condition is truex2.4.0+Similar to widget-instruction-block-40
Custom ControllerRace Car interfacewidget-instruction-block-56Triggers tools widget when the condition is truex2.4.0+Similar to widget-instruction-block-40
Custom ControllerRace Car interfacewidget-instruction-block-57Triggers flag widget when the condition is truex2.4.0+Similar to widget-instruction-block-40
Custom ControllerRace Car interfacewidget-instruction-block-58Triggers red button widget when the condition is truex2.4.0+Similar to widget-instruction-block-40
Custom ControllerRace Car interfacewidget-instruction-block-59aJoystick X (horizontal) axis Widget that can go from -100 to 100xx2.4.0+
Custom ControllerRace Car interfacewidget-instruction-block-59bJoystick Y (vertical) axis Widget that can go from -100 to 100xx2.4.0+
Custom ControllerRace Car interfacewidget-instruction-block-59cJoystick X (horizontal) and Y (vertical) axis Widget that can go from -100 to 100x2.4.0+
Custom ControllerRace Car interfacewidget-instruction-block-60Sets the value of the speed meter widgetxxx2.4.0+Similar to widget-instruction-block-43
Custom ControllerRace Car interfacewidget-instruction-block-62Sets the value of the turbo widgetxxx2.4.0+Similar to widget-instruction-block-43
Light & SoundDimmable LightLightPercentageSets the power of the attached LED on the defined port to % (0..100)xxx2.1.0+If Slider 1's position is not 0 then sets the light intensity on port D to 100%
Light & SoundColor LightSetHubLightIndexColor AddressablePortSet the Hub LED to show color - Works on Boost/City/Technic hubsxxx2.1.0+The Hub's LED light is set to red and then off 3 times - this makes the LED blink quickly in red 3 times
Light & SoundColor LightSetHubLightRGBColor AddressablePortSets the Hub LED to show color based on the RGB intensity defined (Red, Green and Blue value in %). Works on Boost/City/Technic hubsxxx3.0.0+Sets the Hub's LED light to Red - 0%, Green - 50% and Blue: 100%
Light & SoundColor LightVisionSensorSetColor AddressablePortSets the color of the Sensor LED.
Boost sensor only
xxx2.1.0+Sets the color of the Boost sensor attached to port A to blue
Light & SoundSoundPlaySoundHousePlay the selected sound from the House sound libraryxxx2.1.0+Plays the first sound effect from the House sound library
Light & SoundSoundPlaySoundWhistlePlay the selected sound from the Whistle sound libraryxxx2.1.0+Similar to PlaySoundHouse
Light & SoundSoundPlaySoundTrainPlay the selected sound from the Train sound libraryxxx2.1.0+Similar to PlaySoundHouse
Light & SoundSoundPlaySoundCarPlay the selected sound from the Car sound libraryxxx2.1.0+Similar to PlaySoundHouse
Light & SoundSoundPlaySoundPlanePlay the selected sound from the Plane sound libraryxxx2.1.0+Similar to PlaySoundHouse
Light & SoundSoundPlaySoundDogPlay the selected sound from the Dog sound libraryxxx2.1.0+Similar to PlaySoundHouse
Light & SoundSoundPlaySoundCatPlay the selected sound from the Cat sound libraryxxx2.1.0+Similar to PlaySoundHouse
Light & SoundSoundPlaySoundFartPlay the selected sound from the Fart sound libraryxxx2.1.0+Similar to PlaySoundHouse
Light & SoundSoundPlaySoundHornPlay the selected sound from the Horn sound libraryxxx2.1.0+Similar to PlaySoundHouse
Light & SoundSoundPlaySoundCrowdPlay the selected sound from the Crowd sound libraryxxx2.1.0+Similar to PlaySoundHouse
Light & SoundSoundPlaySoundRobotPlay the selected sound from the Robot sound libraryxxx2.1.0+Similar to PlaySoundHouse
Light & SoundSoundPlaySoundTargetPlay the selected sound from the Target sound libraryxxx2.1.0+Similar to PlaySoundHouse
Data OperationsVariableLEGODeviceAddress AndPortSelectorSets the device and port to be used. Device number (1..4) is set on the connection screen (Bluetooth icon in top-left corner). Port can be either internal (connector icon) or external.x3.0.0+Sets the speed of the normal motor attached to port B of the second hub on the connection list. The speed is set to the value stored in the local variable a.
Data OperationsVariableLocalVariableFetchReads the number stored in the local variable. Local variables are not shared between the main program and the composite blocks.xx2.4.0+Sets the speed of the normal motor attached to port B of the second hub on the connection list. The speed is set to the value stored in the local variable a.
Data OperationsVariableLocalVariableStoreUpdates local variable to store number. Local variables are not shared between the main program and the composite blocks.xx2.4.0+Sets the value of the local variable a to 50.
Data OperationsVariableGlobalVariableFetchReads the number stored in the global variable - Global variables are shared between the main program and the composite blocks.x2.1.0+Similar to LocalVariableFetch, the difference is that this variable is shared between the main program and the composite blocks.
Data OperationsVariableGlobalVariableStoreUpdate global variable to store number - Global variables are shared between the main program and the composite blocks.x2.1.0+Similar to LocalVariableStore, the difference is that this variable is shared between the main program and the composite blocks.
Data OperationsVariableInvertInputInverts the input value (+/-)xxx2.2.0+The App-Controlled Batmobile can be controlled with this configuration, the smart device's orientation drives it forward-backward and turns it as well. The InvertInput block is used to invert one of tilt values of the smart device to match the turning direction of the vehicleonly on Controller interface
Data OperationsVariableRandomOperatorReturns a random number between number and number (both numbers included in the range).xx2.1.0+The value of the local variable b is a random number between 1 and 10
Data OperationsComparisionEqualOperatorReturns whether number is equal to number.xx2.1.0+Plays the engine revving sound until the slider's value equals to 0
Data OperationsComparisionLessThanOperatorReturns whether number is less than number.xx2.1.0+Usage principle is similar to EqualOperator
Data OperationsComparisionGreaterThanOperatorReturns whether number is greater than number.xx2.1.0+Usage principle is similar to EqualOperator
Data OperationsComparisionNotEqualOperatorReturns whether number is not equal to number.xx2.1.0+Usage principle is similar to EqualOperator
Data OperationsComparisionAndOperatorReturns true if both operators are true, and false otherwise.x2.1.0+Sound is triggered if both sliders are moved (their position is not equal to 0)
Data OperationsComparisionOrOperatorReturns true if either operand is true, and false otherwisex2.1.0+Sound is triggered if one of the sliders is moved (position is not equal to 0)
Data OperationsMathPlusOperatorReturns the result of adding number to number.xx2.1.0+Usage principle is similar to EqualOperator
Data OperationsMathMinusOperatorReturns the result of number substracted with number.xx2.1.0+Usage principle is similar to EqualOperator
Data OperationsMathMultiplyOperatorReturns the result of number multiplied with number.xx2.1.0+Usage principle is similar to EqualOperator
Data OperationsMathDivisionOperatorReturns the reuslt of number divided by number.xx2.1.0+Usage principle is similar to EqualOperator
Data OperationsMathAdvancedMathSupports the following mathematical operations: Round to nearest, Round down, Round up, Absolute value, Squareroot, Squared, Sine, Cosine, Tangent, Arcsine, Arccosine and Arctangent, radians to degrees conversion.x3.0.0+If the slider's position is below 50 in either direction (+/-) then the LED on the hub is red, over 50 it turns green. Advanced operator "Absolute value" is used to have the red range between -50 and 50. Enclosed in a loop for constant monitoring of the slider position.
Data OperationsMathAtan2Returns the result of the function {atan2} (y,x) or {arctan2} (y,x)x3.0.0+
Data OperationsMathExponentReturns the result of raising number (first value) to the power of the exponent (second value).x3.0.0+
Data OperationsMathMaxReturns the maximum value of number (first value) and number (second value).x3.0.0+
Data OperationsMathMinReturns the minimum value of number (first value) and number (second value).x3.0.0+
Data OperationsMathModuloReturns the remainder after divison of number (first value) by number (second value).x3.0.0+
Composite BlockCreateCompositeBlockCreates a composite block that acts as a program inside our program and can be executed by its custom icon.xxx2.4.0+
Composite BlockRace Car interfaceCompositeBlockFuelingPredefined Composite Block in the Race Car interfacexxx2.4.0+
Composite BlockRace Car interfaceCompositeBlockJoystickPredefined Composite Block in the Race Car interfacexxx2.4.0+
Composite BlockRace Car interfaceCompositeBlockCrashPredefined Composite Block in the Race Car interfacexxx2.4.0+
Advertisements

Comments are closed.