Introduction

Makeblock Halocode is a single board computer with built-in Wi-Fi. Designed for programming education, its compact design integrates a broad selection of electronic modules. Pairing with block-based programming software mBlock, Halocode offers all sorts of opportunities to experience AI & IoT application with just a few clicks; it makes creation easy and fun.

Halocode (device) - 图1

Start Programming

  1. Connect the Halocode to your computer via the Micro USB cable.

Halocode (device) - 图2

  1. Open the mBlock and add the Halocode from the Device Library.

image.png

  1. Connect the device.
    image.png
    4. Choose the program execution mode.
    Upload mode: In the Upload mode, you need to upload the compiled program to the device. After being successfully uploaded, the program can still run properly on the device when the device is disconnected from mBlock 5.
    Live mode:In the Live mode, you can view the program execution effect in real time, which facilitates the commissioning of the program.In this mode, you must keep the device connected to mBlock 5. If they are disconnected, the program cannot be executed.

Halocode (device) - 图5

  1. Now let’s start programming!

    Extensions

    Halocode supports multiple extensions, such as mbulid sensors and upload mode broadcast. Click extension at the bottom of the Blocks area to add an extension.

Halocode (device) - 图6

FAQ and More Information

If you have any questions or you want to check more cases or help information, please consult the online help document below:
http://docs.makeblock.com/halocode/en/


2. play LED animation [LED_animation] until done

Halocode (device) - 图7

Plays the specified LED animation (including rainbow, spindrift, meteor, and firefly) until done, then executes the subsequent block(s)

Example

In the Live mode, when you click the green flag, the LED animation “rainbow” will be played. After the animation is done, all LEDs light red.
Halocode (device) - 图8


3. show [ledRing]

Halocode (device) - 图9

Sets the LEDs ring of Halocode to light up in the specified color order

How to use

  1. Click the LEDs ring on the block to enter the LEDs ring settings interface.
    Halocode (device) - 图10
    2. Set the LEDs ring and click OK. The gray circle means light off.
    Halocode (device) - 图11

Example

In the Live mode, when you click the green flag, the LEDs ring will light up in the specified color order.
Halocode (device) - 图12


4. show [ledRing] after [rotate] rotating [led_number] leds

Halocode (device) - 图13

Lights up the LED ring in the color order rotated clockwise the specified number of leds

Example

In the Live mode, when you click the green flag, the LED ring will light up in the specified color order. One second later, the LED ring will light up in the color order rotated clockwise one LED.
Halocode (device) - 图14


5. all LEDs light up [color_1]

Halocode (device) - 图15

Lights up all the LEDs in the specified color

How to use

Click to set the color, saturation and brightness or get the color on the stage by using the color picker.
Halocode (device) - 图16

Example

In the Live mode, when you click the green flag, all the LEDs will light up green.
Halocode (device) - 图17


6. all LEDs light up [color_1], brightness [lightness] %

Halocode (device) - 图18

Lights up all the LEDs in the specified color at the specified brightness

Example

In the Live mode, when you click the green flag, all the LEDs will light up green at 80% brightness.
Halocode (device) - 图19


7. light off all LEDs

Halocode (device) - 图20

Lights off all the LEDs

Example

In the Live mode, when you click the green flag, all the LEDs will light up red and go off after one second.

Halocode (device) - 图21


8. light up all LEDs with color R [r]G [g]B [b]

Halocode (device) - 图22

Lights up all the LEDs in the color that is the combination of the specified intensity of red, green, and blue

How to use

RGB color model
The RGB is an addictive color model in which red, green and blue lights are added together to reproduce nearly 16.78 million colors.
R, G, B value range: 0~255
Halocode (device) - 图23

Example

In Live mode, when you click the green flag, all the LEDs will light up blue.
Halocode (device) - 图24


9. light up LED [led_id] with color R [r] G [g] B [b]

Halocode (device) - 图25

Lights up the specified LED the specified color, mixed by specified RGB color values

How to use

Here are the number of LEDs:
Halocode (device) - 图26

Example

In Live mode, when you click the green flag, LED 3 will light up blue.
Halocode (device) - 图27


10. light off LED [led_id]

Halocode (device) - 图28

Lights off the specified LED

How to use

Here are the number of LEDs:
Halocode (device) - 图29

Example

In Live mode, when you click the green flag, all the LEDs will light up green. One second later, LED 3 will go off.
Halocode (device) - 图30


11. LED ring shows [percentage] %

Halocode (device) - 图31

Displays percentage with the LED ring

Example

In Live mode, when you click the green flag, the LED ring will show 50%.
Halocode (device) - 图32


12. button is pressed?

Halocode (device) - 图33

Detects if the button is pressed

How to use

It is a boolean type block. Reports Ture if the button is pressed, otherwise reports False. A Boolean block must be put into the hexagonal slot of another block, and therefore cannot be used independently.
Halocode (device) - 图34

Example

In Live mode, when you click the green flag, if the button is pressed, the LED animation “rainbow” will be played.
Halocode (device) - 图35


13. microphone loudness

Halocode (device) - 图36

Reports current loudness detected by Halocode’s microphone. The value range is 0-100

How to use

It is a reporter type block. Select the checkbox next to the block to display the current loudness on the stage.
Halocode (device) - 图37

Microphone
The microphone acts as ears, enabling Halocode to hear sounds around it. The measurement generated by the microphone is exactly the volume. The louder the sound is, the higher the volume level is.
Microphone’s volume range: 0~100
Halocode (device) - 图38

Example

In Live mode, when you click the green flag, if the detected loudness is greater than 50, the LED animation “rainbow” will be played.
Halocode (device) - 图39


14. touch sensor [touchpad_number] is touched?

image.png

Detects if the specified touch sensor (0,1,2,3) is touched

How to use

It is a boolean type block. Reports Ture if the specified touch sensor is touched, otherwise reports False. A Boolean block must be put into the hexagonal slot of another block, and therefore cannot be used independently.

Touch Sensor
The Halocode contains 4 touch sensors (0,1,2,3). The sensors will be triggered when you touch the metal parts of the sensors, and can also be connected to conductive objects to expand the touch range and create more interesting projects.
Halocode (device) - 图41

Example

In Live mode, when you click the green flag, if touch sensor0 is touched, the LED animation “rainbow” will be played.
halocode-touched.png


15. touch sensor [touchpad_number] touch value

image.png

Reports the value of the specified touch sensor (0, 1, 2, 3). The value range is 0-100

How to use

It is a reporter type block. Select the checkbox next to the block to display the specified touch value on the stage.
Touch value range:0~10
image.png

Example

In Live mode, when you click the green flag, if the touch sensor0 value is greater than 50, the LED animation “rainbow” will be played.
halocode-touch.png


16. set touch sensor [touchpad_number] sensitivity to[sensitivity]

image.png

Sets the sensitivity of specified touch sensor to high, medium or low

How to use

The default sensitivity is medium. Change the sensitivity for better touch.
Sets to high when you want the touch sensor can be triggered more easily, for example, you want to trigger it across a piece of paper.
Sets to low when you do not want the touch sensor can be triggered easily, for example, when you atttach copper foil tapes to the touch sensors, you can set the sensitivity to low to avoid a false trigger.

Example

In Live mode, when you click the green flag, sets the sensitivity to high. Touch the touch sensor across a piece of paper, all LEDs will light up red for one second.
halocode-sensitivity.png


17. Halocode is [tilt] ?

image.png

Detects if Halocode is placed in the specified position

How to use

The Halocode contains a motion sensor. The motion sensor detects the current position and movement of the Halocode by calculating the tilt angle of the Halocode relative to the ground and measuring its own rotation.
Halocode (device) - 图49
There are six options: “left-tilted”, “right-tilted”, “arrow-up”, “arrow-down”, “LED-ring-up”, and “LED-ring-down”.
Halocode (device) - 图50

Example

In Live mode, when you click the green flag, if it is left-tilted, the left part of LEDs will light up red for one second.
halocode-tilted.png


18. Halocode is shaken?

image.png

Detects if Halocode is being shaken

How to use

It is a boolean type block. Reports Ture if Halocode is being shaken, otherwise reports False. A Boolean block must be put into the hexagonal slot of another block, and therefore cannot be used independently.
The motion sensor can detect movements and postures by measuring angles and acceleration. So, Halocode will be triggered no matter you tilt, rotate or shake it.
Halocode (device) - 图53

Example

In Live mode, when you click the green flag, if it is shaken, all LEDs will light up red for one second.
Halocode (device) - 图54


19. shaking strength

Halocode (device) - 图55

Report the strength by which Halocode is being shaken. The value range is 0-100

How to use

It is a reporter type block. Select the checkbox next to the block to display the shaking strength on the stage.
Value range:0~100
Halocode (device) - 图56

Example

In Live mode, when you click the green flag, the LED ring will show the current shaking strength.
Halocode (device) - 图57


20. motion sensor acceleration (m/s²) on [axis] axis

Halocode (device) - 图58

Reports the acceleration (m/s²) detected by motion sensor around the x, y, or z axis

How to use

It is a reporter type block. Select the checkbox next to the block to display the acceleration (m/s²) detected by motion sensor around the x, y, or z axis on the stage.
Halocode (device) - 图59

The picture below shows the three axes (x, y, z) of Halocode and corresponding directions of the roll and pitch.
Halocode (device) - 图60

Example

In Live mode, when you click the green flag, if the acceleration around the x-axis is greater than 5, all the LEDs will light up green.
Halocode (device) - 图61


21. motion sensor [rotation] posture(°)

image.png

Reports the roll or pitch angle

How to use

It is a reporter type block. Select the checkbox next to the block to display the roll or pitch angle on the stage.

Pitch angle range: -180° ~ 180°
Roll angle range: -90° ~ 90°

The picture below shows the three axes (x, y, z) of Halocode and corresponding directions of the roll and pitch.
Halocode (device) - 图63

Example

In Live mode, when you click the green flag, if the pitch is greater than 150 degrees, all the LEDs will light up green.
halocode-motion.png


22. rotated angle around [axis] (°)

Halocode (device) - 图65

Reports the rotation angle around the x-axis, y-axis or z-axis

How to use

It is a reporter type block. Select the checkbox next to the block to display the rotation angle around the x-axis, y-axis or z-axis on the stage.
Halocode (device) - 图66

The picture below shows the three axes (x, y, z) of Halocode and corresponding directions of the roll and pitch.
Halocode (device) - 图67

Example

In Live mode, when you click the green flag, if the rotation angle around the x-axis is greater than 720 degrees, all the LEDs will light up green for one second.
Halocode (device) - 图68


23. reset rotated angle around [axis]

Halocode (device) - 图69

Resets rotation angle around the x-axis, y-axis, z-axis, or all axes

Example

In Live mode, when you click the green flag, rotation angle around all axes will be reset.
Halocode (device) - 图70


24. timer (s)

Halocode (device) - 图71

Reports Halocode’s timer value (measured in second, rounded to the nearest tenth)

How to use

It is a reporter type block. A reporter block can be used in any script that requires data but cannot be used independently.
Click the checkbox next to the block to display the value of timer in seconds.
Halocode (device) - 图72
The timer is always running. Use reset timer block to reset timer.

Example

In Live mode, when you click the green flag, if the timer is greater than 10 seconds, all the LEDs will light up red.
Halocode (device) - 图73


25. reset timer

Halocode (device) - 图74

Resets the timer

Example

In Live mode, when the button is pressed, the timer will be reset.
Halocode (device) - 图75


26. pin [pin_number] on high level?

Halocode (device) - 图76

Detects if the specified pin is in high voltage

How to use

It is a boolean type block. Reports Ture if the specified pin is in high voltage, otherwise reports False. A Boolean block must be put into the hexagonal slot of another block, and therefore cannot be used independently.
Pin instructions
The Halocode contains 4 pins (0,1,2,3) with different features.
Halocode (device) - 图77

Features of the pins:
Halocode (device) - 图78

Example

In Live mode, when you click the green flag, if pin0 is in high voltage, all the LEDs will light up green.
Halocode (device) - 图79


27. digital read pin [pin_number]

Halocode (device) - 图80

Reads the digital value of the specified pin (0, 1, 2, 3). The value is 0 or 1

How to use

It is a reporter type block. Select the checkbox next to the block to display the digital value of the specified pin on the stage.
Halocode (device) - 图81

Example

In Live mode, when you click the green flag, if the digital value of pin0 is 0, all the LEDs will light up green; otherwise, red.
Halocode (device) - 图82


28. analog read pin [pin_number]

Halocode (device) - 图83

Reads the analog value of the specified pin (2, 3). The value range is 0-1023

How to use

It is a reporter type block. Select the checkbox next to the block to display the analog value of the specified pin on the stage.
Analog value range: 0~1023
Halocode (device) - 图84

Example

In Live mode, when you click the green flag, if the analog value of pin2 is greater than 700, all the LEDs will light up green, otherwise, red.
Halocode (device) - 图85


29. digital write [Digtial_value] to pin [pin_number]

Halocode (device) - 图86

Writes the specified digital value (0 or 1) to the specified pin (0, 1, 2, 3)

Example

In Live mode, when you click the green flag, digital write 1 to pin0.
Halocode (device) - 图87


30. analog write [PWM_value] to pin [pin_number]

Halocode (device) - 图88

Writes the specified analog value (0-1023) to the specified pin (0, 1, 2, 3)

How to use

What is PWM?
Pulse width modulation (PWM) is technology for performing digital encoding on analog signals. It involves two key parameters, namely frequency and duty cycle. The frequency determines the time required for completing a single cycle and the rate of signals changing from high to low level. The duty cycle determines the time the signals stay in high level within the total period of time. By changing the duty cycle of PWM, you can change the average voltage of the output signals, and thus provide analog voltage output.

PWM signals can be used to control the speed of DC motors and the brightness of LED indicators.

Value range: 0~1023, where 0 indicates the duty cycle of 0%, and 1023 indicates that of 100%

Example

In Live mode, when you click the green flag, the analog value written to pin0 is gradually increasing.
Halocode (device) - 图89


31. servo pin [pin_number] rotates to [ServoRotaryAngle]

Halocode (device) - 图90

Sets the output angle of a servo connected to the specified pin (0,1,2,3) to the specified value

How to Use

After connecting a servo to the specified pin of Halocode, you can use this block to set the output angle of the servo.

Servo description
A servo is an automatic control system consisting of a DC motor, underdrive gear set, sensor, and control circuit. It can rotate precisely the specified angle based on simple input signals.

Example

Connect a servo to pin 0 of Halocode. When you click the green flag, the output angle of the servo is set to 90 degrees.
Halocode (device) - 图91


32. buzzer pin[pin_num] plays at frequency of [frequency] HZ for [duration]secs

Halocode (device) - 图92

Makes the buzzer connected to the specified pin play at the specified frequency for the specified seconds

How to use

The vibrational frequency of the sound determines the pitch, which is measured in hertz (Hz).

The sound of some cars:
Fire engine: Gradually from low frequency (650-750 Hz) to high frequency (1450-1550 Hz) at an interval of 1.5 seconds. Then drop back from the high frequency to the low frequency, each interval of 3 seconds.
Police cars: Gradually from low frequency (650-750 Hz) to high frequency (1450-1550 Hz) at an interval of 0.23 seconds. Then drop back from the high frequency to the low frequency, each interval of 0.1 seconds.
Ambulance: Gradually from low frequency (650-750 Hz) to high frequency (9000-10000 Hz) at intervals of 0.4 seconds. Then drop back from the high frequency to the low frequency, each interval of 0.6 seconds. Alternate between high and low frequencies.

Example

When you press the button on the Halocode, the buzzer connected to the pin 0 will simulate the sound of an ambulance.
Halocode (device) - 图93


33. connect to Wi-Fi [ssid] password [wifipassword]

Halocode (device) - 图94

Connects to the specified Wi-Fi network

How to use

Halocode has a built-in Wi-Fi module. The built-in Wi-Fi module is used to:
(1) Make IoT applications possible, like creating smart home appliances.
(2) Bring Halocode into LAN, enabling several Halocode devices to communicate wirelessly with each other so as to produce interactive lights or do other fun things.

Halocode (device) - 图95
Wi-Fi blocks are only available in Upload mode. Enter the name and password of the network you want to connect. You can use “Wi-Fi connected?” block to detect if the Wi-Fi is successfully connected

Example

When Halocode starts up, connect to Wi-Fi “Maker-guest”. If the Wi-Fi is successfully connected, all the LEDs will light up green.
Halocode (device) - 图96


34. Wi-Fi connected?

Halocode (device) - 图97

Detects if the Wi-Fi is successfully connected

Example

When Halocode starts up, connect to Wi-Fi “Maker-guest”. If the Wi-Fi is successfully connected, all the LEDs will light up green.
Halocode (device) - 图98


35. recognize [Language] for [Time] seconds

Halocode (device) - 图99

Recognize the specified language (Chinese or English) for the specified seconds

How to use

Featuring a microphone module and supporting mBlock-integrated Microsoft Cognitive Services, Halocode makes AI speech recognition easy to use.
Preparation before using the speech recognition feature:
1. Switch to Upload mode.
2、Sign in to mBlock 5.
3、Connect to the internet.

Tips
1. Use LEDs to indicate the time of speech recognition. As shown below, Halocode will start speech recognition and all LEDs will light up blue. When it’s done, all LEDs will go off as a signal.
Halocode (device) - 图100
2. Speeches are easier to recognize when words have contexts. Therefore, instead of simply using one keyword, say a sentence including the keyword to command Halocode. For instance, in this project, instead of simply saying “Blue” or “Blue color”, you could say “show blue color” or “change to Blue color”.

Example

Voice-controlled colors: When Halocode is successfully connected to a Wi-Fi network, press the blue button on Halocode, and when the LEDs turn blue, say out aloud your command to change the color of LEDs.
Halocode (device) - 图101


36. speech recognition result

Halocode (device) - 图102

Reports the result of speech recognition

How to use

It is a reporter type block. usually used with “() contains ()?” block.
Halocode (device) - 图103

Example

When Halocode starts up, if the speech recognition result includes “red”, all the LEDs will light up red.
Halocode (device) - 图104


37. broadcast user cloud message [message]

Halocode (device) - 图105

Broadcast the specified user cloud message

How to use

What is user cloud message?
By using the user cloud message function, you can share data across devices and projects with the same mBlock 5 account. The physical distance is no longer a restriction. With the same mBlock 5 account, you can see the noise level of Shenzhen in Beijing.

Preparation before using user cloud message function:
1. Switch to Upload mode.
2、Sign in to mBlock 5.
3、Connect to the internet.

“send user cloud message ()” block is always used with the block “when receiving user cloud message ()”. Make sure that the names you entered are consistent.

Example

When Halocode is successfully connected to a Wi-Fi network,press the blue button on the Halocode, the sprite will move forward 10 steps.
Sprite
Halocode (device) - 图106
Halocode
Halocode (device) - 图107


38. broadcast user cloud message [message] with value [value]

Halocode (device) - 图108

Broadcast the specified user cloud message with the specified value

How to use

What can we do with a value?
When communicating with each other, a device or sprite can tell the other the type and numerical value of a message. For example, if Halocode transmits an user cloud message (volume) with a value (volume of the microphone) to Panda on the stage, Panda can tell the specific numerical value received in the message.

Example

When Halocode is successfully connected to a Wi-Fi network, press the blue button on the Halocode, the sprite will say the volume detected by microphone.
Sprite
Halocode (device) - 图109
Halocode
Halocode (device) - 图110


39. when receiving user cloud message [message]

Halocode (device) - 图111

When receiving the specified user cloud message, run the script

Example

When Halocode is successfully connected to a Wi-Fi network,click the green flag on the stage, the LED animation “rainbow” will be played.
Sprite
Halocode (device) - 图112
Halocode
Halocode (device) - 图113


40. user cloud message [message] value received

Halocode (device) - 图114

Report the value received with the specified user cloud message

Example

When Halocode receives the user cloud message “message”, if the value received is “1”, all the LEDs will light up green.
Halocode (device) - 图115


41. set up LAN named[mesh_name]

Halocode (device) - 图116

Sets up a LAN with a specified name

How to use

What is LAN?
LAN (local-area network) is a network that links a group of computers within a certain location. The group of computers share communications to send messages to each other.
A local area network can be formed between the Halocodes. One of the Halocodes to establish a local area network, and the others need to join this local area network. Then you can use the Halocode to control the others.

Example

When Halocode starts up, set up a LAN which named “mesh1”, all LEDs will light up green for one second.
Halocode (device) - 图117


42. join LAN named [mesh_name]

Halocode (device) - 图118

Join the specified LAN named

How to use

Enter the name of LAN you want to join, make sure you have entered the same name as the established LAN.

Example

When Halocode starts up, join a LAN named “mesh1”, all the LEDs will light up red for one second.
Halocode 1
Halocode (device) - 图119
Halocode 2
Halocode (device) - 图120


43. broadcast [message] on LAN

Halocode (device) - 图121

Broadcasts a specific message on LAN

How to use

When you press the button on the Halocode, boradcast “light” on LAN.
Halocode (device) - 图122


44. when receiving LAN broadcast [message]

Halocode (device) - 图123

When the specified LAN broadcast is received, run the script

Example

When Halocode 2 receives LAN broadcast “light”, LED ring shows 100%.
Halocode 1
Halocode (device) - 图124
Halocode 2
Halocode (device) - 图125


45. LAN message [message]value received

Halocode (device) - 图126

Reports the value sent with the specified LAN broadcast

Example

When Halocode 2 receives LAN broadcast “light”, LED ring shows 50%.
Halocode 1
Halocode (device) - 图127
Halocode 2
Halocode (device) - 图128


46. [ICON] when Halocode starts up

Halocode (device) - 图129

When Halocode starts up, run the script

Example

When Halocode starts up, the LED animation “spindrift” will be played.
Halocode (device) - 图130


47. [ICON] when button is pressed

Halocode (device) - 图131

When the button is pressed, run the script

Example

When the button is pressed, all the LEDs will light up green.
Halocode (device) - 图132


48. [ICON] when Halocode is shaking

Halocode (device) - 图133

When Halocode is being shaken, run the script

Example

When Halocode is being shaken, all the LEDs will light up green.
Halocode (device) - 图134


49. [ICON] when Halocode is [tilt]

Halocode (device) - 图135

When Halocode is placed in the specified position, run the script. There are four options: “arrow-up”, “arrow-down”, “left-tilted”, and “right-tilted”

Example

When Halocode is placed arrow-up, all the LEDs will light up green.
Halocode (device) - 图136


50. [ICON] when touch sensor [touchpad_number] is touched

Halocode (device) - 图137

When the specified touch sensor (0, 1, 2, 3) is touched, run the script

Example

When touch sensor0 is touched, the LED animation “meteor” will be played.
Halocode (device) - 图138


51. [ICON] when [category] >[value]

Halocode (device) - 图139

When the value of the specified parameter (loudness or timer) is greater than the specified value, run the script

Example

When the timer value is greater than 360 seconds, the timer will be reset.
Halocode (device) - 图140


52. broadcast [message] on LAN with value [value]

Halocode (device) - 图141

Broadcast the specified message with the specified value on LAN

Example

When you press the button on the Halocode, broadcast “light” with value 50 on LAN.
Halocode (device) - 图142


53. play LED animation [LED_animation] until done

Halocode (device) - 图143

Displays the specified LED animation and waits until the displaying ends

How to Use

This block provides multiple LED animation options. Click to select one.

Example

When you press the space key, the LEDs on Halocode start to display the rainbow LED animation and light off after the displaying ends.

Halocode (device) - 图144


54. recognize [Language] for [Time] seconds

Halocode (device) - 图145

Starts to recognize the specified language for the specified period

How to Use

Note: To use the language recognition function, ensure that Halocode has connected to a Wi-Fi network.
Click to select a language from the drop-down list box.

Example

After you start Halocode, it connects the Wi-Fi network. After connected to the Wi-Fi network, it starts to recognize English speeches and the first LED matrix connected to Halocode displays the recognized speech.
Note: Ensure that you have connected an LED matrix to Halocode.

Halocode (device) - 图146


55. [LOCATION] [WEATHER_TYPE]

Halocode (device) - 图147

Reports information about the weather of the specified region

How to Use

Note: To use the weather report function, ensure that Halocode has connected to a Wi-Fi network.
Click to select a weather condition from the drop-down list box.

Example

After you start Halocode, it connects the Wi-Fi network. After the Wi-Fi network is connected, the first LED matrix connected to Halocode displays the highest temperature of Shenzhen.
Note: Ensure that you have connected an LED matrix to Halocode.
Halocode (device) - 图148


56. air quality [METEOROLOGICAL] [aq_type]

Halocode (device) - 图149

Reports information about the specified air quality indicator of the specified region

How to Use

Note: To use the air quality indicator report function, ensure that Halocode has connected to a Wi-Fi network.
Click to select an air quality indicator from the drop-down list box.

Example

After you start Halocode, it connects the Wi-Fi network. After the Wi-Fi network is connected, the first LED matrix connected to Halocode displays the AQI of New York.
Note: Ensure that you have connected an LED matrix to Halocode.

Halocode (device) - 图150


57. [LOCATION] [sun_move_type] [time_type]

Halocode (device) - 图151

Reports the sunrise or sunset time of the specified region

How to Use

Note: To use the sunrise/sunset time report function, ensure that Halocode has connected to a Wi-Fi network.
Click to select the time you want to know from the drop-down list box.

Example

After you start Halocode, it connects the Wi-Fi network. After the Wi-Fi network is connected, the first LED matrix connected to Halocode displays the sunrise time of Shenzhen.
Note: Ensure that you have connected an LED matrix to Halocode.

Halocode (device) - 图152


58. angular velocity aroundaxis

Halocode (device) - 图153

Reports the angular velocity at which Halocode rotates around the x-, y-, or z-axis

How to Use

This is a reporter block that must be used in combination with another block requiring data.
You can select the check box on the left of this block to view the angular velocity on the stage.

Halocode (device) - 图154

The following figure shows the x-, y-, and z-axes.
Halocode (device) - 图155

Example

Press the space key and rotates Halocode around the x-axis. The first LED matrix connected to Halocode displays the angular volecity.

Halocode (device) - 图156