-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproject.xml
More file actions
6 lines (5 loc) · 3.1 KB
/
project.xml
File metadata and controls
6 lines (5 loc) · 3.1 KB
1
2
3
4
5
6
<xml xmlns="https://developers.google.com/blockly/xml"><block type="rgb_led_setup" id="C7S`ys$9I%$bHmyfe.#)" x="-718" y="-631"><field name="NUMBER_OF_COMPONENTS">1</field><field name="PIN_RED_1">11</field><field name="PIN_GREEN_1">10</field><field name="PIN_BLUE_1">9</field><field name="PIN_RED_2">6</field><field name="PIN_GREEN_2">5</field><field name="PIN_BLUE_2">3</field><comment pinned="false" h="100" w="460">This block tells the Arduino which pin to use for each color. RGB stands for red, green, and blue. By combining colors, you can make other colors.</comment></block><block type="arduino_loop" id="}:`snsqo[EG,Vl?mN]1w" deletable="false" x="-705" y="-494"><field name="LOOP_TIMES">3</field><comment pinned="false" h="170" w="460">The loop block runs on repeat until your Arduino loses power. It runs right after your setup block if you have one.
If you are using the simulator, you can control how many times it repeats.</comment><statement name="loop"><block type="set_color_led" id="{RD=mqxuKrS6gmPinv0o"><field name="WHICH_COMPONENT">1</field><comment pinned="false" h="130" w="460">Set the RGB LED colour.</comment><value name="COLOR"><block type="colour_random" id="xY(d^Sr~/D0!*B_]HK$l"></block></value><next><block type="delay_block" id="gdKUw;RWDK,2c56R5g8="><comment pinned="false" h="90" w="460">
Wait for the given/defined seconds.</comment><value name="DELAY"><block type="math_number" id="JUuCUXN7?+6pwC0TPZr5"><field name="NUM">1</field></block></value><next><block type="set_color_led" id="07a[sgi#4`}{a+8Ia.Bc"><field name="WHICH_COMPONENT">1</field><comment pinned="false" h="130" w="460">Set the RGB LED colour.</comment><value name="COLOR"><block type="colour_rgb" id="6zz`87|Y2?~2.lP16!GF"><comment pinned="false" h="70" w="460">This is used to create a custom color. Google "RGB color picker" to find a custom color.</comment><value name="RED"><block type="math_number" id="Kg8;qD6=a.vqDIsfsDY2"><field name="NUM">100</field></block></value><value name="GREEN"><block type="math_number" id="qk)Iebk^}V=?+#{:2J#r"><field name="NUM">0</field></block></value><value name="BLUE"><block type="math_number" id="U$rK*wp-%g7iwjLf[s%D"><field name="NUM">100</field></block></value></block></value><next><block type="delay_block" id="#7MufmKU2H?vN[zk2lAw"><comment pinned="false" h="90" w="460">
Wait for the given/defined seconds.</comment><value name="DELAY"><block type="math_number" id="j}EHa$+{WdA`x+is_M3="><field name="NUM">1</field></block></value><next><block type="set_color_led" id="4v_!zFkWqpWY0rOsNpyo"><field name="WHICH_COMPONENT">1</field><comment pinned="false" h="130" w="460">Set the RGB LED colour.</comment><value name="COLOR"><block type="color_picker_custom" id="{3DX3c.-yBg^52yMxVZm"><field name="COLOR">#ff0033</field></block></value><next><block type="delay_block" id="%%.8JCGBGm2PvHnkwz]*"><comment pinned="false" h="90" w="460">
Wait for the given/defined seconds.</comment><value name="DELAY"><block type="math_number" id="7yY0U)%rL(8F.(cXTBpG"><field name="NUM">1</field></block></value></block></next></block></next></block></next></block></next></block></next></block></statement></block></xml>