From f0dffcd138b87c00e17b883ec96c550fcecbad70 Mon Sep 17 00:00:00 2001 From: Cort Date: Tue, 10 Sep 2024 17:22:12 +0800 Subject: [PATCH] Added bytes and bytearray --- public/customBlocks.json | 2 +- public/customBlocks/data/bytearray.json | 16 ++++++ .../customBlocks/data/bytearray_by_size.json | 16 ++++++ public/customBlocks/data/bytes.json | 16 ++++++ public/js/ioty_generator.js | 55 +++++++++++++++++++ public/js/msg.js | 12 ++++ public/toolbox.xml | 9 +++ 7 files changed, 125 insertions(+), 1 deletion(-) create mode 100644 public/customBlocks/data/bytearray.json create mode 100644 public/customBlocks/data/bytearray_by_size.json create mode 100644 public/customBlocks/data/bytes.json diff --git a/public/customBlocks.json b/public/customBlocks.json index c03ecd2..ac5a010 100644 --- a/public/customBlocks.json +++ b/public/customBlocks.json @@ -1 +1 @@ -[{"type": "hid_ccd_advertising", "message0": "%1 #blk-hid_ccd_advertising#", "args0": [{"type": "field_dropdown", "name": "type", "options": [["start", "START"], ["stop", "STOP"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-hid_ccd_advertising_tooltip#", "helpUrl": ""}, {"type": "hid_mouse_send_rel", "message0": "#blk-hid_mouse_send_rel# %1 #blk-y# %2 #blk-and_wheel# %3", "args0": [{"type": "input_value", "name": "x", "check": "Number"}, {"type": "input_value", "name": "y", "check": "Number"}, {"type": "input_value", "name": "w", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-hid_mouse_send_rel_tooltip#", "helpUrl": ""}, {"type": "hid_ccd_send_key_select", "message0": "#blk-hid_ccd_send_key# %1", "args0": [{"type": "field_dropdown", "name": "key", "options": [["Brightness Increase", "0x6f"], ["Brightness Decrease", "0x70"], ["Record", "0xb2"], ["Rewind", "0xb4"], ["Next Track", "0xb5"], ["Prev Track", "0xb6"], ["Stop", "0xb7"], ["Eject", "0xb8"], ["Play/Pause", "0xcd"], ["Mute", "0xe2"], ["Volume Down", "0xea"], ["Volume Up", "0xe9"], ["Calculator", "0x192"], ["Web Browser", "0x196"], ["Terminal Lock", "0x19e"], ["Undo", "0x21a"], ["Copy", "0x21b"], ["Cut", "0x21c"], ["Paste", "0x21d"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-hid_ccd_send_key_select_tooltip#", "helpUrl": ""}, {"type": "hid_keyboard_send_key", "message0": "#blk-hid_keyboard_send_key# %1 #blk-with_modifier# %2 %3 %4 %5 %6 %7 %8 %9", "args0": [{"type": "field_dropdown", "name": "key", "options": [["Enter", "0x28"], ["Esc", "0x29"], ["Backspace", "0x2a"], ["Tab", "0x2b"], ["Caps Lock", "0x39"], ["F1", "0x3a"], ["F2", "0x3b"], ["F3", "0x3c"], ["F4", "0x3d"], ["F5", "0x3e"], ["F6", "0x3f"], ["F7", "0x40"], ["F8", "0x41"], ["F9", "0x42"], ["F10", "0x43"], ["F11", "0x44"], ["F12", "0x45"], ["Print Screen", "0x46"], ["Scroll Lock", "0x47"], ["Pause", "0x48"], ["Insert", "0x49"], ["Home", "0x4a"], ["Page Up", "0x4b"], ["Delete", "0x4c"], ["End", "0x4d"], ["Page Down", "0x4e"], ["Right Arrow", "0x4f"], ["Left Arrow", "0x50"], ["Down Arrow", "0x51"], ["Up Arrow", "0x52"], ["Num Lock", "0x53"], ["Keypad /", "0x54"], ["Keypad *", "0x55"], ["Keypad -", "0x56"], ["Keypad +", "0x57"], ["Keypad Enter", "0x58"], ["Keypad 1", "0x59"], ["Keypad 2", "0x5a"], ["Keypad 3", "0x5b"], ["Keypad 4", "0x5c"], ["Keypad 5", "0x5d"], ["Keypad 6", "0x5e"], ["Keypad 7", "0x5f"], ["Keypad 8", "0x60"], ["Keypad 9", "0x61"], ["Keypad 0", "0x62"], ["Keypad .", "0x63"]]}, {"type": "field_dropdown", "name": "lctrl", "options": [["-", "0"], ["L CTRL", "1"]]}, {"type": "field_dropdown", "name": "lshift", "options": [["-", "0"], ["L SHIFT", "1"]]}, {"type": "field_dropdown", "name": "lalt", "options": [["-", "0"], ["L ALT", "1"]]}, {"type": "field_dropdown", "name": "lmeta", "options": [["-", "0"], ["L META", "1"]]}, {"type": "field_dropdown", "name": "rctrl", "options": [["-", "0"], ["R CTRL", "1"]]}, {"type": "field_dropdown", "name": "rshift", "options": [["-", "0"], ["R SHIFT", "1"]]}, {"type": "field_dropdown", "name": "ralt", "options": [["-", "0"], ["R ALT", "1"]]}, {"type": "field_dropdown", "name": "rmeta", "options": [["-", "0"], ["R META", "1"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-hid_keyboard_send_key_tooltip#", "helpUrl": ""}, {"type": "hid_ccd_init", "message0": "#blk-hid_ccd_init# %1", "args0": [{"type": "input_value", "name": "name", "check": "String"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-hid_ccd_init_tooltip#", "helpUrl": ""}, {"type": "hid_keyboard_status", "message0": "#blk-hid_keyboard_status# %1", "args0": [{"type": "field_dropdown", "name": "type", "options": [["idle", "IDLE"], ["advertising", "ADVERTISING"], ["connected", "CONNECTED"], ["stopped", "STOPPED"]]}], "inputsInline": true, "output": "Boolean", "colour": 65, "tooltip": "#blk-hid_keyboard_status_tooltip#", "helpUrl": ""}, {"type": "hid_ccd_send_key", "message0": "#blk-hid_ccd_send_key# %1", "args0": [{"type": "input_value", "name": "key", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-hid_ccd_send_key_tooltip#", "helpUrl": ""}, {"type": "hid_joystick_status", "message0": "#blk-hid_joystick_status# %1", "args0": [{"type": "field_dropdown", "name": "type", "options": [["idle", "IDLE"], ["advertising", "ADVERTISING"], ["connected", "CONNECTED"], ["stopped", "STOPPED"]]}], "inputsInline": true, "output": "Boolean", "colour": 65, "tooltip": "#blk-hid_joystick_status_tooltip#", "helpUrl": ""}, {"type": "hid_mouse_advertising", "message0": "%1 #blk-hid_mouse_advertising#", "args0": [{"type": "field_dropdown", "name": "type", "options": [["start", "START"], ["stop", "STOP"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-hid_mouse_advertising_tooltip#", "helpUrl": ""}, {"type": "hid_keyboard_init", "message0": "#blk-hid_keyboard_init# %1", "args0": [{"type": "input_value", "name": "name", "check": "String"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-hid_keyboard_init_tooltip#", "helpUrl": ""}, {"type": "hid_joystick_send_axes", "message0": "#blk-hid_joystick_send_axes# %1 #blk-y# %2", "args0": [{"type": "input_value", "name": "x", "check": "Number"}, {"type": "input_value", "name": "y", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-hid_joystick_send_axes_tooltip#", "helpUrl": ""}, {"type": "hid_ccd_status", "message0": "#blk-hid_ccd_status# %1", "args0": [{"type": "field_dropdown", "name": "type", "options": [["idle", "IDLE"], ["advertising", "ADVERTISING"], ["connected", "CONNECTED"], ["stopped", "STOPPED"]]}], "inputsInline": true, "output": "Boolean", "colour": 65, "tooltip": "#blk-hid_ccd_status_tooltip#", "helpUrl": ""}, {"type": "hid_keyboard_send_string", "message0": "#blk-hid_keyboard_send_string# %1", "args0": [{"type": "input_value", "name": "value", "check": "String"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-hid_keyboard_send_string_tooltip#", "helpUrl": ""}, {"type": "hid_mouse_status", "message0": "#blk-hid_mouse_status# %1", "args0": [{"type": "field_dropdown", "name": "type", "options": [["idle", "IDLE"], ["advertising", "ADVERTISING"], ["connected", "CONNECTED"], ["stopped", "STOPPED"]]}], "inputsInline": true, "output": "Boolean", "colour": 65, "tooltip": "#blk-hid_mouse_status_tooltip#", "helpUrl": ""}, {"type": "hid_mouse_send_btns", "message0": "#blk-hid_mouse_send_btns# %1 %2 %3", "args0": [{"type": "field_dropdown", "name": "left", "options": [["L Up", "0"], ["L Down", "1"]]}, {"type": "field_dropdown", "name": "right", "options": [["R Up", "0"], ["R Down", "1"]]}, {"type": "field_dropdown", "name": "middle", "options": [["M Up", "0"], ["M Down", "1"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-hid_mouse_send_btns_tooltip#", "helpUrl": ""}, {"type": "hid_joystick_send_btns", "message0": "#blk-hid_joystick_send_btns# %1 %2 %3 %4 %5 %6 %7 %8", "args0": [{"type": "field_dropdown", "name": "b1", "options": [["B1 Up", "0"], ["B1 Down", "1"]]}, {"type": "field_dropdown", "name": "b2", "options": [["B2 Up", "0"], ["B2 Down", "1"]]}, {"type": "field_dropdown", "name": "b3", "options": [["B3 Up", "0"], ["B3 Down", "1"]]}, {"type": "field_dropdown", "name": "b4", "options": [["B4 Up", "0"], ["B4 Down", "1"]]}, {"type": "field_dropdown", "name": "b5", "options": [["B5 Up", "0"], ["B5 Down", "1"]]}, {"type": "field_dropdown", "name": "b6", "options": [["B6 Up", "0"], ["B6 Down", "1"]]}, {"type": "field_dropdown", "name": "b7", "options": [["B7 Up", "0"], ["B7 Down", "1"]]}, {"type": "field_dropdown", "name": "b8", "options": [["B8 Up", "0"], ["B8 Down", "1"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-hid_joystick_send_btns_tooltip#", "helpUrl": ""}, {"type": "hid_joystick_advertising", "message0": "%1 #blk-hid_joystick_advertising#", "args0": [{"type": "field_dropdown", "name": "type", "options": [["start", "START"], ["stop", "STOP"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-hid_joystick_advertising_tooltip#", "helpUrl": ""}, {"type": "hid_keyboard_advertising", "message0": "%1 #blk-hid_keyboard_advertising#", "args0": [{"type": "field_dropdown", "name": "type", "options": [["start", "START"], ["stop", "STOP"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-hid_keyboard_advertising_tooltip#", "helpUrl": ""}, {"type": "hid_joystick_init", "message0": "#blk-hid_joystick_init# %1", "args0": [{"type": "input_value", "name": "name", "check": "String"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-hid_joystick_init_tooltip#", "helpUrl": ""}, {"type": "hid_mouse_init", "message0": "#blk-hid_mouse_init# %1 #blk-and_type# %2", "args0": [{"type": "input_value", "name": "name", "check": "String"}, {"type": "field_dropdown", "name": "type", "options": [["relative", "rel"], ["absolute", "abs"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-hid_mouse_init_tooltip#", "helpUrl": ""}, {"type": "hid_mouse_send_abs", "message0": "#blk-hid_mouse_send_abs# %1 #blk-y# %2", "args0": [{"type": "input_value", "name": "x", "check": "Number"}, {"type": "input_value", "name": "y", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-hid_mouse_send_abs_tooltip#", "helpUrl": ""}, {"type": "vl53l1x_init", "message0": "#blk-vl53l1x_init# %1 #blk-with_address# %2", "args0": [{"type": "field_dropdown", "name": "id", "options": [["I2C0", "i2c0"], ["I2C1", "i2c1"], ["Soft I2C0", "softI2c0"], ["Soft I2C1", "softI2c1"]]}, {"type": "field_input", "name": "addr", "text": "41"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-vl53l1x_init_tooltip#", "helpUrl": ""}, {"type": "vl53l1x_read", "message0": "#blk-vl53l1x_read#", "args0": [], "output": "Number", "colour": 230, "tooltip": "#blk-vl53l1x_read_tooltip#", "helpUrl": ""}, {"type": "vl53l1x_set_distance_mode", "message0": "#blk-vl53l1x_set_distance_mode# %1", "args0": [{"type": "field_dropdown", "name": "mode", "options": [["Short", "short"], ["Long", "long"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-vl53l1x_set_distance_mode_tooltip#", "helpUrl": ""}, {"type": "tween_is_ended", "message0": "#blk-tween_is_ended# %1 #blk-is_ended_at_time# %2", "args0": [{"type": "input_value", "name": "id"}, {"type": "input_value", "name": "x", "check": "Number"}], "inputsInline": true, "output": "Boolean", "colour": 160, "tooltip": "#blk-tween_is_ended_tooltip#", "helpUrl": ""}, {"type": "tween_get", "message0": "#blk-tween_get# %1 #blk-at_time# %2", "args0": [{"type": "input_value", "name": "id"}, {"type": "input_value", "name": "x", "check": "Number"}], "inputsInline": true, "output": "Number", "colour": 160, "tooltip": "#blk-tween_get_tooltip#", "helpUrl": ""}, {"type": "tween_start", "message0": "#blk-tween_start# %1 #blk-type# %2 #blk-start_value# %3 #blk-end_value# %4 #blk-start_time# %5 %6 %7", "args0": [{"type": "input_value", "name": "id"}, {"type": "field_dropdown", "name": "type", "options": [["Linear", "LINEAR"], ["In Quad", "IN_QUAD"], ["Out Quad", "OUT_QUAD"], ["In Out Quad", "IN_OUT_QUAD"], ["In Cubic", "IN_CUBIC"], ["Out Cubic", "OUT_CUBIC"], ["In Out Cubic", "IN_OUT_CUBIC"], ["Out Elastic", "OUT_ELASTIC"], ["Out Bounce", "OUT_BOUNCE"]]}, {"type": "input_value", "name": "y0", "check": "Number"}, {"type": "input_value", "name": "y1", "check": "Number"}, {"type": "input_value", "name": "x0", "check": "Number"}, {"type": "field_dropdown", "name": "durationOrSpeedSelection", "options": [["Duration", "DURATION"], ["Speed", "SPEED"]]}, {"type": "input_value", "name": "durationOrSpeedValue", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 160, "tooltip": "#blk-tween_start_tooltip#", "helpUrl": ""}, {"type": "tween_remove", "message0": "#blk-tween_remove# %1", "args0": [{"type": "input_value", "name": "id"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 160, "tooltip": "#blk-tween_remove_tooltip#", "helpUrl": ""}, {"type": "apds9960_disable_gesture", "message0": "#blk-apds9960_disable_gesture#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-apds9960_disable_gesture_tooltip#", "helpUrl": ""}, {"type": "apds9960_disable_prox", "message0": "#blk-apds9960_disable_prox#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-apds9960_disable_prox_tooltip#", "helpUrl": ""}, {"type": "apds9960_get_gesture", "message0": "#blk-apds9960_get_gesture#", "args0": [], "output": "String", "colour": 230, "tooltip": "#blk-apds9960_get_gesture_tooltip#", "helpUrl": ""}, {"type": "apds9960_read_gesture", "message0": "#blk-apds9960_read_gesture#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-apds9960_read_gesture_tooltip#", "helpUrl": ""}, {"type": "apds9960_enable_prox", "message0": "#blk-apds9960_enable_prox# %1 #blk-and_led# %2", "args0": [{"type": "field_dropdown", "name": "gain", "options": [["1x", "GAIN_1"], ["2x", "GAIN_2"], ["4x", "GAIN_4"], ["8x", "GAIN_8"]]}, {"type": "field_dropdown", "name": "led", "options": [["100mA", "LED_100MA"], ["50mA", "LED_50MA"], ["25mA", "LED_25MA"], ["12mA", "LED_12MA"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-apds9960_enable_prox_tooltip#", "helpUrl": ""}, {"type": "apds9960_init", "message0": "#blk-apds9960_init# %1 #blk-with_address# %2", "args0": [{"type": "field_dropdown", "name": "id", "options": [["I2C0", "i2c0"], ["I2C1", "i2c1"], ["Soft I2C0", "softI2c0"], ["Soft I2C1", "softI2c1"]]}, {"type": "field_input", "name": "addr", "text": "57"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-apds9960_init_tooltip#", "helpUrl": ""}, {"type": "apds9960_read_prox", "message0": "#blk-apds9960_read_prox#", "args0": [], "output": "Number", "colour": 230, "tooltip": "#blk-apds9960_read_prox_tooltip#", "helpUrl": ""}, {"type": "apds9960_read_light", "message0": "#blk-apds9960_read_light# %1", "args0": [{"type": "field_dropdown", "name": "type", "options": [["Clear", "c"], ["Red", "r"], ["Green", "g"], ["Blue", "b"], ["All (List)", "all"]]}], "output": ["Number", "Array"], "colour": 230, "tooltip": "#blk-apds9960_read_light_tooltip#", "helpUrl": ""}, {"type": "apds9960_enable_light", "message0": "#blk-apds9960_enable_light# %1 #blk-and_speed# %2", "args0": [{"type": "field_dropdown", "name": "gain", "options": [["1x", "AGAIN_1"], ["4x", "AGAIN_4"], ["16x", "AGAIN_16"], ["64x", "AGAIN_64"]]}, {"type": "field_input", "name": "speed", "text": "219"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-apds9960_enable_light_tooltip#", "helpUrl": ""}, {"type": "apds9960_enable_gesture", "message0": "#blk-apds9960_enable_gesture# %1 #blk-and_led# %2", "args0": [{"type": "field_dropdown", "name": "gain", "options": [["1x", "GAIN_1"], ["2x", "GAIN_2"], ["4x", "GAIN_4"], ["8x", "GAIN_8"]]}, {"type": "field_dropdown", "name": "led", "options": [["100mA", "LED_100MA"], ["50mA", "LED_50MA"], ["25mA", "LED_25MA"], ["12mA", "LED_12MA"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-apds9960_enable_gesture_tooltip#", "helpUrl": ""}, {"type": "apds9960_disable_light", "message0": "#blk-apds9960_disable_light#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-apds9960_disable_light_tooltip#", "helpUrl": ""}, {"type": "dict_empty", "message0": "#blk-dict_empty#", "args0": [], "output": null, "inputsInline": true, "colour": 260, "tooltip": "#blk-dict_empty_tooltip#", "helpUrl": ""}, {"type": "dict_set", "message0": "#blk-set# %1 #blk-to# %2", "args0": [{"type": "input_value", "name": "variable"}, {"type": "input_value", "name": "value"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 260, "tooltip": "#blk-dict_set_tooltip#", "helpUrl": ""}, {"type": "sdcard_init", "message0": "#blk-sdcard_init# %1 #blk-cs# %2 #blk-sck# %3 #blk-mosi# %4 #blk-miso# %5 #blk-mount_point# %6", "args0": [{"type": "field_dropdown", "name": "slot", "options": [["0", "0"], ["1", "1"], ["2", "2"], ["3", "3"]]}, {"type": "field_dropdown", "name": "cs", "options": [["4", "4"], ["5", "5"], ["12", "12"], ["13", "13"], ["14", "14"], ["15", "15"], ["16", "16"], ["17", "17"], ["18", "18"], ["19", "19"], ["21", "21"], ["22", "22"], ["23", "23"], ["25", "25"], ["26", "26"], ["27", "27"], ["32", "32"], ["33", "33"]]}, {"type": "field_dropdown", "name": "sck", "options": [["4", "4"], ["5", "5"], ["12", "12"], ["13", "13"], ["14", "14"], ["15", "15"], ["16", "16"], ["17", "17"], ["18", "18"], ["19", "19"], ["21", "21"], ["22", "22"], ["23", "23"], ["25", "25"], ["26", "26"], ["27", "27"], ["32", "32"], ["33", "33"]]}, {"type": "field_dropdown", "name": "mosi", "options": [["4", "4"], ["5", "5"], ["12", "12"], ["13", "13"], ["14", "14"], ["15", "15"], ["16", "16"], ["17", "17"], ["18", "18"], ["19", "19"], ["21", "21"], ["22", "22"], ["23", "23"], ["25", "25"], ["26", "26"], ["27", "27"], ["32", "32"], ["33", "33"]]}, {"type": "field_dropdown", "name": "miso", "options": [["4", "4"], ["5", "5"], ["12", "12"], ["13", "13"], ["14", "14"], ["15", "15"], ["16", "16"], ["17", "17"], ["18", "18"], ["19", "19"], ["21", "21"], ["22", "22"], ["23", "23"], ["25", "25"], ["26", "26"], ["27", "27"], ["32", "32"], ["33", "33"], ["34", "34"], ["35", "35"], ["36", "36"], ["39", "39"]]}, {"type": "input_value", "name": "dirname", "check": "String"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-sdcard_init_tooltip#", "helpUrl": ""}, {"type": "sdcard_deinit", "message0": "#blk-sdcard_deinit# %1", "args0": [{"type": "input_value", "name": "dirname", "check": "String"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-sdcard_deinit_tooltip#", "helpUrl": ""}, {"type": "max30102_read_succeeded", "message0": "#blk-max30102_read_succeeded#", "args0": [], "output": "Boolean", "colour": 230, "tooltip": "#blk-max30102_read_succeeded_tooltip#", "helpUrl": ""}, {"type": "max30102_spo2", "message0": "#blk-max30102_spo2#", "args0": [], "output": "Number", "colour": 230, "tooltip": "#blk-max30102_spo2_tooltip#", "helpUrl": ""}, {"type": "max30102_bpm", "message0": "#blk-max30102_bpm#", "args0": [], "output": "Number", "colour": 230, "tooltip": "#blk-max30102_bpm_tooltip#", "helpUrl": ""}, {"type": "max30102_init", "message0": "#blk-max30102_init# %1 #blk-with_address# %2 #blk-red_pwr# %3 #blk-ir_pwr# %4", "args0": [{"type": "field_dropdown", "name": "id", "options": [["I2C0", "i2c0"], ["I2C1", "i2c1"], ["Soft I2C0", "softI2c0"], ["Soft I2C1", "softI2c1"]]}, {"type": "field_input", "name": "addr", "text": "87"}, {"type": "field_dropdown", "name": "red", "options": [["Lowest", "0x02"], ["Low", "0x1F"], ["Medium", "0x7F"], ["High", "0xFF"]]}, {"type": "field_dropdown", "name": "ir", "options": [["Lowest", "0x02"], ["Low", "0x1F"], ["Medium", "0x7F"], ["High", "0xFF"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-max30102_init_tooltip#", "helpUrl": ""}, {"type": "max30102_read_temperature", "message0": "#blk-max30102_read_temperature#", "args0": [], "output": "Number", "colour": 230, "tooltip": "#blk-max30102_read_temperature_tooltip#", "helpUrl": ""}, {"type": "max30102_beat", "message0": "#blk-max30102_beat#", "args0": [], "output": "Boolean", "colour": 230, "tooltip": "#blk-max30102_beat_tooltip#", "helpUrl": ""}, {"type": "max30102_read", "message0": "#blk-max30102_read#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-max30102_read_tooltip#", "helpUrl": ""}, {"type": "max30102_value", "message0": "#blk-max30102_value# %1", "args0": [{"type": "field_dropdown", "name": "led", "options": [["Red", "red"], ["IR", "ir"]]}], "output": "Number", "colour": 230, "tooltip": "#blk-max30102_value_tooltip#", "helpUrl": ""}, {"type": "mfrc522_card_present", "message0": "#blk-mfrc522_card_present#", "args0": [], "output": "Boolean", "colour": 230, "tooltip": "#blk-mfrc522_card_present_tooltip#", "helpUrl": ""}, {"type": "mfrc522_get_uid", "message0": "#blk-mfrc522_get_uid#", "args0": [], "output": "String", "colour": 230, "tooltip": "#blk-mfrc522_get_uid_tooltip#", "helpUrl": ""}, {"type": "mfrc522_init", "message0": "#blk-mfrc522_init# %1 #blk-with_rst# %2 #blk-and_cs# %3", "args0": [{"type": "field_dropdown", "name": "spi", "options": [["SPI1", "spi1"], ["SPI2", "spi2"], ["Soft SPI1", "softSpi1"], ["Soft SPI2", "softSpi2"]]}, {"type": "field_dropdown", "name": "rst", "options": [["4", "4"], ["5", "5"], ["12", "12"], ["13", "13"], ["14", "14"], ["15", "15"], ["16", "16"], ["17", "17"], ["18", "18"], ["19", "19"], ["21", "21"], ["22", "22"], ["23", "23"], ["25", "25"], ["26", "26"], ["27", "27"], ["32", "32"], ["33", "33"]]}, {"type": "field_dropdown", "name": "cs", "options": [["4", "4"], ["5", "5"], ["12", "12"], ["13", "13"], ["14", "14"], ["15", "15"], ["16", "16"], ["17", "17"], ["18", "18"], ["19", "19"], ["21", "21"], ["22", "22"], ["23", "23"], ["25", "25"], ["26", "26"], ["27", "27"], ["32", "32"], ["33", "33"]]}], "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-mfrc522_init_tooltip#", "helpUrl": ""}, {"type": "camera_set_quality", "message0": "#blk-camera_set_quality# %1", "args0": [{"type": "field_number", "name": "quality", "value": "10"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-camera_set_quality_tooltip#", "helpUrl": ""}, {"type": "camera_init", "message0": "#blk-camera_init# %1 #blk-and_framesize# %2 #blk-and_clock# %3", "args0": [{"type": "field_dropdown", "name": "format", "options": [["JPEG", "JPEG"], ["RGB565", "RGB565"], ["YUV422", "YUV422"], ["GRAYSCALE", "GRAYSCALE"]]}, {"type": "field_dropdown", "name": "framesize", "options": [["96X96", "FRAME_96X96"], ["QQVGA (160x120)", "FRAME_QQVGA"], ["QCIF (176x144)", "FRAME_QCIF"], ["HQVGA (240x176)", "FRAME_HQVGA"], ["240X240", "FRAME_240X240"], ["QVGA (320x240)", "FRAME_QVGA"], ["CIF (400x296)", "FRAME_CIF"], ["HVGA (480x320)", "FRAME_HVGA"], ["VGA (640x480)", "FRAME_VGA"], ["SVGA (800x600)", "FRAME_SVGA"], ["XGA (1024x768)", "FRAME_XGA"], ["HD (1280x720)", "FRAME_HD"], ["SXGA (1280x1024)", "FRAME_SXGA"], ["UXGA (1600x1200)", "FRAME_UXGA"]]}, {"type": "field_dropdown", "name": "clock", "options": [["20 MHz", "XCLK_20MHz"], ["10 MHz", "XCLK_10MHz"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-camera_init_tooltip#", "helpUrl": ""}, {"type": "camera_set_saturation", "message0": "#blk-camera_set_saturation# %1", "args0": [{"type": "field_dropdown", "name": "level", "options": [["0", "0"], ["-2", "-2"], ["-1", "-1"], ["1", "1"], ["2", "2"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-camera_set_saturation_tooltip#", "helpUrl": ""}, {"type": "camera_capture", "message0": "#blk-camera_capture#", "args0": [], "output": "Bytes", "colour": 230, "tooltip": "#blk-camera_capture_tooltip#", "helpUrl": ""}, {"type": "camera_set_brightness", "message0": "#blk-camera_set_brightness# %1", "args0": [{"type": "field_dropdown", "name": "level", "options": [["0", "0"], ["-2", "-2"], ["-1", "-1"], ["1", "1"], ["2", "2"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-camera_set_brightness_tooltip#", "helpUrl": ""}, {"type": "camera_set_contrast", "message0": "#blk-camera_set_contrast# %1", "args0": [{"type": "field_dropdown", "name": "level", "options": [["0", "0"], ["-2", "-2"], ["-1", "-1"], ["1", "1"], ["2", "2"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-camera_set_contrast_tooltip#", "helpUrl": ""}, {"type": "camera_deinit", "message0": "#blk-camera_deinit#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-camera_deinit_tooltip#", "helpUrl": ""}, {"type": "camera_set_whitebalance", "message0": "#blk-camera_set_whitebalance# %1", "args0": [{"type": "field_dropdown", "name": "mode", "options": [["None", "WB_NONE"], ["Sunny", "WB_SUNNY"], ["Cloudy", "WB_CLOUDY"], ["Office", "WB_OFFICE"], ["Home", "WB_HOME"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-camera_set_whitebalance_tooltip#", "helpUrl": ""}, {"type": "qmc5883l_read", "message0": "#blk-qmc5883l_read#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-qmc5883l_read_tooltip#", "helpUrl": ""}, {"type": "qmc5883l_init", "message0": "#blk-qmc5883l_init# %1 #blk-with_address# %2 #blk-and_scale# %3", "args0": [{"type": "field_dropdown", "name": "id", "options": [["I2C0", "i2c0"], ["I2C1", "i2c1"], ["Soft I2C0", "softI2c0"], ["Soft I2C1", "softI2c1"]]}, {"type": "field_input", "name": "addr", "text": "13"}, {"type": "field_dropdown", "name": "scale", "options": [["2G", "2G"], ["8G", "8G"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-qmc5883l_init_tooltip#", "helpUrl": ""}, {"type": "qmc5883l_value", "message0": "#blk-qmc5883l_value# %1", "args0": [{"type": "field_dropdown", "name": "axis", "options": [["X-axis", "x"], ["Y-axis", "y"], ["Z-axis", "z"], ["All (List)", "all"]]}], "output": ["Number", "Array"], "colour": 230, "tooltip": "#blk-qmc5883l_value_tooltip#", "helpUrl": ""}, {"type": "stepper_wheels_mecanum_move_turn", "message0": "#blk-stepper_wheels_mecanum_move_turn# %1 #blk-and_speed# %2 #blk-and_rotation# %3", "args0": [{"type": "input_value", "name": "direction", "check": "Number"}, {"type": "input_value", "name": "speed", "check": "Number"}, {"type": "input_value", "name": "turn", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-stepper_wheels_mecanum_move_turn_tooltip#", "helpUrl": ""}, {"type": "stepper_wheels_init_mecanum", "message0": "#blk-stepper_wheels_init_mecanum# #blk-with_motors# %1 %2 %3 %4 #blk-and_max_speed# %5", "args0": [{"type": "field_number", "name": "motor0", "value": 0}, {"type": "field_number", "name": "motor1", "value": 1}, {"type": "field_number", "name": "motor2", "value": 2}, {"type": "field_number", "name": "motor3", "value": 3}, {"type": "field_number", "name": "max_speed", "value": 1200}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-stepper_wheels_init_mecanum_tooltip#", "helpUrl": ""}, {"type": "stepper_wheels_mecanum_move_steps", "message0": "#blk-stepper_wheels_mecanum_move_steps# %1 #blk-and_speed# %2 #blk-for# %3 #blk-steps# #blk-and# %4", "args0": [{"type": "input_value", "name": "direction", "check": "Number"}, {"type": "input_value", "name": "speed", "check": "Number"}, {"type": "input_value", "name": "steps", "check": "Number"}, {"type": "field_dropdown", "name": "wait", "options": [["wait for completion", "True"], ["don't wait", "False"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-stepper_wheels_mecanum_move_steps_tooltip#", "helpUrl": ""}, {"type": "stepper_wheels_mecanum_set_acceleration", "message0": "#blk-stepper_wheels_mecanum_set_acceleration# %1 #blk-steps_per_second_per_second#", "args0": [{"type": "input_value", "name": "acceleration", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-stepper_wheels_mecanum_set_acceleration_tooltip#", "helpUrl": ""}, {"type": "stepper_wheels_mecanum_turn_steps", "message0": "#blk-stepper_wheels_mecanum_turn_steps# %1 #blk-for# %2 #blk-steps# #blk-and# %3", "args0": [{"type": "input_value", "name": "turn", "check": "Number"}, {"type": "input_value", "name": "steps", "check": "Number"}, {"type": "field_dropdown", "name": "wait", "options": [["wait for completion", "True"], ["don't wait", "False"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-stepper_wheels_mecanum_turn_steps_tooltip#", "helpUrl": ""}, {"type": "stepper_wheels_mecanum_stop", "message0": "#blk-stepper_wheels_mecanum_stop#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-stepper_wheels_mecanum_stop_tooltip#", "helpUrl": ""}, {"type": "stepper_wheels_motor_set_acceleration", "message0": "#blk-stepper_wheels_motor_set_acceleration# %1 #blk-to# %2 #blk-steps_per_second_per_second#", "args0": [{"type": "field_dropdown", "name": "index", "options": [["0", "0"], ["1", "1"], ["2", "2"], ["3", "3"]]}, {"type": "input_value", "name": "acceleration", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-stepper_wheels_motor_set_acceleration_tooltip#", "helpUrl": ""}, {"type": "stepper_wheels_motor_run", "message0": "#blk-stepper_wheels_motor_run# %1 #blk-at# %2 #blk-steps_per_second#", "args0": [{"type": "field_dropdown", "name": "index", "options": [["0", "0"], ["1", "1"], ["2", "2"], ["3", "3"]]}, {"type": "input_value", "name": "speed", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-stepper_wheels_motor_run_tooltip#", "helpUrl": ""}, {"type": "stepper_wheels_init", "message0": "#blk-stepper_wheels_init# %1 #blk-with_address# %2", "args0": [{"type": "field_dropdown", "name": "id", "options": [["I2C0", "i2c0"], ["I2C1", "i2c1"], ["Soft I2C0", "softI2c0"], ["Soft I2C1", "softI2c1"]]}, {"type": "field_input", "name": "addr", "text": "85"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-stepper_wheels_init_tooltip#", "helpUrl": ""}, {"type": "stepper_wheels_reset", "message0": "#blk-stepper_wheels_reset#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-stepper_wheels_reset_tooltip#", "helpUrl": ""}, {"type": "stepper_wheels_motor_reset_steps", "message0": "#blk-stepper_wheels_motor_reset_steps# %1", "args0": [{"type": "field_dropdown", "name": "index", "options": [["0", "0"], ["1", "1"], ["2", "2"], ["3", "3"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-stepper_wheels_motor_reset_steps_tooltip#", "helpUrl": ""}, {"type": "stepper_wheels_motor_get_steps", "message0": "#blk-stepper_wheels_motor_get_steps# %1", "args0": [{"type": "field_dropdown", "name": "index", "options": [["0", "0"], ["1", "1"], ["2", "2"], ["3", "3"]]}], "inputsInline": true, "output": "Number", "colour": 230, "tooltip": "#blk-stepper_wheels_motor_get_steps_tooltip#", "helpUrl": ""}, {"type": "stepper_wheels_motor_stop", "message0": "#blk-stepper_wheels_motor_stop# %1", "args0": [{"type": "field_dropdown", "name": "index", "options": [["0", "0"], ["1", "1"], ["2", "2"], ["3", "3"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-stepper_wheels_motor_stop_tooltip#", "helpUrl": ""}, {"type": "stepper_wheels_enable", "message0": "%1 #blk-stepper_wheels_enable#", "args0": [{"type": "field_dropdown", "name": "enable", "options": [["enable", "enable"], ["disable", "disable"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-stepper_wheels_enable_tooltip#", "helpUrl": ""}, {"type": "stepper_wheels_motor_run_steps", "message0": "#blk-stepper_wheels_motor_run_steps# %1 #blk-at# %2 #blk-steps_per_second# #blk-for# %3 #blk-steps# #blk-and# %4", "args0": [{"type": "field_dropdown", "name": "index", "options": [["0", "0"], ["1", "1"], ["2", "2"], ["3", "3"]]}, {"type": "input_value", "name": "speed", "check": "Number"}, {"type": "input_value", "name": "steps", "check": "Number"}, {"type": "field_dropdown", "name": "wait", "options": [["wait for completion", "True"], ["don't wait", "False"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-stepper_wheels_motor_run_steps_tooltip#", "helpUrl": ""}, {"type": "mv_yuv_to_grayscale", "message0": "#blk-mv_yuv_to_grayscale# %1", "args0": [{"type": "input_value", "name": "buf", "check": "Bytes"}], "output": "Bytes", "colour": 65, "tooltip": "#blk-mv_yuv_to_grayscale_tooltip#", "helpUrl": ""}, {"type": "mv_gaussian_blur_3x3_gray", "message0": "#blk-mv_gaussian_blur_3x3_gray# %1 #blk-of_width# %2 #blk-and_height# %3", "args0": [{"type": "input_value", "name": "buf", "check": "Bytes"}, {"type": "field_number", "name": "width", "value": "160"}, {"type": "field_number", "name": "height", "value": "120"}], "output": "Bytes", "colour": 65, "tooltip": "#blk-mv_gaussian_blur_3x3_gray_tooltip#", "helpUrl": ""}, {"type": "mv_crop_row_yuv", "message0": "#blk-mv_crop_row_yuv# %1 #blk-of_width# %2 #blk-from_top# %3 #blk-and_height# %4", "args0": [{"type": "input_value", "name": "buf", "check": "Bytes"}, {"type": "field_number", "name": "width", "value": "160"}, {"type": "field_number", "name": "top", "value": "30"}, {"type": "field_number", "name": "out_height", "value": "60"}], "output": "Bytes", "colour": 65, "tooltip": "#blk-mv_crop_row_yuv_tooltip#", "helpUrl": ""}, {"type": "mv_find_blobs_yuv", "message0": "#blk-mv_find_blobs_yuv# %1 #blk-of_width# %2 #blk-and_height# %3 #blk-with_min_max_Y# %4 %5 #blk-U# %6 %7 #blk-V# %8 %9 #blk-and_at_least# %10 #blk-pixels#", "args0": [{"type": "input_value", "name": "buf", "check": "Bytes"}, {"type": "field_number", "name": "width", "value": "160"}, {"type": "field_number", "name": "height", "value": "120"}, {"type": "field_number", "name": "minY", "value": "0"}, {"type": "field_number", "name": "maxY", "value": "255"}, {"type": "field_number", "name": "minU", "value": "0"}, {"type": "field_number", "name": "maxU", "value": "255"}, {"type": "field_number", "name": "minV", "value": "0"}, {"type": "field_number", "name": "maxV", "value": "255"}, {"type": "field_number", "name": "pixels_threshold", "value": "10"}], "output": "Array", "colour": 65, "tooltip": "#blk-mv_find_blobs_yuv_tooltip#", "helpUrl": ""}, {"type": "mv_find_circle_single", "message0": "#blk-mv_find_circle_single# %1 #blk-of_width# %2 #blk-and_height# %3 #blk-with_circle_radius# %4 #blk-and_at_least# %5 #blk-pixels#", "args0": [{"type": "input_value", "name": "buf", "check": "Bytes"}, {"type": "field_number", "name": "width", "value": "160"}, {"type": "field_number", "name": "height", "value": "120"}, {"type": "field_number", "name": "radius", "value": "10"}, {"type": "field_number", "name": "pixels_threshold", "value": "20"}], "output": "Array", "colour": 65, "tooltip": "#blk-mv_find_circle_single_tooltip#", "helpUrl": ""}, {"type": "mv_gaussian_blur_3x3_yuv", "message0": "#blk-mv_gaussian_blur_3x3_yuv# %1 #blk-of_width# %2 #blk-and_height# %3", "args0": [{"type": "input_value", "name": "buf", "check": "Bytes"}, {"type": "field_number", "name": "width", "value": "160"}, {"type": "field_number", "name": "height", "value": "120"}], "output": "Bytes", "colour": 65, "tooltip": "#blk-mv_gaussian_blur_3x3_yuv_tooltip#", "helpUrl": ""}, {"type": "mv_edge_detect", "message0": "#blk-mv_edge_detect# %1 #blk-of_width# %2 #blk-and_height# %3 #blk-with_min_max_threshold# %4 %5", "args0": [{"type": "input_value", "name": "buf", "check": "Bytes"}, {"type": "field_number", "name": "width", "value": "160"}, {"type": "field_number", "name": "height", "value": "120"}, {"type": "field_number", "name": "minV", "value": "3200"}, {"type": "field_number", "name": "maxV", "value": "6400"}], "output": "Bytes", "colour": 65, "tooltip": "#blk-mv_edge_detect_tooltip#", "helpUrl": ""}, {"type": "mv_find_blobs_grayscale", "message0": "#blk-mv_find_blobs_grayscale# %1 #blk-of_width# %2 #blk-and_height# %3 #blk-with_min_max_intensity# %4 %5 #blk-and_at_least# %6 #blk-pixels#", "args0": [{"type": "input_value", "name": "buf", "check": "Bytes"}, {"type": "field_number", "name": "width", "value": "160"}, {"type": "field_number", "name": "height", "value": "120"}, {"type": "field_number", "name": "minI", "value": "0"}, {"type": "field_number", "name": "maxI", "value": "255"}, {"type": "field_number", "name": "pixels_threshold", "value": "10"}], "output": "Array", "colour": 65, "tooltip": "#blk-mv_find_blobs_grayscale_tooltip#", "helpUrl": ""}, {"type": "mv_crop_grayscale", "message0": "#blk-mv_crop_grayscale# %1 #blk-of_width# %2 #blk-and_height# %3 #blk-from_left_top# %4 %5 #blk-and_width_height# %6 %7", "args0": [{"type": "input_value", "name": "buf", "check": "Bytes"}, {"type": "field_number", "name": "width", "value": "160"}, {"type": "field_number", "name": "height", "value": "120"}, {"type": "field_number", "name": "left", "value": "40"}, {"type": "field_number", "name": "top", "value": "30"}, {"type": "field_number", "name": "out_width", "value": "80"}, {"type": "field_number", "name": "out_height", "value": "60"}], "output": "Bytes", "colour": 65, "tooltip": "#blk-mv_crop_grayscale_tooltip#", "helpUrl": ""}, {"type": "mv_sobel", "message0": "#blk-mv_sobel# %1 #blk-of_width# %2 #blk-and_height# %3", "args0": [{"type": "input_value", "name": "buf", "check": "Bytes"}, {"type": "field_number", "name": "width", "value": "160"}, {"type": "field_number", "name": "height", "value": "120"}], "output": "Array", "colour": 65, "tooltip": "#blk-mv_sobel_tooltip#", "helpUrl": ""}, {"type": "mv_scale_grayscale", "message0": "#blk-mv_scale_grayscale# %1 #blk-of_width# %2 #blk-and_height# %3 #blk-by_factor# %4", "args0": [{"type": "input_value", "name": "buf", "check": "Bytes"}, {"type": "field_number", "name": "width", "value": "160"}, {"type": "field_number", "name": "height", "value": "120"}, {"type": "field_number", "name": "factor", "value": "2"}], "output": "Bytes", "colour": 65, "tooltip": "#blk-mv_scale_grayscale_tooltip#", "helpUrl": ""}, {"type": "mv_crop_row_grayscale", "message0": "#blk-mv_crop_row_grayscale# %1 #blk-of_width# %2 #blk-from_top# %3 #blk-and_height# %4", "args0": [{"type": "input_value", "name": "buf", "check": "Bytes"}, {"type": "field_number", "name": "width", "value": "160"}, {"type": "field_number", "name": "top", "value": "30"}, {"type": "field_number", "name": "out_height", "value": "60"}], "output": "Bytes", "colour": 65, "tooltip": "#blk-mv_crop_row_grayscale_tooltip#", "helpUrl": ""}, {"type": "urequests_advance", "message0": "http %1 #blk-request_to# %2 #blk-with# %3 #blk-in_body# %4 #blk-and_header# %5 #blk-and_put_result_in# %6 #blk-as# %7 %8 #blk-on_success# %9 #blk-on_fail# %10", "args0": [{"type": "field_dropdown", "name": "method", "options": [["GET", "GET"], ["POST", "POST"], ["HEAD", "HEAD"], ["PUT", "PUT"], ["PATCH", "PATCH"], ["DELETE", "DELETE"]]}, {"type": "input_value", "name": "url", "check": "String"}, {"type": "field_dropdown", "name": "body_type", "options": [["JSON", "JSON"], ["Data", "DATA"]]}, {"type": "input_value", "name": "body"}, {"type": "input_value", "name": "header"}, {"type": "field_variable", "name": "variable", "variable": "item"}, {"type": "field_dropdown", "name": "type", "options": [["JSON", "JSON"], ["Text", "TEXT"], ["Bytes", "BYTES"]]}, {"type": "input_dummy"}, {"type": "input_statement", "name": "on_success"}, {"type": "input_statement", "name": "on_fail"}], "inputsInline": false, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-urequests_advance_tooltip#", "helpUrl": ""}, {"type": "urequests_simple", "message0": "http %1 #blk-request_to# %2 #blk-and_put_result_in# %3 #blk-as# %4", "args0": [{"type": "field_dropdown", "name": "method", "options": [["GET", "GET"], ["POST", "POST"], ["HEAD", "HEAD"], ["PUT", "PUT"], ["PATCH", "PATCH"], ["DELETE", "DELETE"]]}, {"type": "input_value", "name": "url", "check": "String"}, {"type": "field_variable", "name": "variable", "variable": "item"}, {"type": "field_dropdown", "name": "type", "options": [["JSON", "JSON"], ["Text", "TEXT"], ["Bytes", "BYTES"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-urequests_simple_tooltip#", "helpUrl": ""}, {"type": "gy33_i2c_read_calibrated", "message0": "#blk-gy33_i2c_read_calibrated# %1", "args0": [{"type": "field_dropdown", "name": "type", "options": [["Clear", "c"], ["Red", "r"], ["Green", "g"], ["Blue", "b"], ["All (List)", "all"]]}], "output": ["Number", "Array"], "colour": 230, "tooltip": "#blk-gy33_i2c_read_calibrated_tooltip#", "helpUrl": ""}, {"type": "gy33_i2c_init", "message0": "#blk-gy33_i2c_init# %1 #blk-with_address# %2", "args0": [{"type": "field_dropdown", "name": "id", "options": [["I2C0", "i2c0"], ["I2C1", "i2c1"], ["Soft I2C0", "softI2c0"], ["Soft I2C1", "softI2c1"]]}, {"type": "field_input", "name": "addr", "text": "90"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-gy33_i2c_init_tooltip#", "helpUrl": ""}, {"type": "gy33_i2c_read_raw", "message0": "#blk-gy33_i2c_read_raw# %1", "args0": [{"type": "field_dropdown", "name": "type", "options": [["Clear", "c"], ["Red", "r"], ["Green", "g"], ["Blue", "b"], ["All (List)", "all"]]}], "output": ["Number", "Array"], "colour": 230, "tooltip": "#blk-gy33_i2c_read_raw_tooltip#", "helpUrl": ""}, {"type": "gy33_i2c_set_led", "message0": "#blk-gy33_i2c_set_led# %1", "args0": [{"type": "field_dropdown", "name": "power", "options": [["10 (Max)", "10"], ["9", "9"], ["8", "8"], ["7", "7"], ["6", "6"], ["5", "5"], ["4", "4"], ["3", "3"], ["2", "2"], ["1", "1"], ["0 (Off)", "0"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-gy33_i2c_set_led_tooltip#", "helpUrl": ""}, {"type": "gy33_i2c_calibrate_black", "message0": "#blk-gy33_i2c_calibrate_black#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-gy33_i2c_calibrate_black_tooltip#", "helpUrl": ""}, {"type": "gy33_i2c_calibrate_white", "message0": "#blk-gy33_i2c_calibrate_white#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-gy33_i2c_calibrate_white_tooltip#", "helpUrl": ""}, {"type": "mpu6050_reset", "message0": "#blk-mpu6050_reset# %1 %2 %3", "args0": [{"type": "input_value", "name": "x", "check": "Number"}, {"type": "input_value", "name": "y", "check": "Number"}, {"type": "input_value", "name": "z", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-mpu6050_reset_tooltip#", "helpUrl": ""}, {"type": "mpu6050_set_calibration", "message0": "#blk-mpu6050_set_calibration# %1", "args0": [{"type": "input_value", "name": "calibration", "check": "Array"}], "inputsInline": false, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-mpu6050_set_calibration_tooltip#", "helpUrl": ""}, {"type": "mpu6050_temperature", "message0": "#blk-mpu6050_temperature# %1", "args0": [{"type": "field_dropdown", "name": "type", "options": [["MPU-6050", "6050"], ["MPU-6500", "6500"]]}], "output": "Number", "colour": 230, "tooltip": "#blk-mpu6050_temperature_tooltip#", "helpUrl": ""}, {"type": "mpu6050_accel", "message0": "#blk-mpu6050_get_accel# %1", "args0": [{"type": "field_dropdown", "name": "axis", "options": [["X-axis", "X"], ["Y-axis", "Y"], ["Z-axis", "Z"], ["All (List)", "ALL"]]}], "output": ["Number", "Array"], "colour": 230, "tooltip": "#blk-mpu6050_accel_tooltip#", "helpUrl": ""}, {"type": "mpu6050_gyro", "message0": "#blk-mpu6050_get_gyro# %1", "args0": [{"type": "field_dropdown", "name": "axis", "options": [["X-axis", "X"], ["Y-axis", "Y"], ["Z-axis", "Z"], ["All (List)", "ALL"]]}], "output": ["Number", "Array"], "colour": 230, "tooltip": "#blk-mpu6050_gyro_tooltip#", "helpUrl": ""}, {"type": "mpu6050_get_calibration", "message0": "#blk-mpu6050_get_calibration#", "args0": [], "output": ["Array"], "colour": 230, "tooltip": "#blk-mpu6050_get_calibration_tooltip#", "helpUrl": ""}, {"type": "mpu6050_update", "message0": "#blk-mpu6050_update#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-mpu6050_update_tooltip#", "helpUrl": ""}, {"type": "mpu6050_angle", "message0": "#blk-mpu6050_get_angle# %1", "args0": [{"type": "field_dropdown", "name": "axis", "options": [["X-axis", "X"], ["Y-axis", "Y"], ["Z-axis", "Z"], ["All (List)", "ALL"]]}], "output": ["Number", "Array"], "colour": 230, "tooltip": "#blk-mpu6050_get_angle_tooltip#", "helpUrl": ""}, {"type": "mpu6050_calibrate", "message0": "#blk-mpu6050_calibrate#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-mpu6050_calibrate_tooltip#", "helpUrl": ""}, {"type": "mpu6050_init", "message0": "#blk-mpu6050_init# %1 #blk-with_address# %2", "args0": [{"type": "field_dropdown", "name": "id", "options": [["I2C0", "i2c0"], ["I2C1", "i2c1"], ["Soft I2C0", "softI2c0"], ["Soft I2C1", "softI2c1"]]}, {"type": "field_input", "name": "addr", "text": "104"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-mpu6050_init_tooltip#", "helpUrl": ""}, {"type": "bmp280_read", "message0": "#blk-bmp280_read#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-bmp280_read_tooltip#", "helpUrl": ""}, {"type": "bmp280_altitude", "message0": "#blk-bmp280_altitude#", "args0": [], "output": "Number", "colour": 230, "tooltip": "#blk-bmp280_altitude_tooltip#", "helpUrl": ""}, {"type": "bmp280_init", "message0": "#blk-bmp280_init# %1 #blk-with_address# %2", "args0": [{"type": "field_dropdown", "name": "id", "options": [["I2C0", "i2c0"], ["I2C1", "i2c1"], ["Soft I2C0", "softI2c0"], ["Soft I2C1", "softI2c1"]]}, {"type": "field_input", "name": "addr", "text": "118"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-bmp280_init_tooltip#", "helpUrl": ""}, {"type": "bmp280_temperature", "message0": "#blk-bmp280_temperature#", "args0": [], "output": "Number", "colour": 230, "tooltip": "#blk-bmp280_temperature_tooltip#", "helpUrl": ""}, {"type": "bmp280_pressure", "message0": "#blk-bmp280_pressure#", "args0": [], "output": "Number", "colour": 230, "tooltip": "#blk-bmp280_pressure_tooltip#", "helpUrl": ""}, {"type": "hmc5883l_read", "message0": "#blk-hmc5883l_read#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-hmc5883l_read_tooltip#", "helpUrl": ""}, {"type": "hmc5883l_init", "message0": "#blk-hmc5883l_init# %1 #blk-with_address# %2 #blk-and_scale# %3", "args0": [{"type": "field_dropdown", "name": "id", "options": [["I2C0", "i2c0"], ["I2C1", "i2c1"], ["Soft I2C0", "softI2c0"], ["Soft I2C1", "softI2c1"]]}, {"type": "field_input", "name": "addr", "text": "30"}, {"type": "field_dropdown", "name": "scale", "options": [["0.88G", "880G"], ["1.3G", "1300G"], ["1.9G", "1900G"], ["2.5G", "2500G"], ["4.0G", "4000G"], ["4.7G", "4700G"], ["5.6G", "5600G"], ["8.1G", "8100G"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-hmc5883l_init_tooltip#", "helpUrl": ""}, {"type": "hmc5883l_value", "message0": "#blk-hmc5883l_value# %1", "args0": [{"type": "field_dropdown", "name": "axis", "options": [["X-axis", "x"], ["Y-axis", "y"], ["Z-axis", "z"], ["All (List)", "all"]]}], "output": ["Number", "Array"], "colour": 230, "tooltip": "#blk-hmc5883l_value_tooltip#", "helpUrl": ""}, {"type": "tca9548a_init", "message0": "#blk-tca9548a_init# %1 #blk-with_address# %2", "args0": [{"type": "field_dropdown", "name": "id", "options": [["I2C0", "i2c0"], ["I2C1", "i2c1"], ["Soft I2C0", "softI2c0"], ["Soft I2C1", "softI2c1"]]}, {"type": "field_input", "name": "addr", "text": "112"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 330, "tooltip": "#blk-tca9548a_init_tooltip#", "helpUrl": ""}, {"type": "tca9548a_set_port", "message0": "#blk-tca9548a_set_port# %1 #blk-and# %2", "args0": [{"type": "input_value", "name": "port", "check": "Number"}, {"type": "field_dropdown", "name": "others", "options": [["deactivate other ports", "DEACTIVATE"], ["leave other ports unchanged", "UNCHANGED"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 330, "tooltip": "#blk-tca9548a_set_port_tooltip#", "helpUrl": ""}, {"type": "tca9548a_get_port", "message0": "#blk-tca9548a_get_port#", "args0": [], "output": "Number", "colour": 330, "tooltip": "#blk-tca9548a_get_port_tooltip#", "helpUrl": ""}, {"type": "adv_hc_sr04_ping", "message0": "#blk-adv_hc_sr04_ping_trig# %1 #blk-echo# %2 #blk-unit# %3", "args0": [{"type": "input_value", "name": "trig", "check": "Number"}, {"type": "input_value", "name": "echo", "check": "Number"}, {"type": "field_dropdown", "name": "unit", "options": [["cm", "CM"], ["us", "US"]]}], "output": "Number", "colour": 230, "tooltip": "#blk-hc_sr04_ping_tooltip#", "helpUrl": ""}, {"type": "adv_servo_write_deg", "message0": "#blk-adv_servo_write# %1 #blk-to# %2 #blk-deg#", "args0": [{"type": "input_value", "name": "pin", "check": "Number"}, {"type": "input_value", "name": "deg", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-servo_write_deg_tooltip#", "helpUrl": ""}, {"type": "adv_touch_read_pin", "message0": "#blk-adv_touch_read_pin# %1", "args0": [{"type": "input_value", "name": "pin", "check": "Number"}], "output": "Number", "colour": 230, "tooltip": "#blk-touch_read_pin_tooltip#", "helpUrl": ""}, {"type": "adv_analog_write_pin", "message0": "#blk-adv_analog_write_pin# %1 #blk-to# %2", "args0": [{"type": "input_value", "name": "pin", "check": "Number"}, {"type": "input_value", "name": "value", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-analog_write_pin_tooltip#", "helpUrl": ""}, {"type": "adv_servo_write_us", "message0": "#blk-adv_servo_write# %1 #blk-to# %2 #blk-us#", "args0": [{"type": "input_value", "name": "pin", "check": "Number"}, {"type": "input_value", "name": "us", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-servo_write_us_tooltip#", "helpUrl": ""}, {"type": "adv_digital_read_pin", "message0": "#blk-adv_read_pin# %1", "args0": [{"type": "input_value", "name": "pin", "check": "Number"}], "output": "Number", "colour": 230, "tooltip": "#blk-read_pin_tooltip#", "helpUrl": ""}, {"type": "adv_set_pin_mode", "message0": "#blk-adv_set_pin# %1 #blk-to_mode# %2", "args0": [{"type": "input_value", "name": "pin", "check": "Number"}, {"type": "field_dropdown", "name": "mode", "options": [["#blk-input#", "INPUT"], ["#blk-input_pullup#", "INPUT_PULLUP"], ["#blk-output#", "OUTPUT"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-set_pin_tooltip#", "helpUrl": ""}, {"type": "adv_analog_read_pin", "message0": "#blk-adv_analog_read_pin# %1", "args0": [{"type": "input_value", "name": "pin", "check": "Number"}], "output": "Number", "colour": 230, "tooltip": "#blk-analog_read_pin_tooltip#", "helpUrl": ""}, {"type": "adv_set_analog_write_freq", "message0": "#blk-adv_set_analog_write_freq# %1 #blk-to# %2 #blk-hz#", "args0": [{"type": "input_value", "name": "pin", "check": "Number"}, {"type": "input_value", "name": "frequency", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-set_analog_write_freq_tooltip#", "helpUrl": ""}, {"type": "adv_digital_write_pin", "message0": "#blk-adv_write_pin# %1 #blk-to# %2", "args0": [{"type": "input_value", "name": "pin", "check": "Number"}, {"type": "input_value", "name": "value", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-write_pin_tooltip#", "helpUrl": ""}, {"type": "bmp_image_render", "message0": "#blk-bmp_image_render# #blk-to_display# %1 #blk-with_offset_x# %2 #blk-and_y# %3", "args0": [{"type": "field_dropdown", "name": "type", "options": [["SSD-1306", "SSD1306"]]}, {"type": "input_value", "name": "x", "check": "Number"}, {"type": "input_value", "name": "y", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-bmp_image_render_tooltip#", "helpUrl": ""}, {"type": "bmp_image_width", "message0": "#blk-bmp_image_width#", "args0": [], "output": "Number", "inputsInline": true, "colour": 230, "tooltip": "#blk-bmp_image_width_tooltip#", "helpUrl": ""}, {"type": "bmp_image_open", "message0": "#blk-bmp_image_open# %1", "args0": [{"type": "input_value", "name": "filename", "check": "String"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-bmp_image_open_tooltip#", "helpUrl": ""}, {"type": "bmp_image_depth", "message0": "#blk-bmp_image_depth#", "args0": [], "output": "Number", "inputsInline": true, "colour": 230, "tooltip": "#blk-bmp_image_depth_tooltip#", "helpUrl": ""}, {"type": "bmp_image_height", "message0": "#blk-bmp_image_height#", "args0": [], "output": "Number", "inputsInline": true, "colour": 230, "tooltip": "#blk-bmp_image_height_tooltip#", "helpUrl": ""}, {"type": "bmp_image_close", "message0": "#blk-bmp_image_close#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-bmp_image_close_tooltip#", "helpUrl": ""}, {"type": "bmp_image_get_pixel_raw", "message0": "#blk-bmp_image_get_pixel_raw#", "args0": [], "output": ["Number", "Array"], "inputsInline": true, "colour": 230, "tooltip": "#blk-bmp_image_get_pixel_raw_tooltip#", "helpUrl": ""}, {"type": "bmp_image_get_pixel", "message0": "#blk-bmp_image_get_pixel#", "args0": [], "output": "Array", "inputsInline": true, "colour": 230, "tooltip": "#blk-bmp_image_get_pixel_tooltip#", "helpUrl": ""}, {"type": "read_input", "message0": "#blk-read_input_with_prompt# %1", "args0": [{"type": "input_value", "name": "prompt"}], "output": "String", "colour": 160, "tooltip": "", "helpUrl": ""}, {"type": "comment", "message0": "#blk-comment# %1", "args0": [{"type": "field_multilinetext", "name": "value", "text": "Your comment here"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": "#000000", "tooltip": "#blk-comment_tooltip#", "helpUrl": ""}, {"type": "stepper_wheels_drive_steering_steps", "message0": "#blk-stepper_wheels_drive_steering_steps# %1 #blk-and_speed# %2 #blk-for# %3 #blk-steps# #blk-and# %4", "args0": [{"type": "input_value", "name": "steering", "check": "Number"}, {"type": "input_value", "name": "speed", "check": "Number"}, {"type": "input_value", "name": "steps", "check": "Number"}, {"type": "field_dropdown", "name": "wait", "options": [["wait for completion", "True"], ["don't wait", "False"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-stepper_wheels_drive_steering_steps_tooltip#", "helpUrl": ""}, {"type": "stepper_wheels_drive_steering", "message0": "#blk-stepper_wheels_drive_steering# %1 #blk-and_speed# %2", "args0": [{"type": "input_value", "name": "steering", "check": "Number"}, {"type": "input_value", "name": "speed", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-stepper_wheels_drive_steering_tooltip#", "helpUrl": ""}, {"type": "stepper_wheels_drive_reset_steps", "message0": "#blk-stepper_wheels_drive_reset_steps#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-stepper_wheels_drive_reset_steps_tooltip#", "helpUrl": ""}, {"type": "stepper_wheels_init_drive", "message0": "#blk-stepper_wheels_init_drive# %1 #blk-and_right_motor_on_port# %2", "args0": [{"type": "field_input", "name": "left", "text": "0"}, {"type": "field_input", "name": "right", "text": "1"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-stepper_wheels_init_drive_tooltip#", "helpUrl": ""}, {"type": "stepper_wheels_drive_stop", "message0": "#blk-stepper_wheels_drive_stop#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-stepper_wheels_drive_stop_tooltip#", "helpUrl": ""}, {"type": "stepper_wheels_drive_tank", "message0": "#blk-stepper_wheels_drive_tank# %1 #blk-and_right_speed# %2", "args0": [{"type": "input_value", "name": "left", "check": "Number"}, {"type": "input_value", "name": "right", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-stepper_wheels_drive_tank_tooltip#", "helpUrl": ""}, {"type": "stepper_wheels_drive_set_acceleration", "message0": "#blk-stepper_wheels_drive_set_acceleration# %1 #blk-steps_per_second_per_second#", "args0": [{"type": "input_value", "name": "acceleration", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-stepper_wheels_drive_set_acceleration_tooltip#", "helpUrl": ""}, {"type": "stepper_wheels_drive_get_steps", "message0": "#blk-stepper_wheels_drive_get_steps# %1", "args0": [{"type": "field_dropdown", "name": "type", "options": [["avg of both wheels", "avg_"], ["left wheel", "left_"], ["right wheel", "right_"]]}], "inputsInline": true, "output": "Number", "colour": 230, "tooltip": "#blk-stepper_wheels_drive_get_steps_tooltip#", "helpUrl": ""}, {"type": "stepper_wheels_drive_tank_steps", "message0": "#blk-stepper_wheels_drive_tank_steps# %1 #blk-and_right_speed# %2 #blk-for# %3 #blk-steps# #blk-and# %4", "args0": [{"type": "input_value", "name": "left", "check": "Number"}, {"type": "input_value", "name": "right", "check": "Number"}, {"type": "input_value", "name": "steps", "check": "Number"}, {"type": "field_dropdown", "name": "wait", "options": [["wait for completion", "True"], ["don't wait", "False"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-stepper_wheels_drive_tank_steps_tooltip#", "helpUrl": ""}, {"type": "st7789_image_from_file", "message0": "#blk-st7789_image_from_file# %1 #blk-at_xy# %2 %3 #blk-width# %4 #blk-height# %5", "args0": [{"type": "input_value", "name": "filename", "check": "String"}, {"type": "input_value", "name": "x", "check": "Number"}, {"type": "input_value", "name": "y", "check": "Number"}, {"type": "input_value", "name": "w", "check": "Number"}, {"type": "input_value", "name": "h", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-st7789_image_from_file_tooltip#", "helpUrl": ""}, {"type": "st7789_pixel", "message0": "#blk-st7789_pixel# %1 %2 #blk-color# %3", "args0": [{"type": "input_value", "name": "x", "check": "Number"}, {"type": "input_value", "name": "y", "check": "Number"}, {"type": "input_value", "name": "color", "check": "Color_st7789"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-st7789_pixel_tooltip#", "helpUrl": ""}, {"type": "st7789_ellipse", "message0": "#blk-st7789_ellipse# %1 %2 #blk-with_xryr# %3 %4 #blk-color# %5 #blk-fill# %6", "args0": [{"type": "input_value", "name": "x", "check": "Number"}, {"type": "input_value", "name": "y", "check": "Number"}, {"type": "input_value", "name": "xr", "check": "Number"}, {"type": "input_value", "name": "yr", "check": "Number"}, {"type": "input_value", "name": "color", "check": "Color_st7789"}, {"type": "field_dropdown", "name": "fill", "options": [["False", "False"], ["True", "True"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-st7789_ellipse_tooltip#", "helpUrl": ""}, {"type": "st7789_fill", "message0": "#blk-st7789_fill# %1", "args0": [{"type": "input_value", "name": "color", "check": "Color_st7789"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-st7789_fill_tooltip#", "helpUrl": ""}, {"type": "st7789_text_with_font", "message0": "#blk-st7789_text_with_font# %1 #blk-font# %2 #blk-at_xy# %3 %4 #blk-color# %5 #blk-background# %6 #blk-rotation# %7", "args0": [{"type": "input_value", "name": "text", "check": "String"}, {"type": "input_value", "name": "font", "check": "Font_xglcd"}, {"type": "input_value", "name": "x", "check": "Number"}, {"type": "input_value", "name": "y", "check": "Number"}, {"type": "input_value", "name": "color", "check": "Color_st7789"}, {"type": "input_value", "name": "background", "check": "Color_st7789"}, {"type": "field_dropdown", "name": "rotate", "options": [["0", "0"], ["90", "90"], ["180", "180"], ["270", "270"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-st7789_text_with_font_tooltip#", "helpUrl": ""}, {"type": "st7789_image_from_buf", "message0": "#blk-st7789_image_from_buf# %1 #blk-at_xy# %2 %3 #blk-width# %4 #blk-height# %5", "args0": [{"type": "input_value", "name": "buf", "check": "Bytes"}, {"type": "input_value", "name": "x", "check": "Number"}, {"type": "input_value", "name": "y", "check": "Number"}, {"type": "input_value", "name": "w", "check": "Number"}, {"type": "input_value", "name": "h", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-st7789_image_from_buf_tooltip#", "helpUrl": ""}, {"type": "st7789_rgb", "message0": "#blk-st7789_rgb# %1 %2 %3", "args0": [{"type": "input_value", "name": "red", "check": "Number"}, {"type": "input_value", "name": "green", "check": "Number"}, {"type": "input_value", "name": "blue", "check": "Number"}], "inputsInline": true, "output": "Color_st7789", "colour": 230, "tooltip": "#blk-st7789_rgb_tooltip#", "helpUrl": ""}, {"type": "st7789_line", "message0": "#blk-st7789_line# %1 %2 #blk-x2y2# %3 %4 #blk-color# %5", "args0": [{"type": "input_value", "name": "x1", "check": "Number"}, {"type": "input_value", "name": "y1", "check": "Number"}, {"type": "input_value", "name": "x2", "check": "Number"}, {"type": "input_value", "name": "y2", "check": "Number"}, {"type": "input_value", "name": "color", "check": "Color_st7789"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-st7789_line_tooltip#", "helpUrl": ""}, {"type": "st7789_text8x8", "message0": "#blk-st7789_text8x8# %1 #blk-at_xy# %2 %3 #blk-color# %4 #blk-background# %5 #blk-rotation# %6", "args0": [{"type": "input_value", "name": "text", "check": "String"}, {"type": "input_value", "name": "x", "check": "Number"}, {"type": "input_value", "name": "y", "check": "Number"}, {"type": "input_value", "name": "color", "check": "Color_st7789"}, {"type": "input_value", "name": "background", "check": "Color_st7789"}, {"type": "field_dropdown", "name": "rotate", "options": [["0", "0"], ["90", "90"], ["180", "180"], ["270", "270"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-st7789_text8x8_tooltip#", "helpUrl": ""}, {"type": "st7789_color", "message0": "#blk-st7789_color# %1", "args0": [{"type": "field_dropdown", "name": "color", "options": [["red", "(255, 0, 0)"], ["orange", "(255, 165, 0)"], ["yellow", "(255, 255, 0)"], ["green", "(0, 255, 0)"], ["blue", "(0, 0, 255)"], ["indigo", "(75, 0, 130)"], ["violet", "(138, 43, 226)"], ["purple", "(255, 0, 255)"], ["white", "(255, 255, 255)"], ["black", "(0, 0, 0)"]]}], "output": "Color_st7789", "colour": 230, "tooltip": "#blk-st7789_color_tooltip#", "helpUrl": ""}, {"type": "st7789_hsv", "message0": "#blk-st7789_hsv# %1 %2 %3", "args0": [{"type": "input_value", "name": "h", "check": "Number"}, {"type": "input_value", "name": "s", "check": "Number"}, {"type": "input_value", "name": "v", "check": "Number"}], "inputsInline": true, "output": "Color_st7789", "colour": 230, "tooltip": "#blk-st7789_hsv_tooltip#", "helpUrl": ""}, {"type": "st7789_init", "message0": "#blk-st7789_init# %1 #blk-cs# %2 #blk-dc# %3 #blk-rst# %4 #blk-size# %5", "args0": [{"type": "field_dropdown", "name": "spi", "options": [["SPI1", "spi1"], ["SPI2", "spi2"], ["Soft SPI1", "softSpi1"], ["Soft SPI2", "softSpi2"]]}, {"type": "field_number", "name": "cs", "min": 0, "precision": 1, "value": 5}, {"type": "field_number", "name": "dc", "min": 0, "precision": 1, "value": 16}, {"type": "field_number", "name": "rst", "min": 0, "precision": 1, "value": 23}, {"type": "field_dropdown", "name": "size", "options": [["135x240", "135_240"], ["240x240", "240_240"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-st7789_init_tooltip#", "helpUrl": ""}, {"type": "st7789_rectangle", "message0": "#blk-st7789_rectangle# %1 %2 #blk-width# %3 #blk-height# %4 #blk-color# %5 #blk-fill# %6", "args0": [{"type": "input_value", "name": "x", "check": "Number"}, {"type": "input_value", "name": "y", "check": "Number"}, {"type": "input_value", "name": "w", "check": "Number"}, {"type": "input_value", "name": "h", "check": "Number"}, {"type": "input_value", "name": "color", "check": "Color_st7789"}, {"type": "field_dropdown", "name": "fill", "options": [["False", "False"], ["True", "True"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-st7789_rectangle_tooltip#", "helpUrl": ""}, {"type": "ez_httpd_init", "message0": "ez_httpd #blk-ez_httpd_init_with_addr# %1 #blk-and_port# %2", "args0": [{"type": "input_value", "name": "addr", "check": "String"}, {"type": "input_value", "name": "port", "check": "String"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-ez_httpd_init_tooltip#", "helpUrl": ""}, {"type": "ez_httpd_send_bytes", "message0": "ez_httpd #blk-ez_httpd_send_bytes# %1", "args0": [{"type": "input_value", "name": "response", "check": "Bytes"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-ez_httpd_send_bytes_tooltip#", "helpUrl": ""}, {"type": "ez_httpd_send_file", "message0": "ez_httpd #blk-ez_httpd_send_file# %1", "args0": [{"type": "input_value", "name": "filename", "check": "String"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-ez_httpd_send_file_tooltip#", "helpUrl": ""}, {"type": "ez_httpd_wait_for_connection", "message0": "ez_httpd #blk-ez_httpd_wait_for_connection_and_put_url_in# %1 #blk-query_in# %2 #blk-content_in# %3", "args0": [{"type": "field_variable", "name": "url", "variable": "url"}, {"type": "field_variable", "name": "query", "variable": "query"}, {"type": "field_variable", "name": "content", "variable": "content"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-ez_httpd_wait_for_connection_tooltip#", "helpUrl": ""}, {"type": "ez_httpd_available", "message0": "#blk-ez_httpd_available#", "args0": [], "output": "Boolean", "colour": 65, "tooltip": "#blk-ez_httpd_available_tooltip#", "helpUrl": ""}, {"type": "ez_httpd_send_404", "message0": "ez_httpd #blk-ez_httpd_send_404#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-ez_httpd_send_404_tooltip#", "helpUrl": ""}, {"type": "ez_httpd_send_response", "message0": "ez_httpd #blk-ez_httpd_send_response# %1", "args0": [{"type": "input_value", "name": "response", "check": "String"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-ez_httpd_send_response_tooltip#", "helpUrl": ""}, {"type": "tcs3472_read_raw", "message0": "#blk-tcs3472_read_raw# %1", "args0": [{"type": "field_dropdown", "name": "type", "options": [["Clear", "c"], ["Red", "r"], ["Green", "g"], ["Blue", "b"], ["All (List)", "all"]]}], "output": ["Number", "Array"], "colour": 230, "tooltip": "#blk-tcs3472_read_raw_tooltip#", "helpUrl": ""}, {"type": "tcs3472_init", "message0": "#blk-tcs3472_init# %1 #blk-with_address# %2", "args0": [{"type": "field_dropdown", "name": "id", "options": [["I2C0", "i2c0"], ["I2C1", "i2c1"], ["Soft I2C0", "softI2c0"], ["Soft I2C1", "softI2c1"]]}, {"type": "field_input", "name": "addr", "text": "41"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-tcs3472_init_tooltip#", "helpUrl": ""}, {"type": "tcs3472_calibrate_white", "message0": "#blk-tcs3472_calibrate_white#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-tcs3472_calibrate_white_tooltip#", "helpUrl": ""}, {"type": "tcs3472_read_calibrated", "message0": "#blk-tcs3472_read_calibrated# %1", "args0": [{"type": "field_dropdown", "name": "type", "options": [["Clear", "c"], ["Red", "r"], ["Green", "g"], ["Blue", "b"], ["All (List)", "all"]]}], "output": ["Number", "Array"], "colour": 230, "tooltip": "#blk-tcs3472_read_calibrated_tooltip#", "helpUrl": ""}, {"type": "tcs3472_set_gain", "message0": "#blk-tcs3472_set_gain# %1", "args0": [{"type": "field_dropdown", "name": "gain", "options": [["1x", "0"], ["4x", "1"], ["16x", "2"], ["60x", "3"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-tcs3472_set_gain_tooltip#", "helpUrl": ""}, {"type": "tcs3472_set_integration_time", "message0": "#blk-tcs3472_set_integration_time# %1 #blk-ms#", "args0": [{"type": "field_number", "name": "ms", "value": 100, "min": 2.4, "max": 614.4, "precision": 0.1}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-tcs3472_set_integration_time_tooltip#", "helpUrl": ""}, {"type": "tcs3472_calibrate_black", "message0": "#blk-tcs3472_calibrate_black#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-tcs3472_calibrate_black_tooltip#", "helpUrl": ""}, {"type": "pca9685_write_us", "message0": "#blk-pca9685_write_us# %1 #blk-to# %2 #blk-us#", "args0": [{"type": "input_value", "name": "channel", "check": "Number"}, {"type": "input_value", "name": "value", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-pca9685_write_us_tooltip#", "helpUrl": ""}, {"type": "pca9685_write_angle", "message0": "#blk-pca9685_write_angle# %1 #blk-to# %2 #blk-deg#", "args0": [{"type": "input_value", "name": "channel", "check": "Number"}, {"type": "input_value", "name": "value", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-pca9685_write_angle_tooltip#", "helpUrl": ""}, {"type": "pca9685_set_freq", "message0": "#blk-pca9685_set_freq# %1 #blk-hz#", "args0": [{"type": "field_input", "name": "freq", "text": "50"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-pca9685_set_freq_tooltip#", "helpUrl": ""}, {"type": "pca9685_init", "message0": "#blk-pca9685_init# %1 #blk-with_address# %2", "args0": [{"type": "field_dropdown", "name": "id", "options": [["I2C0", "i2c0"], ["I2C1", "i2c1"], ["Soft I2C0", "softI2c0"], ["Soft I2C1", "softI2c1"]]}, {"type": "field_input", "name": "addr", "text": "64"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-pca9685_init_tooltip#", "helpUrl": ""}, {"type": "pca9685_analog_write", "message0": "#blk-pca9685_analog_write# %1 #blk-to# %2", "args0": [{"type": "input_value", "name": "channel", "check": "Number"}, {"type": "input_value", "name": "value", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-pca9685_analog_write_tooltip#", "helpUrl": ""}, {"type": "uart_read", "message0": "#blk-from# %1 #blk-read# %2 #blk-characters#", "args0": [{"type": "field_dropdown", "name": "id", "options": [["UART1", "1"], ["UART2", "2"]]}, {"type": "input_value", "name": "size", "check": "Number"}], "output": "Bytes", "colour": 330, "tooltip": "#blk-uart_read_tooltip#", "helpUrl": ""}, {"type": "uart_flush", "message0": "#blk-flush# %1", "args0": [{"type": "field_dropdown", "name": "id", "options": [["UART1", "1"], ["UART2", "2"]]}], "previousStatement": null, "nextStatement": null, "colour": 330, "tooltip": "#blk-uart_flush_tooltip#", "helpUrl": ""}, {"type": "uart_init", "message0": "#blk-init# %1 #blk-at_baudrate# %2 #blk-with_tx_pin# %3 #blk-and_rx_pin# %4", "args0": [{"type": "field_dropdown", "name": "id", "options": [["UART1", "1"], ["UART2", "2"]]}, {"type": "field_input", "name": "baudrate", "text": "9600"}, {"type": "field_dropdown", "name": "tx", "options": [["4", "4"], ["5", "5"], ["12", "12"], ["13", "13"], ["14", "14"], ["15", "15"], ["16", "16"], ["17", "17"], ["18", "18"], ["19", "19"], ["21", "21"], ["22", "22"], ["23", "23"], ["25", "25"], ["26", "26"], ["27", "27"], ["32", "32"], ["33", "33"]]}, {"type": "field_dropdown", "name": "rx", "options": [["4", "4"], ["5", "5"], ["12", "12"], ["13", "13"], ["14", "14"], ["15", "15"], ["16", "16"], ["17", "17"], ["18", "18"], ["19", "19"], ["21", "21"], ["22", "22"], ["23", "23"], ["25", "25"], ["26", "26"], ["27", "27"], ["32", "32"], ["33", "33"], ["34", "34"], ["35", "35"], ["36", "36"], ["39", "39"]]}], "previousStatement": null, "nextStatement": null, "colour": 330, "tooltip": "#blk-uart_init_tooltip#", "helpUrl": ""}, {"type": "uart_any", "message0": "#blk-from# %1 #blk-available_characters_to_read#", "args0": [{"type": "field_dropdown", "name": "id", "options": [["UART1", "1"], ["UART2", "2"]]}], "output": "Number", "colour": 330, "tooltip": "#blk-any_tooltip#", "helpUrl": ""}, {"type": "uart_readline", "message0": "#blk-from# %1 #blk-read_one_line#", "args0": [{"type": "field_dropdown", "name": "id", "options": [["UART1", "1"], ["UART2", "2"]]}], "output": "Bytes", "colour": 330, "tooltip": "#blk-uart_readline_tooltip#", "helpUrl": ""}, {"type": "uart_write", "message0": "#blk-to# %1 #blk-write# %2 #blk-and# %3", "args0": [{"type": "field_dropdown", "name": "id", "options": [["UART1", "1"], ["UART2", "2"]]}, {"type": "input_value", "name": "value", "check": "String"}, {"type": "field_dropdown", "name": "newline", "options": [["New\u00a0line", "TRUE"], ["No new\u00a0line", "FALSE"]]}], "previousStatement": null, "nextStatement": null, "colour": 330, "tooltip": "#blk-uart_write_tooltip#", "helpUrl": ""}, {"type": "wheeled_drives_joystick", "message0": "#blk-wheeled_drives_joystick# %1 #blk-and_y# %2 #blk-and_max_speed# %3", "args0": [{"type": "input_value", "name": "x", "check": "Number"}, {"type": "input_value", "name": "y", "check": "Number"}, {"type": "field_number", "name": "max_speed", "value": 1023}], "inputsInline": true, "output": "Array", "colour": 230, "tooltip": "#blk-wheeled_drives_joystick_tooltip#", "helpUrl": ""}, {"type": "wheeled_drives_delta", "message0": "#blk-wheeled_drives_delta# %1 #blk-direction# %2 #blk-speed# %3 #blk-rotation# %4 #blk-and_max_speed# %5", "args0": [{"type": "field_dropdown", "name": "mode", "options": [["V", "V"], ["A", "A"]]}, {"type": "input_value", "name": "direction", "check": "Number"}, {"type": "input_value", "name": "speed", "check": "Number"}, {"type": "input_value", "name": "rotation", "check": "Number"}, {"type": "field_number", "name": "max_speed", "value": 1023}], "inputsInline": true, "output": "Array", "colour": 230, "tooltip": "#blk-wheeled_drives_delta_tooltip#", "helpUrl": ""}, {"type": "wheeled_drives_mecanum", "message0": "#blk-wheeled_drives_mecanum# %1 #blk-speed# %2 #blk-rotation# %3 #blk-and_max_speed# %4", "args0": [{"type": "input_value", "name": "direction", "check": "Number"}, {"type": "input_value", "name": "speed", "check": "Number"}, {"type": "input_value", "name": "rotation", "check": "Number"}, {"type": "field_number", "name": "max_speed", "value": 1023}], "inputsInline": true, "output": "Array", "colour": 230, "tooltip": "#blk-wheeled_drives_mecanum_tooltip#", "helpUrl": ""}, {"type": "wheeled_drives_steering", "message0": "#blk-wheeled_drives_steering# %1 #blk-and_speed# %2", "args0": [{"type": "input_value", "name": "steering", "check": "Number"}, {"type": "input_value", "name": "speed", "check": "Number"}], "inputsInline": true, "output": "Array", "colour": 230, "tooltip": "#blk-wheeled_drives_steering_tooltip#", "helpUrl": ""}, {"type": "yx5300_init", "message0": "#blk-yx5300_init# %1", "args0": [{"type": "field_dropdown", "name": "uart", "options": [["UART1", "1"], ["UART2", "2"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-yx5300_init_tooltip#", "helpUrl": ""}, {"type": "yx5300_play", "message0": "#blk-yx5300_play#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-yx5300_play_tooltip#", "helpUrl": ""}, {"type": "yx5300_play_folder_index", "message0": "#blk-yx5300_play_folder_index# %1 #blk-and_index# %2", "args0": [{"type": "input_value", "name": "folder", "check": "Number"}, {"type": "input_value", "name": "index", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-yx5300_play_folder_index_tooltip#", "helpUrl": ""}, {"type": "yx5300_stop", "message0": "#blk-yx5300_stop#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-yx5300_stop_tooltip#", "helpUrl": ""}, {"type": "yx5300_play_index", "message0": "#blk-yx5300_play_index# %1", "args0": [{"type": "input_value", "name": "index", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-yx5300_play_index_tooltip#", "helpUrl": ""}, {"type": "yx5300_play_prev", "message0": "#blk-yx5300_play_prev#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-yx5300_play_prev_tooltip#", "helpUrl": ""}, {"type": "yx5300_play_next", "message0": "#blk-yx5300_play_next#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-yx5300_play_next_tooltip#", "helpUrl": ""}, {"type": "yx5300_pause", "message0": "#blk-yx5300_pause#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-yx5300_pause_tooltip#", "helpUrl": ""}, {"type": "yx5300_set_volume", "message0": "#blk-yx5300_set_volume# %1", "args0": [{"type": "input_value", "name": "volume", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-yx5300_set_volume_tooltip#", "helpUrl": ""}, {"type": "ssd1306_text", "message0": "#blk-ssd1306_text# %1 #blk-at_xy# %2 %3 #blk-and_color# %4", "args0": [{"type": "input_value", "name": "text", "check": "String"}, {"type": "input_value", "name": "x", "check": "Number"}, {"type": "input_value", "name": "y", "check": "Number"}, {"type": "input_value", "name": "color", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-ssd1306_text_tooltip#", "helpUrl": ""}, {"type": "ssd1306_scroll", "message0": "#blk-ssd1306_scroll# %1 %2", "args0": [{"type": "input_value", "name": "xstep", "check": "Number"}, {"type": "input_value", "name": "ystep", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-ssd1306_scroll_tooltip#", "helpUrl": ""}, {"type": "ssd1306_line", "message0": "#blk-ssd1306_line# %1 %2 #blk-to_x2y2# %3 %4 #blk-and_color# %5", "args0": [{"type": "input_value", "name": "x1", "check": "Number"}, {"type": "input_value", "name": "y1", "check": "Number"}, {"type": "input_value", "name": "x2", "check": "Number"}, {"type": "input_value", "name": "y2", "check": "Number"}, {"type": "input_value", "name": "color", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-ssd1306_line_tooltip#", "helpUrl": ""}, {"type": "ssd1306_rect", "message0": "#blk-ssd1306_rect# %1 %2 #blk-with_wh# %3 %4 #blk-color# %5 %6", "args0": [{"type": "input_value", "name": "x", "check": "Number"}, {"type": "input_value", "name": "y", "check": "Number"}, {"type": "input_value", "name": "w", "check": "Number"}, {"type": "input_value", "name": "h", "check": "Number"}, {"type": "input_value", "name": "color", "check": "Number"}, {"type": "field_dropdown", "name": "fill", "options": [["fill", "True"], ["outline", "False"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-ssd1306_rect_tooltip#", "helpUrl": ""}, {"type": "ssd1306_pixel", "message0": "#blk-ssd1306_pixel# %1 %2 #blk-and_color# %3", "args0": [{"type": "input_value", "name": "x", "check": "Number"}, {"type": "input_value", "name": "y", "check": "Number"}, {"type": "input_value", "name": "color", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-ssd1306_pixel_tooltip#", "helpUrl": ""}, {"type": "ssd1306_init", "message0": "#blk-ssd1306_init# %1 #blk-with_address# %2 #blk-width# %3 #blk-height# %4", "args0": [{"type": "field_dropdown", "name": "id", "options": [["I2C0", "i2c0"], ["I2C1", "i2c1"], ["Soft I2C0", "softI2c0"], ["Soft I2C1", "softI2c1"]]}, {"type": "field_input", "name": "addr", "text": "60"}, {"type": "field_input", "name": "width", "text": "128"}, {"type": "field_input", "name": "height", "text": "64"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-ssd1306_init_tooltip#", "helpUrl": ""}, {"type": "ssd1306_init_sh1106", "message0": "#blk-ssd1306_init_sh1106# %1 #blk-with_address# %2 #blk-width# %3 #blk-height# %4", "args0": [{"type": "field_dropdown", "name": "id", "options": [["I2C0", "i2c0"], ["I2C1", "i2c1"], ["Soft I2C0", "softI2c0"], ["Soft I2C1", "softI2c1"]]}, {"type": "field_input", "name": "addr", "text": "60"}, {"type": "field_input", "name": "width", "text": "128"}, {"type": "field_input", "name": "height", "text": "64"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-ssd1306_init_sh1106_tooltip#", "helpUrl": ""}, {"type": "ssd1306_ellipse", "message0": "#blk-ssd1306_ellipse# %1 %2 #blk-with_xryr# %3 %4 #blk-color# %5 %6", "args0": [{"type": "input_value", "name": "x", "check": "Number"}, {"type": "input_value", "name": "y", "check": "Number"}, {"type": "input_value", "name": "xr", "check": "Number"}, {"type": "input_value", "name": "yr", "check": "Number"}, {"type": "input_value", "name": "color", "check": "Number"}, {"type": "field_dropdown", "name": "fill", "options": [["fill", "True"], ["outline", "False"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-ssd1306_ellipse_tooltip#", "helpUrl": ""}, {"type": "ssd1306_show", "message0": "#blk-ssd1306_show#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-ssd1306_show_tooltip#", "helpUrl": ""}, {"type": "ssd1306_fill", "message0": "#blk-ssd1306_fill# %1", "args0": [{"type": "input_value", "name": "color", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-ssd1306_fill_tooltip#", "helpUrl": ""}, {"type": "i2c_lcd_init", "message0": "#blk-i2c_lcd_init# %1 #blk-with_lines# %2 #blk-columns# %3 #blk-and_addr# %4", "args0": [{"type": "field_dropdown", "name": "id", "options": [["I2C0", "i2c0"], ["I2C1", "i2c1"], ["Soft I2C0", "softI2c0"], ["Soft I2C1", "softI2c1"]]}, {"type": "field_input", "name": "lines", "text": "2"}, {"type": "field_input", "name": "columns", "text": "16"}, {"type": "field_input", "name": "addr", "text": "39"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-i2c_lcd_init_tooltip#", "helpUrl": ""}, {"type": "i2c_lcd_putstr", "message0": "#blk-i2c_lcd_putstr# %1", "args0": [{"type": "input_value", "name": "text", "check": "String"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-i2c_lcd_putstr_tooltip#", "helpUrl": ""}, {"type": "i2c_lcd_display", "message0": "#blk-i2c_lcd_display# %1", "args0": [{"type": "field_dropdown", "name": "value", "options": [["on", "ON"], ["off", "OFF"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-i2c_lcd_display_tooltip#", "helpUrl": ""}, {"type": "i2c_lcd_clear", "message0": "#blk-i2c_lcd_clear#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-i2c_lcd_clear_tooltip#", "helpUrl": ""}, {"type": "i2c_lcd_blink", "message0": "#blk-i2c_lcd_blink# %1", "args0": [{"type": "field_dropdown", "name": "value", "options": [["on", "ON"], ["off", "OFF"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-i2c_lcd_blink_tooltip#", "helpUrl": ""}, {"type": "i2c_lcd_backlight", "message0": "#blk-i2c_lcd_backlight# %1", "args0": [{"type": "field_dropdown", "name": "value", "options": [["on", "ON"], ["off", "OFF"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-i2c_lcd_backlight_tooltip#", "helpUrl": ""}, {"type": "i2c_lcd_cursor", "message0": "#blk-i2c_lcd_cursor# %1", "args0": [{"type": "field_dropdown", "name": "value", "options": [["show", "ON"], ["hide", "OFF"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-i2c_lcd_cursor_tooltip#", "helpUrl": ""}, {"type": "i2c_lcd_move_to", "message0": "#blk-i2c_lcd_move_to# %1 %2", "args0": [{"type": "input_value", "name": "x", "text": "0"}, {"type": "input_value", "name": "y", "text": "0"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-i2c_lcd_move_to_tooltip#", "helpUrl": ""}, {"type": "ez_esp_now_set_group", "message0": "#blk-ez_esp_now_set_group# %1", "args0": [{"type": "input_value", "name": "group", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-ez_esp_now_set_group_tooltip#", "helpUrl": ""}, {"type": "ez_esp_now_send", "message0": "#blk-ez_esp_now_send_message# %1", "args0": [{"type": "input_value", "name": "value"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-ez_esp_now_send_tooltip#", "helpUrl": ""}, {"type": "ez_esp_now_get_msg", "message0": "#blk-ez_esp_now_get_msg# %1", "args0": [{"type": "field_dropdown", "name": "wait", "options": [["Wait", "True"], ["Don't Wait", "False"]]}], "inputsInline": true, "output": null, "colour": 65, "tooltip": "#blk-ez_esp_now_get_msg_tooltip#", "helpUrl": ""}, {"type": "ez_esp_now_init", "message0": "#blk-init_ez_esp_now#", "args0": [], "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-ez_esp_now_init_tooltip#", "helpUrl": ""}, {"type": "dht_temperature", "message0": "#blk-dht_temperature#", "args0": [], "output": "Number", "colour": 230, "tooltip": "#blk-dht_temperature_tooltip#", "helpUrl": ""}, {"type": "dht_init", "message0": "#blk-dht_init# %1 #blk-on_pin# %2", "args0": [{"type": "field_dropdown", "name": "type", "options": [["DHT22 or AM2302", "DHT22"], ["DHT11", "DHT11"]]}, {"type": "field_dropdown", "name": "pin", "options": [["4", "4"], ["5", "5"], ["12", "12"], ["13", "13"], ["14", "14"], ["15", "15"], ["16", "16"], ["17", "17"], ["18", "18"], ["19", "19"], ["21", "21"], ["22", "22"], ["23", "23"], ["25", "25"], ["26", "26"], ["27", "27"], ["32", "32"], ["33", "33"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-dht_init_tooltip#", "helpUrl": ""}, {"type": "dht_measure", "message0": "#blk-dht_measure#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-dht_measure_tooltip#", "helpUrl": ""}, {"type": "dht_humidity", "message0": "#blk-dht_humidity#", "args0": [], "output": "Number", "colour": 230, "tooltip": "#blk-dht_humidity_tooltip#", "helpUrl": ""}, {"type": "hx711_read", "message0": "#blk-hx711_read#", "args0": [], "inputsInline": true, "output": "Number", "colour": 230, "tooltip": "#blk-hx711_read_tooltip#", "helpUrl": ""}, {"type": "hx711_init", "message0": "#blk-hx711_init_with_dt_pin# %1 #blk-and_sck_pin# %2", "args0": [{"type": "field_dropdown", "name": "dt", "options": [["4", "4"], ["5", "5"], ["12", "12"], ["13", "13"], ["14", "14"], ["15", "15"], ["16", "16"], ["17", "17"], ["18", "18"], ["19", "19"], ["21", "21"], ["22", "22"], ["23", "23"], ["25", "25"], ["26", "26"], ["27", "27"], ["32", "32"], ["33", "33"], ["34", "34"], ["35", "35"], ["36", "36"], ["39", "39"]]}, {"type": "field_dropdown", "name": "sck", "options": [["4", "4"], ["5", "5"], ["12", "12"], ["13", "13"], ["14", "14"], ["15", "15"], ["16", "16"], ["17", "17"], ["18", "18"], ["19", "19"], ["21", "21"], ["22", "22"], ["23", "23"], ["25", "25"], ["26", "26"], ["27", "27"], ["32", "32"], ["33", "33"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-hx711_init_tooltip#", "helpUrl": ""}, {"type": "file_write_binary", "message0": "#blk-write_binary_to# %1 #blk-with# %2", "args0": [{"type": "field_variable", "name": "variable", "variable": "file1"}, {"type": "input_value", "name": "value", "check": "Bytes"}], "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-file_write_binary_tooltip#", "helpUrl": ""}, {"type": "file_flush", "message0": "#blk-flush_file# %1", "args0": [{"type": "field_variable", "name": "variable", "variable": "file1"}], "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-file_flush_tooltip#", "helpUrl": ""}, {"type": "file_readline", "message0": "#blk-read_one_line_from# %1", "args0": [{"type": "field_variable", "name": "variable", "variable": "file1"}], "output": "String", "colour": 230, "tooltip": "#blk-file_readline_tooltip#", "helpUrl": ""}, {"type": "file_list_dir", "message0": "#blk-list_dir# %1", "args0": [{"type": "input_value", "name": "path", "check": "String"}], "output": "Boolean", "colour": 230, "tooltip": "#blk-file_list_dir_tooltip#", "helpUrl": ""}, {"type": "file_is_file", "message0": "#blk-is_file# %1", "args0": [{"type": "input_value", "name": "path", "check": "String"}], "output": "Boolean", "colour": 230, "tooltip": "#blk-file_is_file_tooltip#", "helpUrl": ""}, {"type": "file_open", "message0": "#blk-set# %1 #blk-to_open# %2 #blk-with_mode# %3 #blk-and_type# %4", "args0": [{"type": "field_variable", "name": "variable", "variable": "file1"}, {"type": "input_value", "name": "filename", "check": "String"}, {"type": "field_dropdown", "name": "mode", "options": [["read", "r"], ["write", "w"], ["append", "a"]]}, {"type": "field_dropdown", "name": "type", "options": [["text", "t"], ["binary", "b"]]}], "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-file_open_tooltip#", "helpUrl": ""}, {"type": "file_is_dir", "message0": "#blk-is_dir# %1", "args0": [{"type": "input_value", "name": "path", "check": "String"}], "output": "Boolean", "colour": 230, "tooltip": "#blk-file_is_dir_tooltip#", "helpUrl": ""}, {"type": "file_write", "message0": "#blk-write_to# %1 #blk-with# %2 #blk-and# %3", "args0": [{"type": "field_variable", "name": "variable", "variable": "file1"}, {"type": "input_value", "name": "value", "check": "String"}, {"type": "field_dropdown", "name": "newline", "options": [["New\u00a0line", "TRUE"], ["No new\u00a0line", "FALSE"]]}], "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-file_write_tooltip#", "helpUrl": ""}, {"type": "file_read", "message0": "#blk-read# %1 #blk-characters_from# %2", "args0": [{"type": "input_value", "name": "size", "check": "Number"}, {"type": "field_variable", "name": "variable", "variable": "file1"}], "output": ["String", "Bytes"], "colour": 230, "tooltip": "#blk-file_read_tooltip#", "helpUrl": ""}, {"type": "file_close", "message0": "#blk-close_file# %1", "args0": [{"type": "field_variable", "name": "variable", "variable": "file1"}], "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-file_close_tooltip#", "helpUrl": ""}, {"type": "mqtt_logger_log", "message0": "#blk-mqtt_logger_log# %1 #blk-and_data# %2", "args0": [{"type": "field_input", "name": "topic", "text": "topic"}, {"type": "input_value", "name": "value", "check": "Array"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-mqtt_logger_log_tooltip#", "helpUrl": ""}, {"type": "mqtt_logger_init", "message0": "#blk-mqtt_logger_init# %1 #blk-and_size# %2", "args0": [{"type": "field_input", "name": "topic", "text": "topic"}, {"type": "field_number", "name": "size", "value": 100, "min": 1}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-mqtt_logger_init_tooltip#", "helpUrl": ""}, {"type": "mqtt_logger_log_with_time", "message0": "#blk-mqtt_logger_log_with_time# %1 #blk-and_data# %2", "args0": [{"type": "field_input", "name": "topic", "text": "topic"}, {"type": "input_value", "name": "value"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-mqtt_logger_log_with_time_tooltip#", "helpUrl": ""}, {"type": "vl53l0x_init", "message0": "#blk-vl53l0x_init# %1 #blk-with_address# %2", "args0": [{"type": "field_dropdown", "name": "id", "options": [["I2C0", "i2c0"], ["I2C1", "i2c1"], ["Soft I2C0", "softI2c0"], ["Soft I2C1", "softI2c1"]]}, {"type": "field_input", "name": "addr", "text": "41"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-vl53l0x_init_tooltip#", "helpUrl": ""}, {"type": "vl53l0x_read", "message0": "#blk-vl53l0x_read#", "args0": [], "output": "Number", "colour": 230, "tooltip": "#blk-vl53l0x_read_tooltip#", "helpUrl": ""}, {"type": "when_started", "message0": "#blk-when_started# %1", "args0": [{"type": "field_dropdown", "name": "start_type", "options": [["run immediately (Bluetooth Enabled)", "RUN"], ["wait for Bluetooth connection", "WAIT"], ["wait for Internet connection", "WAIT_MQTT"], ["run immediately (Bluetooth Disabled)", "DISABLE"]]}], "nextStatement": null, "colour": 65, "tooltip": "", "helpUrl": ""}, {"type": "png_decoder_render", "message0": "#blk-png_decoder_render# %1 #blk-to_display# %2 #blk-with_offset_x# %3 #blk-and_y# %4", "args0": [{"type": "input_value", "name": "filename", "check": "String"}, {"type": "field_dropdown", "name": "type", "options": [["SSD-1306", "SSD1306"]]}, {"type": "input_value", "name": "x", "check": "Number"}, {"type": "input_value", "name": "y", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-png_decoder_render_tooltip#", "helpUrl": ""}, {"type": "mqtt_publish", "message0": "#blk-mqtt_publish# %1 #blk-message# %2", "args0": [{"type": "field_input", "name": "topic", "text": "topic"}, {"type": "input_value", "name": "value", "check": "String"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-mqtt_publish_tooltip#", "helpUrl": ""}, {"type": "mqtt_on_receive", "message0": "#blk-mqtt_on_receive# %1 #blk-with_mqtt_msg# %2 %3", "args0": [{"type": "field_input", "name": "topic", "text": "topic"}, {"type": "input_dummy"}, {"type": "input_statement", "name": "statements"}], "inputsInline": true, "nextStatement": null, "colour": 65, "tooltip": "#blk-mqtt_on_receive_tooltip#", "helpUrl": ""}, {"type": "mqtt_msg", "message0": "mqtt_msg", "args0": [], "output": "String", "colour": 330, "tooltip": "#blk-mqtt_msg_tooltip#", "helpUrl": ""}, {"type": "mqtt_wait_msg", "message0": "#blk-mqtt_wait_msg#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "", "helpUrl": ""}, {"type": "mqtt_connect_to_server", "message0": "#blk-connect_to_mqtt_server# %1 #blk-on_port# %2 #blk-with_user# %3 #blk-and_password# %4", "args0": [{"type": "field_input", "name": "server", "text": "mqtt.a9i.sg"}, {"type": "field_input", "name": "port", "text": "1883"}, {"type": "field_input", "name": "name", "text": "name"}, {"type": "field_input", "name": "password", "text": "password"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-connect_to_mqtt_server_tooltip#", "helpUrl": ""}, {"type": "mqtt_publish_bytes", "message0": "#blk-mqtt_publish_bytes# %1 %2", "args0": [{"type": "field_input", "name": "topic", "text": "topic"}, {"type": "input_value", "name": "value", "check": "Bytes"}], "inputsInline": false, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-mqtt_publish_bytes_tooltip#", "helpUrl": ""}, {"type": "mqtt_check_msg", "message0": "#blk-mqtt_check_msg#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-mqtt_check_msg_tooltip#", "helpUrl": ""}, {"type": "run_python", "message0": "#blk-run_python# %1", "args0": [{"type": "field_input", "name": "value", "text": "pass"}], "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-run_python_tooltip#", "helpUrl": ""}, {"type": "stepper_wheels_delta_set_acceleration", "message0": "#blk-stepper_wheels_delta_set_acceleration# %1 #blk-steps_per_second_per_second#", "args0": [{"type": "input_value", "name": "acceleration", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-stepper_wheels_delta_set_acceleration_tooltip#", "helpUrl": ""}, {"type": "stepper_wheels_delta_turn_steps", "message0": "#blk-stepper_wheels_delta_turn_steps# %1 #blk-for# %2 #blk-steps# #blk-and# %3", "args0": [{"type": "input_value", "name": "turn", "check": "Number"}, {"type": "input_value", "name": "steps", "check": "Number"}, {"type": "field_dropdown", "name": "wait", "options": [["wait for completion", "True"], ["don't wait", "False"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-stepper_wheels_delta_turn_steps_tooltip#", "helpUrl": ""}, {"type": "stepper_wheels_delta_stop", "message0": "#blk-stepper_wheels_delta_stop#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-stepper_wheels_delta_stop_tooltip#", "helpUrl": ""}, {"type": "stepper_wheels_delta_move_turn", "message0": "#blk-stepper_wheels_delta_move_turn# %1 #blk-and_speed# %2 #blk-and_rotation# %3", "args0": [{"type": "input_value", "name": "direction", "check": "Number"}, {"type": "input_value", "name": "speed", "check": "Number"}, {"type": "input_value", "name": "turn", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-stepper_wheels_delta_move_turn_tooltip#", "helpUrl": ""}, {"type": "stepper_wheels_init_delta", "message0": "#blk-stepper_wheels_init_delta# %1 #blk-with_motors# %2 %3 %4 #blk-and_max_speed# %5", "args0": [{"type": "field_dropdown", "name": "mode", "options": [["V", "V"], ["A", "A"]]}, {"type": "field_number", "name": "motor0", "value": 0}, {"type": "field_number", "name": "motor1", "value": 1}, {"type": "field_number", "name": "motor2", "value": 2}, {"type": "field_number", "name": "max_speed", "value": 1200}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-stepper_wheels_init_delta_tooltip#", "helpUrl": ""}, {"type": "stepper_wheels_delta_move_steps", "message0": "#blk-stepper_wheels_delta_move_steps# %1 #blk-and_speed# %2 #blk-for# %3 #blk-steps# #blk-and# %4", "args0": [{"type": "input_value", "name": "direction", "check": "Number"}, {"type": "input_value", "name": "speed", "check": "Number"}, {"type": "input_value", "name": "steps", "check": "Number"}, {"type": "field_dropdown", "name": "wait", "options": [["wait for completion", "True"], ["don't wait", "False"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-stepper_wheels_delta_move_steps_tooltip#", "helpUrl": ""}, {"type": "json_dumps", "message0": "#blk-json_dumps# %1", "args0": [{"type": "input_value", "name": "value"}], "output": null, "colour": 230, "tooltip": "#blk-json_dumps_tooltip#", "helpUrl": ""}, {"type": "type_cast", "message0": "#blk-type_cast# %1 %2", "args0": [{"type": "field_dropdown", "name": "type", "options": [["integer", "INTEGER"], ["float", "FLOAT"], ["string", "STRING"], ["hexadecimal string", "HEX"]]}, {"type": "input_value", "name": "value"}], "output": null, "colour": 230, "tooltip": "#blk-type_cast_tooltip#", "helpUrl": ""}, {"type": "binary_shift", "message0": "%1 %2 %3 #blk-times#", "args0": [{"type": "input_value", "name": "value1", "check": "Number"}, {"type": "field_dropdown", "name": "op", "options": [["<< (Shift bits left)", "<<"], [">> (Shift bits right)", ">>"]]}, {"type": "input_value", "name": "value2", "check": "Number"}], "inputsInline": true, "output": "Number", "colour": 230, "tooltip": "#blk-binary_shift_tooltip#", "helpUrl": ""}, {"type": "binary_op", "message0": "%1 %2 %3", "args0": [{"type": "input_value", "name": "value1", "check": "Number"}, {"type": "field_dropdown", "name": "op", "options": [["| (OR)", "|"], ["& (AND)", "&"], ["^ (XOR)", "^"]]}, {"type": "input_value", "name": "value2", "check": "Number"}], "inputsInline": true, "output": "Number", "colour": 230, "tooltip": "#blk-binary_op_tooltip#", "helpUrl": ""}, {"type": "unpack", "message0": "#blk-unpack# %1 #blk-using_format# %2", "args0": [{"type": "input_value", "name": "value", "check": "Bytes"}, {"type": "field_input", "name": "format", "text": ">h"}], "output": "Array", "colour": 230, "tooltip": "#blk-unpack_tooltip#", "helpUrl": "https://docs.micropython.org/en/latest/library/struct.html#module-struct"}, {"type": "math_map", "message0": "#blk-map# %1 #blk-from_low# %2 #blk-high# %3 #blk-to_low# %4 #blk-high# %5", "args0": [{"type": "input_value", "name": "x", "check": "Number"}, {"type": "input_value", "name": "in_min", "check": "Number"}, {"type": "input_value", "name": "in_max", "check": "Number"}, {"type": "input_value", "name": "out_min", "check": "Number"}, {"type": "input_value", "name": "out_max", "check": "Number"}], "inputsInline": true, "output": "Number", "colour": 230, "tooltip": "#blk-map_tooltip#", "helpUrl": ""}, {"type": "json_loads", "message0": "#blk-json_loads# %1", "args0": [{"type": "input_value", "name": "value", "check": "String"}], "output": null, "colour": 230, "tooltip": "#blk-json_loads_tooltip#", "helpUrl": ""}, {"type": "binary_not", "message0": "#blk-binary_not# %1", "args0": [{"type": "input_value", "name": "value", "check": "Number"}], "inputsInline": true, "output": "Number", "colour": 230, "tooltip": "#blk-binary_not_tooltip#", "helpUrl": ""}, {"type": "decode", "message0": "#blk-decode# %1 #blk-as_utf8#", "args0": [{"type": "input_value", "name": "value", "check": "Bytes"}], "output": "String", "colour": 230, "tooltip": "#blk-decode_tooltip#", "helpUrl": ""}, {"type": "encode", "message0": "#blk-encode# %1 #blk-as_utf8#", "args0": [{"type": "input_value", "name": "value", "check": "String"}], "output": "Bytes", "colour": 230, "tooltip": "#blk-encode_tooltip#", "helpUrl": ""}, {"type": "ld2410_update", "message0": "#blk-ld2410_update#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-ld2410_update_tooltip#", "helpUrl": ""}, {"type": "ld2410_set_sensitivity", "message0": "#blk-ld2410_set_sensitivity# %1 #blk-to_moving_energy# %2 #blk-and_stationary_energy# %3", "args0": [{"type": "field_dropdown", "name": "gate", "options": [["0: 0.00m to 0.75m", "0"], ["1: 0.75m to 1.50m", "1"], ["2: 1.50m to 2.25m", "2"], ["3: 2.25m to 3.00m", "3"], ["4: 3.00m to 3.75m", "4"], ["5: 3.75m to 4.50m", "5"], ["6: 4.50m to 5.25m", "6"], ["7: 5.25m to 6.00m", "7"], ["8: 6.00m to 6.75m", "8"]]}, {"type": "input_value", "name": "moving", "check": "Number"}, {"type": "input_value", "name": "stationary", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-ld2410_set_sensitivity_tooltip#", "helpUrl": ""}, {"type": "ld2410_factory_reset", "message0": "#blk-ld2410_factory_reset#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-ld2410_factory_reset_tooltip#", "helpUrl": ""}, {"type": "ld2410_get_engineering", "message0": "#blk-ld2410_get_engineering#", "args0": [], "output": ["Array"], "colour": 230, "tooltip": "#blk-ld2410_get_engineering_tooltip#", "helpUrl": ""}, {"type": "ld2410_engineering_mode", "message0": "#blk-ld2410_engineering_mode# %1", "args0": [{"type": "field_dropdown", "name": "type", "options": [["Enable", "enable"], ["Disable", "disable"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-ld2410_engineering_mode_tooltip#", "helpUrl": ""}, {"type": "ld2410_get_target", "message0": "#blk-ld2410_get_target#", "args0": [], "output": ["Array"], "colour": 230, "tooltip": "#blk-ld2410_get_target_tooltip#", "helpUrl": ""}, {"type": "ld2410_set_max", "message0": "#blk-ld2410_set_max# %1 #blk-stationary_gate# %2 #blk-and_inactivity_time# %3", "args0": [{"type": "field_dropdown", "name": "moving", "options": [["0: 0.00m to 0.75m", "0"], ["1: 0.75m to 1.50m", "1"], ["2: 1.50m to 2.25m", "2"], ["3: 2.25m to 3.00m", "3"], ["4: 3.00m to 3.75m", "4"], ["5: 3.75m to 4.50m", "5"], ["6: 4.50m to 5.25m", "6"], ["7: 5.25m to 6.00m", "7"], ["8: 6.00m to 6.75m", "8"]]}, {"type": "field_dropdown", "name": "stationary", "options": [["0: 0.00m to 0.75m", "0"], ["1: 0.75m to 1.50m", "1"], ["2: 1.50m to 2.25m", "2"], ["3: 2.25m to 3.00m", "3"], ["4: 3.00m to 3.75m", "4"], ["5: 3.75m to 4.50m", "5"], ["6: 4.50m to 5.25m", "6"], ["7: 5.25m to 6.00m", "7"], ["8: 6.00m to 6.75m", "8"]]}, {"type": "input_value", "name": "inactivity", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-ld2410_set_max_tooltip#", "helpUrl": ""}, {"type": "ld2410_init", "message0": "#blk-ld2410_init# %1", "args0": [{"type": "field_dropdown", "name": "uart", "options": [["UART1", "1"], ["UART2", "2"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-ld2410_init_tooltip#", "helpUrl": ""}, {"type": "ili9341_rgb", "message0": "#blk-ili9341_rgb# %1 %2 %3", "args0": [{"type": "input_value", "name": "red", "check": "Number"}, {"type": "input_value", "name": "green", "check": "Number"}, {"type": "input_value", "name": "blue", "check": "Number"}], "inputsInline": true, "output": "Color_ili9341", "colour": 230, "tooltip": "#blk-ili9341_rgb_tooltip#", "helpUrl": ""}, {"type": "ili9341_color", "message0": "#blk-ili9341_color# %1", "args0": [{"type": "field_dropdown", "name": "color", "options": [["red", "(255, 0, 0)"], ["orange", "(255, 165, 0)"], ["yellow", "(255, 255, 0)"], ["green", "(0, 255, 0)"], ["blue", "(0, 0, 255)"], ["indigo", "(75, 0, 130)"], ["violet", "(138, 43, 226)"], ["purple", "(255, 0, 255)"], ["white", "(255, 255, 255)"], ["black", "(0, 0, 0)"]]}], "output": "Color_ili9341", "colour": 230, "tooltip": "#blk-ili9341_color_tooltip#", "helpUrl": ""}, {"type": "ili9341_pixel", "message0": "#blk-ili9341_pixel# %1 %2 #blk-color# %3", "args0": [{"type": "input_value", "name": "x", "check": "Number"}, {"type": "input_value", "name": "y", "check": "Number"}, {"type": "input_value", "name": "color", "check": "Color_ili9341"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-ili9341_pixel_tooltip#", "helpUrl": ""}, {"type": "ili9341_hsv", "message0": "#blk-ili9341_hsv# %1 %2 %3", "args0": [{"type": "input_value", "name": "h", "check": "Number"}, {"type": "input_value", "name": "s", "check": "Number"}, {"type": "input_value", "name": "v", "check": "Number"}], "inputsInline": true, "output": "Color_ili9341", "colour": 230, "tooltip": "#blk-ili9341_hsv_tooltip#", "helpUrl": ""}, {"type": "ili9341_text_with_font", "message0": "#blk-ili9341_text_with_font# %1 #blk-font# %2 #blk-at_xy# %3 %4 #blk-color# %5 #blk-background# %6 #blk-rotation# %7", "args0": [{"type": "input_value", "name": "text", "check": "String"}, {"type": "input_value", "name": "font", "check": "Font_xglcd"}, {"type": "input_value", "name": "x", "check": "Number"}, {"type": "input_value", "name": "y", "check": "Number"}, {"type": "input_value", "name": "color", "check": "Color_ili9341"}, {"type": "input_value", "name": "background", "check": "Color_ili9341"}, {"type": "field_dropdown", "name": "rotate", "options": [["0", "0"], ["90", "90"], ["180", "180"], ["270", "270"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-ili9341_text_with_font_tooltip#", "helpUrl": ""}, {"type": "ili9341_ellipse", "message0": "#blk-ili9341_ellipse# %1 %2 #blk-with_xryr# %3 %4 #blk-color# %5 #blk-fill# %6", "args0": [{"type": "input_value", "name": "x", "check": "Number"}, {"type": "input_value", "name": "y", "check": "Number"}, {"type": "input_value", "name": "xr", "check": "Number"}, {"type": "input_value", "name": "yr", "check": "Number"}, {"type": "input_value", "name": "color", "check": "Color_ili9341"}, {"type": "field_dropdown", "name": "fill", "options": [["False", "False"], ["True", "True"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-ili9341_ellipse_tooltip#", "helpUrl": ""}, {"type": "ili9341_clear", "message0": "#blk-ili9341_clear# %1", "args0": [{"type": "input_value", "name": "color", "check": "Color_ili9341"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-ili9341_clear_tooltip#", "helpUrl": ""}, {"type": "ili9341_image_from_buf", "message0": "#blk-ili9341_image_from_buf# %1 #blk-at_xy# %2 %3 #blk-width# %4 #blk-height# %5", "args0": [{"type": "input_value", "name": "buf", "check": "Bytes"}, {"type": "input_value", "name": "x", "check": "Number"}, {"type": "input_value", "name": "y", "check": "Number"}, {"type": "input_value", "name": "w", "check": "Number"}, {"type": "input_value", "name": "h", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-ili9341_image_from_buf_tooltip#", "helpUrl": ""}, {"type": "ili9341_text8x8", "message0": "#blk-ili9341_text8x8# %1 #blk-at_xy# %2 %3 #blk-color# %4 #blk-background# %5 #blk-rotation# %6", "args0": [{"type": "input_value", "name": "text", "check": "String"}, {"type": "input_value", "name": "x", "check": "Number"}, {"type": "input_value", "name": "y", "check": "Number"}, {"type": "input_value", "name": "color", "check": "Color_ili9341"}, {"type": "input_value", "name": "background", "check": "Color_ili9341"}, {"type": "field_dropdown", "name": "rotate", "options": [["0", "0"], ["90", "90"], ["180", "180"], ["270", "270"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-ili9341_text8x8_tooltip#", "helpUrl": ""}, {"type": "ili9341_image_from_file", "message0": "#blk-ili9341_image_from_file# %1 #blk-at_xy# %2 %3 #blk-width# %4 #blk-height# %5", "args0": [{"type": "input_value", "name": "filename", "check": "String"}, {"type": "input_value", "name": "x", "check": "Number"}, {"type": "input_value", "name": "y", "check": "Number"}, {"type": "input_value", "name": "w", "check": "Number"}, {"type": "input_value", "name": "h", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-ili9341_image_from_file_tooltip#", "helpUrl": ""}, {"type": "ili9341_line", "message0": "#blk-ili9341_line# %1 %2 #blk-x2y2# %3 %4 #blk-color# %5", "args0": [{"type": "input_value", "name": "x1", "check": "Number"}, {"type": "input_value", "name": "y1", "check": "Number"}, {"type": "input_value", "name": "x2", "check": "Number"}, {"type": "input_value", "name": "y2", "check": "Number"}, {"type": "input_value", "name": "color", "check": "Color_ili9341"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-ili9341_line_tooltip#", "helpUrl": ""}, {"type": "ili9341_rectangle", "message0": "#blk-ili9341_rectangle# %1 %2 #blk-width# %3 #blk-height# %4 #blk-color# %5 #blk-fill# %6", "args0": [{"type": "input_value", "name": "x", "check": "Number"}, {"type": "input_value", "name": "y", "check": "Number"}, {"type": "input_value", "name": "w", "check": "Number"}, {"type": "input_value", "name": "h", "check": "Number"}, {"type": "input_value", "name": "color", "check": "Color_ili9341"}, {"type": "field_dropdown", "name": "fill", "options": [["False", "False"], ["True", "True"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-ili9341_rectangle_tooltip#", "helpUrl": ""}, {"type": "ili9341_init", "message0": "#blk-ili9341_init# %1 #blk-cs# %2 #blk-dc# %3 #blk-rst# %4 #blk-width# %5 #blk-height# %6 #blk-rotation# %7 #blk-mirror# %8 #blk-bgr# %9", "args0": [{"type": "field_dropdown", "name": "spi", "options": [["SPI1", "spi1"], ["SPI2", "spi2"], ["Soft SPI1", "softSpi1"], ["Soft SPI2", "softSpi2"]]}, {"type": "field_number", "name": "cs", "min": 0, "precision": 1, "value": 15}, {"type": "field_number", "name": "dc", "min": 0, "precision": 1, "value": 2}, {"type": "field_number", "name": "rst", "min": 0, "precision": 1, "value": 15}, {"type": "field_number", "name": "width", "min": 0, "precision": 1, "value": 320}, {"type": "field_number", "name": "height", "min": 0, "precision": 1, "value": 240}, {"type": "field_dropdown", "name": "rotation", "options": [["0", "0"], ["90", "90"], ["180", "180"], ["270", "270"]]}, {"type": "field_dropdown", "name": "mirror", "options": [["False", "False"], ["True", "True"]]}, {"type": "field_dropdown", "name": "bgr", "options": [["False", "False"], ["True", "True"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-ili9341_init_tooltip#", "helpUrl": ""}, {"type": "esp32_temperature", "message0": "#blk-microcontroller_temperature_in# %1", "args0": [{"type": "field_dropdown", "name": "units", "options": [["Celsius", "CELSIUS"], ["Fahrenheit", "FAHRENHEIT"]]}], "output": "Number", "colour": 65, "tooltip": "#blk-esp32_temperature_tooltip#", "helpUrl": ""}, {"type": "xpt2046_get_pos", "message0": "#blk-xpt2046_get_pos#", "args0": [], "inputsInline": true, "output": "Array", "colour": 230, "tooltip": "#blk-xpt2046_get_pos_tooltip#", "helpUrl": ""}, {"type": "xpt2046_init", "message0": "#blk-xpt2046_init# %1 #blk-cs# %2 #blk-int# %3 #blk-width# %4 #blk-height# %5 #blk-min_max_x# %6 %7 #blk-min_max_y# %8 %9 #blk-rotation# %10", "args0": [{"type": "field_dropdown", "name": "spi", "options": [["SPI1", "spi1"], ["SPI2", "spi2"], ["Soft SPI1", "softSpi1"], ["Soft SPI2", "softSpi2"]]}, {"type": "field_number", "name": "cs", "min": 0, "precision": 1, "value": 33}, {"type": "field_number", "name": "int", "min": 0, "precision": 1, "value": 36}, {"type": "field_number", "name": "width", "min": 0, "precision": 1, "value": 320}, {"type": "field_number", "name": "height", "min": 0, "precision": 1, "value": 240}, {"type": "field_number", "name": "x_min", "min": 0, "precision": 1, "value": 100}, {"type": "field_number", "name": "x_max", "min": 0, "precision": 1, "value": 1900}, {"type": "field_number", "name": "y_min", "min": 0, "precision": 1, "value": 100}, {"type": "field_number", "name": "y_max", "min": 0, "precision": 1, "value": 1900}, {"type": "field_dropdown", "name": "rotation", "options": [["0", "0"], ["90", "90"], ["180", "180"], ["270", "270"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-xpt2046_init_tooltip#", "helpUrl": ""}, {"type": "xpt2046_in_circle", "message0": "#blk-xpt2046_in_circle# %1 #blk-is_in_circle# #blk-xy# %2 %3 #blk-r# %4", "args0": [{"type": "input_value", "name": "pos", "check": "Array"}, {"type": "input_value", "name": "x", "check": "Number"}, {"type": "input_value", "name": "y", "check": "Number"}, {"type": "input_value", "name": "r", "check": "Number"}], "inputsInline": true, "output": "Boolean", "colour": 230, "tooltip": "#blk-xpt2046_in_circle_tooltip#", "helpUrl": ""}, {"type": "xpt2046_in_rect", "message0": "#blk-xpt2046_in_rect# %1 #blk-is_in_rectangle# #blk-xy# %2 %3 #blk-wh# %4 %5", "args0": [{"type": "input_value", "name": "pos", "check": "Array"}, {"type": "input_value", "name": "x", "check": "Number"}, {"type": "input_value", "name": "y", "check": "Number"}, {"type": "input_value", "name": "w", "check": "Number"}, {"type": "input_value", "name": "h", "check": "Number"}], "inputsInline": true, "output": "Boolean", "colour": 230, "tooltip": "#blk-xpt2046_in_rect_tooltip#", "helpUrl": ""}, {"type": "max6675_init", "message0": "#blk-max6675_init# %1 #blk-and_cs_pin# %2", "args0": [{"type": "field_dropdown", "name": "spi", "options": [["SPI1", "spi1"], ["SPI2", "spi2"], ["Soft SPI1", "softSpi1"], ["Soft SPI2", "softSpi2"]]}, {"type": "field_dropdown", "name": "cs", "options": [["0 (Boot Button)", "0"], ["2 (Built-in LED)", "2"], ["4", "4"], ["5", "5"], ["12", "12"], ["13", "13"], ["14", "14"], ["15", "15"], ["16", "16"], ["17", "17"], ["18", "18"], ["19", "19"], ["21", "21"], ["22", "22"], ["23", "23"], ["25", "25"], ["26", "26"], ["27", "27"], ["32", "32"], ["33", "33"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-max6675_init_tooltip#", "helpUrl": ""}, {"type": "max6675_read", "message0": "#blk-max6675_read# %1", "args0": [{"type": "field_dropdown", "name": "unit", "options": [["Celsius", "celsius"], ["Fahrenheit", "fahrenheit"], ["Kelvin", "kelvin"]]}], "output": "Number", "colour": 230, "tooltip": "#blk-max6675_read_tooltip#", "helpUrl": ""}, {"type": "scaled_text_text", "message0": "#blk-scaled_text_text# %1 #blk-at_xy# %2 %3 #blk-color# %4 #blk-scale# %5", "args0": [{"type": "input_value", "name": "text", "check": "String"}, {"type": "input_value", "name": "x", "check": "Number"}, {"type": "input_value", "name": "y", "check": "Number"}, {"type": "input_value", "name": "color", "check": ["Number", "Color_ili9341", "Color_st7789"]}, {"type": "field_dropdown", "name": "scale", "options": [["2x", "2"], ["3x", "3"], ["4x", "4"], ["5x", "5"], ["6x", "6"], ["7x", "7"], ["8x", "8"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-scaled_text_text_tooltip#", "helpUrl": ""}, {"type": "scaled_text_text_with_background", "message0": "#blk-scaled_text_text_with_background# %1 #blk-at_xy# %2 %3 #blk-color# %4 #blk-background# %5 #blk-scale# %6", "args0": [{"type": "input_value", "name": "text", "check": "String"}, {"type": "input_value", "name": "x", "check": "Number"}, {"type": "input_value", "name": "y", "check": "Number"}, {"type": "input_value", "name": "color", "check": ["Number", "Color_ili9341", "Color_st7789"]}, {"type": "input_value", "name": "background", "check": ["Number", "Color_ili9341", "Color_st7789"]}, {"type": "field_dropdown", "name": "scale", "options": [["2x", "2"], ["3x", "3"], ["4x", "4"], ["5x", "5"], ["6x", "6"], ["7x", "7"], ["8x", "8"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-scaled_text_text_with_background_tooltip#", "helpUrl": ""}, {"type": "scaled_text_init", "message0": "#blk-scaled_text_init# %1", "args0": [{"type": "field_dropdown", "name": "type", "options": [["SSD-1306", "SSD1306"], ["ILI9341", "ILI9341"], ["ST7789", "ST7789"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-scaled_text_init_tooltip#", "helpUrl": ""}, {"type": "music_play_tone", "message0": "#blk-music_play_tone# %1 #blk-hz# #blk-for# %2 #blk-ms# #blk-and# %3", "args0": [{"type": "input_value", "name": "freq", "check": "Number"}, {"type": "input_value", "name": "ms", "check": "Number"}, {"type": "field_dropdown", "name": "wait", "options": [["wait", "True"], ["don't wait", "False"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-music_play_tone_tooltip#", "helpUrl": ""}, {"type": "music_is_playing", "message0": "#blk-music_is_playing#", "args0": [], "inputsInline": true, "output": "Boolean", "colour": 230, "tooltip": "#blk-music_is_playing_tooltip#", "helpUrl": ""}, {"type": "music_init", "message0": "#blk-music_init# %1", "args0": [{"type": "field_dropdown", "name": "pin", "options": [["0 (Boot Button)", "0"], ["2 (Built-in LED)", "2"], ["4", "4"], ["5", "5"], ["12", "12"], ["13", "13"], ["14", "14"], ["15", "15"], ["16", "16"], ["17", "17"], ["18", "18"], ["19", "19"], ["21", "21"], ["22", "22"], ["23", "23"], ["25", "25"], ["26", "26"], ["27", "27"], ["32", "32"], ["33", "33"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-music_init_tooltip#", "helpUrl": ""}, {"type": "music_play_notes", "message0": "#blk-music_play_notes# %1 #blk-repeat# %2 #blk-times# #blk-and# %3", "args0": [{"type": "input_value", "name": "notes", "check": "String"}, {"type": "input_value", "name": "loops", "check": "Number"}, {"type": "field_dropdown", "name": "wait", "options": [["wait", "True"], ["don't wait", "False"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-music_play_notes_tooltip#", "helpUrl": ""}, {"type": "music_stop", "message0": "#blk-music_stop#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-music_stop_tooltip#", "helpUrl": ""}, {"type": "music_play_rtttl", "message0": "#blk-music_play_rtttl# %1 #blk-repeat# %2 #blk-times# #blk-and# %3", "args0": [{"type": "input_value", "name": "rtttl", "check": "String"}, {"type": "input_value", "name": "loops", "check": "Number"}, {"type": "field_dropdown", "name": "wait", "options": [["wait", "True"], ["don't wait", "False"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-music_play_rtttl_tooltip#", "helpUrl": ""}, {"type": "music_update", "message0": "#blk-music_update#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-music_update_tooltip#", "helpUrl": ""}, {"type": "hx710_read", "message0": "#blk-hx710_read# %1", "args0": [{"type": "field_dropdown", "name": "next", "options": [["Diffential Input (10Hz)", "DIFF_10HZ"], ["Temperature / Analog Voltage", "TEMPERATURE_AVOLTAGE"], ["Diffential Input (40Hz)", "DIFF_40HZ"]]}], "inputsInline": true, "output": "Number", "colour": 230, "tooltip": "#blk-hx710_read_tooltip#", "helpUrl": ""}, {"type": "hx710_init", "message0": "#blk-hx710_init_with_dt_pin# %1 #blk-and_sck_pin# %2", "args0": [{"type": "field_dropdown", "name": "dt", "options": [["4", "4"], ["5", "5"], ["12", "12"], ["13", "13"], ["14", "14"], ["15", "15"], ["16", "16"], ["17", "17"], ["18", "18"], ["19", "19"], ["21", "21"], ["22", "22"], ["23", "23"], ["25", "25"], ["26", "26"], ["27", "27"], ["32", "32"], ["33", "33"], ["34", "34"], ["35", "35"], ["36", "36"], ["39", "39"]]}, {"type": "field_dropdown", "name": "sck", "options": [["4", "4"], ["5", "5"], ["12", "12"], ["13", "13"], ["14", "14"], ["15", "15"], ["16", "16"], ["17", "17"], ["18", "18"], ["19", "19"], ["21", "21"], ["22", "22"], ["23", "23"], ["25", "25"], ["26", "26"], ["27", "27"], ["32", "32"], ["33", "33"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-hx710_init_tooltip#", "helpUrl": ""}, {"type": "setBluetoothCmds", "message0": "#blk-setBluetoothCmds# %1", "args0": [{"type": "field_dropdown", "name": "value", "options": [["disabled", "DISABLED"], ["enabled", "ENABLED"]]}], "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-setBluetoothCmds_tooltip#", "helpUrl": ""}, {"type": "ez_ds18x20_device_count", "message0": "#blk-ez_ds18x20_device_count#", "args0": [], "output": "Number", "colour": 230, "tooltip": "#blk-ez_ds18x20_device_count_tooltip#", "helpUrl": ""}, {"type": "ez_ds18x20_init", "message0": "#blk-ez_ds18x20_init# %1", "args0": [{"type": "field_dropdown", "name": "pin", "options": [["4", "4"], ["5", "5"], ["12", "12"], ["13", "13"], ["14", "14"], ["15", "15"], ["16", "16"], ["17", "17"], ["18", "18"], ["19", "19"], ["21", "21"], ["22", "22"], ["23", "23"], ["25", "25"], ["26", "26"], ["27", "27"], ["32", "32"], ["33", "33"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-ez_ds18x20_init_tooltip#", "helpUrl": ""}, {"type": "ez_ds18x20_convert_temp", "message0": "#blk-ez_ds18x20_convert_temp#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-ez_ds18x20_convert_temp_tooltip#", "helpUrl": ""}, {"type": "ez_ds18x20_read_temp", "message0": "#blk-ez_ds18x20_read_temp# %1", "args0": [{"type": "input_value", "name": "index", "check": "Number"}], "inputsInline": true, "output": "Number", "colour": 230, "tooltip": "#blk-ez_ds18x20_read_temp_tooltip#", "helpUrl": ""}, {"type": "xglcd_font_load", "message0": "#blk-xglcd_font_load# %1 #blk-width# %2 #blk-height# %3", "args0": [{"type": "input_value", "name": "filename", "check": "String"}, {"type": "field_number", "name": "width", "min": 0, "precision": 1, "value": 5}, {"type": "field_number", "name": "height", "min": 0, "precision": 1, "value": 8}], "inputsInline": true, "output": "Font_xglcd", "colour": 230, "tooltip": "#blk-xglcd_font_load_tooltip#", "helpUrl": ""}, {"type": "esp_now_add_peer", "message0": "#blk-esp_now_add_peer# %1", "args0": [{"type": "input_value", "name": "mac", "check": "String"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-esp_now_add_peer_tooltip#", "helpUrl": ""}, {"type": "esp_now_msg_available", "message0": "#blk-esp_now_msg_available#", "args0": [], "inputsInline": true, "output": "Boolean", "colour": 65, "tooltip": "#blk-esp_now_msg_available_tooltip#", "helpUrl": ""}, {"type": "esp_now_remove_peer", "message0": "#blk-esp_now_remove_peer# %1", "args0": [{"type": "input_value", "name": "mac", "check": "String"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-esp_now_remove_peer_tooltip#", "helpUrl": ""}, {"type": "esp_now_init", "message0": "#blk-init_esp_now#", "args0": [], "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-esp_now_init_tooltip#", "helpUrl": ""}, {"type": "esp_now_send", "message0": "#blk-esp_now_send_message# %1 #blk-to# %2", "args0": [{"type": "input_value", "name": "value", "check": "String"}, {"type": "input_value", "name": "mac", "check": "String"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-esp_now_send_tooltip#", "helpUrl": ""}, {"type": "esp_now_get_msg", "message0": "#blk-esp_now_get_msg_wait_for# %1", "args0": [{"type": "input_value", "name": "timeout", "check": "Number"}], "inputsInline": true, "output": "Array", "colour": 65, "tooltip": "#blk-esp_now_get_msg_tooltip#", "helpUrl": ""}, {"type": "gy33_uart_init", "message0": "#blk-gy33_uart_init# %1", "args0": [{"type": "field_dropdown", "name": "uart", "options": [["UART1", "1"], ["UART2", "2"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-gy33_uart_init_tooltip#", "helpUrl": ""}, {"type": "gy33_uart_init", "message0": "#blk-gy33_uart_init# %1", "args0": [{"type": "field_dropdown", "name": "uart", "options": [["UART1", "1"], ["UART2", "2"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-gy33_uart_init_tooltip#", "helpUrl": ""}, {"type": "gy33_uart_calibrate_black", "message0": "#blk-gy33_uart_calibrate_black#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-gy33_uart_calibrate_black_tooltip#", "helpUrl": ""}, {"type": "gy33_uart_update", "message0": "#blk-gy33_uart_update#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-gy33_uart_update_tooltip#", "helpUrl": ""}, {"type": "gy33_uart_set_integration_time", "message0": "#blk-gy33_uart_set_integration_time# %1", "args0": [{"type": "field_dropdown", "name": "time", "options": [["700 ms", "700"], ["154 ms", "154"], ["100 ms (default)", "100"], ["24 ms", "24"], ["2.4 ms", "2.4"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-gy33_uart_set_integration_time_tooltip#", "helpUrl": ""}, {"type": "gy33_uart_get_raw", "message0": "#blk-gy33_uart_get_raw# %1", "args0": [{"type": "field_dropdown", "name": "type", "options": [["Clear", "c"], ["Red", "r"], ["Green", "g"], ["Blue", "b"], ["All (List)", "all"]]}], "output": ["Number", "Array"], "colour": 230, "tooltip": "#blk-gy33_uart_get_raw_tooltip#", "helpUrl": ""}, {"type": "gy33_uart_calibrate_white", "message0": "#blk-gy33_uart_calibrate_white#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-gy33_uart_calibrate_white_tooltip#", "helpUrl": ""}, {"type": "gy33_uart_set_led", "message0": "#blk-gy33_uart_set_led# %1", "args0": [{"type": "field_dropdown", "name": "power", "options": [["10 (Max)", "10"], ["9", "9"], ["8", "8"], ["7", "7"], ["6", "6"], ["5", "5"], ["4", "4"], ["3", "3"], ["2", "2"], ["1", "1"], ["0 (Off)", "0"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-gy33_uart_set_led_tooltip#", "helpUrl": ""}, {"type": "gy33_uart_get_calibrated", "message0": "#blk-gy33_uart_get_calibrated# %1", "args0": [{"type": "field_dropdown", "name": "type", "options": [["Clear", "c"], ["Red", "r"], ["Green", "g"], ["Blue", "b"], ["All (List)", "all"]]}], "output": ["Number", "Array"], "colour": 230, "tooltip": "#blk-gy33_uart_get_calibrated_tooltip#", "helpUrl": ""}, {"type": "exit", "message0": "#blk-exit_program#", "previousStatement": null, "colour": 65, "tooltip": "#blk-exit_tooltip#", "helpUrl": ""}, {"type": "run_python_and_return", "message0": "#blk-run_python_and_return# %1", "args0": [{"type": "field_input", "name": "value", "text": "int(1.1)"}], "output": null, "colour": 65, "tooltip": "#blk-run_python_and_return_tooltip#", "helpUrl": ""}, {"type": "set_pin_mode", "message0": "#blk-set_pin# %1 #blk-to_mode# %2", "args0": [{"type": "field_dropdown", "name": "pin", "options": [["0 (Boot Button)", "0"], ["2 (Built-in LED)", "2"], ["4", "4"], ["5", "5"], ["12", "12"], ["13", "13"], ["14", "14"], ["15", "15"], ["16", "16"], ["17", "17"], ["18", "18"], ["19", "19"], ["21", "21"], ["22", "22"], ["23", "23"], ["25", "25"], ["26", "26"], ["27", "27"], ["32", "32"], ["33", "33"]]}, {"type": "field_dropdown", "name": "mode", "options": [["#blk-input#", "INPUT"], ["#blk-input_pullup#", "INPUT_PULLUP"], ["#blk-output#", "OUTPUT"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-set_pin_tooltip#", "helpUrl": ""}, {"type": "analog_read_pin", "message0": "#blk-analog_read_pin# %1", "args0": [{"type": "field_dropdown", "name": "pin", "options": [["32", "32"], ["33", "33"], ["34", "34"], ["35", "35"], ["36", "36"], ["39", "39"]]}], "output": "Number", "colour": 230, "tooltip": "#blk-analog_read_pin_tooltip#", "helpUrl": ""}, {"type": "hc_sr04_ping", "message0": "#blk-hc_sr04_ping_trig# %1 #blk-echo# %2 #blk-unit# %3", "args0": [{"type": "field_dropdown", "name": "trig", "options": [["0 (Boot Button)", "0"], ["2 (Built-in LED)", "2"], ["4", "4"], ["5", "5"], ["12", "12"], ["13", "13"], ["14", "14"], ["15", "15"], ["16", "16"], ["17", "17"], ["18", "18"], ["19", "19"], ["21", "21"], ["22", "22"], ["23", "23"], ["25", "25"], ["26", "26"], ["27", "27"], ["32", "32"], ["33", "33"]]}, {"type": "field_dropdown", "name": "echo", "options": [["0 (Boot Button)", "0"], ["2 (Built-in LED)", "2"], ["4", "4"], ["5", "5"], ["12", "12"], ["13", "13"], ["14", "14"], ["15", "15"], ["16", "16"], ["17", "17"], ["18", "18"], ["19", "19"], ["21", "21"], ["22", "22"], ["23", "23"], ["25", "25"], ["26", "26"], ["27", "27"], ["32", "32"], ["33", "33"]]}, {"type": "field_dropdown", "name": "unit", "options": [["cm", "CM"], ["us", "US"]]}], "output": "Number", "colour": 230, "tooltip": "#blk-hc_sr04_ping_tooltip#", "helpUrl": ""}, {"type": "servo_write_us", "message0": "#blk-servo_write# %1 #blk-to# %2 #blk-us#", "args0": [{"type": "field_dropdown", "name": "pin", "options": [["0 (Boot Button)", "0"], ["2 (Built-in LED)", "2"], ["4", "4"], ["5", "5"], ["12", "12"], ["13", "13"], ["14", "14"], ["15", "15"], ["16", "16"], ["17", "17"], ["18", "18"], ["19", "19"], ["21", "21"], ["22", "22"], ["23", "23"], ["25", "25"], ["26", "26"], ["27", "27"], ["32", "32"], ["33", "33"]]}, {"type": "input_value", "name": "us", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-servo_write_us_tooltip#", "helpUrl": ""}, {"type": "analog_write_pin", "message0": "#blk-analog_write_pin# %1 #blk-to# %2", "args0": [{"type": "field_dropdown", "name": "pin", "options": [["0 (Boot Button)", "0"], ["2 (Built-in LED)", "2"], ["4", "4"], ["5", "5"], ["12", "12"], ["13", "13"], ["14", "14"], ["15", "15"], ["16", "16"], ["17", "17"], ["18", "18"], ["19", "19"], ["21", "21"], ["22", "22"], ["23", "23"], ["25", "25"], ["26", "26"], ["27", "27"], ["32", "32"], ["33", "33"]]}, {"type": "input_value", "name": "value", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-analog_write_pin_tooltip#", "helpUrl": ""}, {"type": "digital_read_pin", "message0": "#blk-read_pin# %1", "args0": [{"type": "field_dropdown", "name": "pin", "options": [["0 (Boot Button)", "0"], ["2 (Built-in LED)", "2"], ["4", "4"], ["5", "5"], ["12", "12"], ["13", "13"], ["14", "14"], ["15", "15"], ["16", "16"], ["17", "17"], ["18", "18"], ["19", "19"], ["21", "21"], ["22", "22"], ["23", "23"], ["25", "25"], ["26", "26"], ["27", "27"], ["32", "32"], ["33", "33"]]}], "output": "Number", "colour": 230, "tooltip": "#blk-read_pin_tooltip#", "helpUrl": ""}, {"type": "touch_read_pin", "message0": "#blk-touch_read_pin# %1", "args0": [{"type": "field_dropdown", "name": "pin", "options": [["0", "0"], ["2", "2"], ["4", "4"], ["12", "12"], ["13", "13"], ["14", "14"], ["15", "15"], ["27", "27"], ["32", "32"], ["33", "33"]]}], "output": "Number", "colour": 230, "tooltip": "#blk-touch_read_pin_tooltip#", "helpUrl": ""}, {"type": "set_analog_write_freq", "message0": "#blk-set_analog_write_freq# %1 #blk-to# %2 #blk-hz#", "args0": [{"type": "field_dropdown", "name": "pin", "options": [["0 (Boot Button)", "0"], ["2 (Built-in LED)", "2"], ["4", "4"], ["5", "5"], ["12", "12"], ["13", "13"], ["14", "14"], ["15", "15"], ["16", "16"], ["17", "17"], ["18", "18"], ["19", "19"], ["21", "21"], ["22", "22"], ["23", "23"], ["25", "25"], ["26", "26"], ["27", "27"], ["32", "32"], ["33", "33"]]}, {"type": "input_value", "name": "frequency", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-set_analog_write_freq_tooltip#", "helpUrl": ""}, {"type": "servo_write_deg", "message0": "#blk-servo_write# %1 #blk-to# %2 #blk-deg#", "args0": [{"type": "field_dropdown", "name": "pin", "options": [["0 (Boot Button)", "0"], ["2 (Built-in LED)", "2"], ["4", "4"], ["5", "5"], ["12", "12"], ["13", "13"], ["14", "14"], ["15", "15"], ["16", "16"], ["17", "17"], ["18", "18"], ["19", "19"], ["21", "21"], ["22", "22"], ["23", "23"], ["25", "25"], ["26", "26"], ["27", "27"], ["32", "32"], ["33", "33"]]}, {"type": "input_value", "name": "deg", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-servo_write_deg_tooltip#", "helpUrl": ""}, {"type": "digital_write_pin", "message0": "#blk-write_pin# %1 #blk-to# %2", "args0": [{"type": "field_dropdown", "name": "pin", "options": [["0 (Boot Button)", "0"], ["2 (Built-in LED)", "2"], ["4", "4"], ["5", "5"], ["12", "12"], ["13", "13"], ["14", "14"], ["15", "15"], ["16", "16"], ["17", "17"], ["18", "18"], ["19", "19"], ["21", "21"], ["22", "22"], ["23", "23"], ["25", "25"], ["26", "26"], ["27", "27"], ["32", "32"], ["33", "33"]]}, {"type": "input_value", "name": "value", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-write_pin_tooltip#", "helpUrl": ""}, {"type": "non_block_init", "message0": "#blk-non_block_init#", "args0": [], "previousStatement": null, "nextStatement": null, "colour": 160, "tooltip": "#blk-non_block_init_tooltip#", "helpUrl": ""}, {"type": "non_block_read", "message0": "#blk-non_block_read# %1 #blk-characters#", "args0": [{"type": "input_value", "name": "size", "check": "Number"}], "output": "String", "colour": 160, "tooltip": "#blk-non_block_read_tooltip#", "helpUrl": ""}, {"type": "non_block_readline", "message0": "#blk-non_block_readline#", "args0": [], "output": "String", "colour": 160, "tooltip": "#blk-non_block_readline_tooltip#", "helpUrl": ""}, {"type": "bme280_init", "message0": "#blk-bme280_init# %1 #blk-with_address# %2", "args0": [{"type": "field_dropdown", "name": "id", "options": [["I2C0", "i2c0"], ["I2C1", "i2c1"], ["Soft I2C0", "softI2c0"], ["Soft I2C1", "softI2c1"]]}, {"type": "field_input", "name": "addr", "text": "118"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-bme280_init_tooltip#", "helpUrl": ""}, {"type": "bme280_altitude", "message0": "#blk-bme280_altitude#", "args0": [], "output": "Number", "colour": 230, "tooltip": "#blk-bme280_altitude_tooltip#", "helpUrl": ""}, {"type": "bme280_pressure", "message0": "#blk-bme280_pressure#", "args0": [], "output": "Number", "colour": 230, "tooltip": "#blk-bme280_pressure_tooltip#", "helpUrl": ""}, {"type": "bme280_read", "message0": "#blk-bme280_read#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-bme280_read_tooltip#", "helpUrl": ""}, {"type": "bme280_temperature", "message0": "#blk-bme280_temperature#", "args0": [], "output": "Number", "colour": 230, "tooltip": "#blk-bme280_temperature_tooltip#", "helpUrl": ""}, {"type": "bme280_humidity", "message0": "#blk-bme280_humidity#", "args0": [], "output": "Number", "colour": 230, "tooltip": "#blk-bme280_humidity_tooltip#", "helpUrl": ""}, {"type": "encoder_get_position", "message0": "#blk-encoder_get_position#", "args0": [], "output": "Number", "colour": 230, "tooltip": "#blk-encoder_get_position_tooltip#", "helpUrl": ""}, {"type": "encoder_set_position", "message0": "#blk-encoder_set_position# %1", "args0": [{"type": "input_value", "name": "value"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-encoder_set_position_tooltip#", "helpUrl": ""}, {"type": "encoder_init", "message0": "#blk-encoder_init# %1 #blk-and# %2", "args0": [{"type": "field_dropdown", "name": "pin1", "options": [["4", "4"], ["5", "5"], ["12", "12"], ["13", "13"], ["14", "14"], ["15", "15"], ["16", "16"], ["17", "17"], ["18", "18"], ["19", "19"], ["21", "21"], ["22", "22"], ["23", "23"], ["25", "25"], ["26", "26"], ["27", "27"], ["32", "32"], ["33", "33"]]}, {"type": "field_dropdown", "name": "pin2", "options": [["4", "4"], ["5", "5"], ["12", "12"], ["13", "13"], ["14", "14"], ["15", "15"], ["16", "16"], ["17", "17"], ["18", "18"], ["19", "19"], ["21", "21"], ["22", "22"], ["23", "23"], ["25", "25"], ["26", "26"], ["27", "27"], ["32", "32"], ["33", "33"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-encoder_init_tooltip#", "helpUrl": ""}, {"type": "encoder_get_speed", "message0": "#blk-encoder_get_speed#", "args0": [], "output": "Number", "colour": 230, "tooltip": "#blk-encoder_get_speed_tooltip#", "helpUrl": ""}, {"type": "wlan_get_ip", "message0": "#blk-wlan_get_ip#", "args0": [], "output": "String", "colour": 65, "tooltip": "#blk-wlan_get_ip_tooltip#", "helpUrl": ""}, {"type": "start_as_ap", "message0": "#blk-start_as_ap# %1 #blk-with_password# %2", "args0": [{"type": "field_input", "name": "ssid", "text": "IoTy_Device"}, {"type": "field_input", "name": "password", "text": ""}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-start_as_ap_tooltip#", "helpUrl": ""}, {"type": "connect_to_configured_wifi", "message0": "#blk-connect_to_configured_wifi#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-connect_to_configured_wifi_tooltip#", "helpUrl": ""}, {"type": "connect_to_wifi", "message0": "#blk-connect_to_wifi# %1 #blk-with_password# %2", "args0": [{"type": "field_input", "name": "ssid", "text": "SSID"}, {"type": "field_input", "name": "password", "text": "password"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-connect_to_wifi_tooltip#", "helpUrl": ""}, {"type": "ez_timer_cb", "message0": "#blk-ez_timer_run_every# %1 #blk-seconds# #blk-with_starting_offset_of# %2 #blk-seconds# %3 %4", "args0": [{"type": "field_number", "name": "interval", "value": 1, "min": 0}, {"type": "field_number", "name": "offset", "value": 0}, {"type": "input_dummy"}, {"type": "input_statement", "name": "statements"}], "inputsInline": true, "nextStatement": null, "colour": 65, "tooltip": "#blk-ez_timer_cb_tooltip#", "helpUrl": ""}, {"type": "ez_timer_init", "message0": "#blk-ez_timer_init#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-ez_timer_init_tooltip#", "helpUrl": ""}, {"type": "ez_timer_set_timeout", "message0": "#blk-ez_timer_set_timeout# %1 #blk-seconds# %2 %3", "args0": [{"type": "field_number", "name": "timeout", "value": 1, "min": 0}, {"type": "input_dummy"}, {"type": "input_statement", "name": "statements"}], "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-ez_timer_set_timeout_tooltip#", "helpUrl": ""}, {"type": "ez_timer_update", "message0": "#blk-ez_timer_update#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-ez_timer_update_tooltip#", "helpUrl": ""}, {"type": "i2c_readfrom_bytes", "message0": "%1 #blk-i2c_readfrom_addr# %2 #blk-number_of_bytes# %3 #blk-and# %4", "args0": [{"type": "field_dropdown", "name": "id", "options": [["I2C0", "i2c0"], ["I2C1", "i2c1"], ["Soft I2C0", "softI2c0"], ["Soft I2C1", "softI2c1"]]}, {"type": "input_value", "name": "address", "check": "Number"}, {"type": "input_value", "name": "bytes", "check": "Number"}, {"type": "field_dropdown", "name": "stop", "options": [["send STOP", "STOP"], ["allow repeated", "REPEATED"]]}], "output": "Bytes", "colour": 330, "tooltip": "#blk-i2c_readfrom_bytes_tooltip#", "helpUrl": ""}, {"type": "i2c_readfrom", "message0": "%1 #blk-i2c_readfrom_addr# %2 #blk-of_format# %3 #blk-and# %4", "args0": [{"type": "field_dropdown", "name": "id", "options": [["I2C0", "i2c0"], ["I2C1", "i2c1"], ["Soft I2C0", "softI2c0"], ["Soft I2C1", "softI2c1"]]}, {"type": "input_value", "name": "address", "check": "Number"}, {"type": "field_dropdown", "name": "format", "options": [["Int8", "b"], ["UInt8", "B"], ["Int16LE", "h"], ["UInt16BE", ">H"], ["Int32BE", ">i"], ["UInt32BE", ">I"], ["Float32BE", ">f"], ["Float64BE", ">d"]]}, {"type": "field_dropdown", "name": "stop", "options": [["send STOP", "STOP"], ["allow repeated", "REPEATED"]]}], "output": "Number", "colour": 330, "tooltip": "", "helpUrl": ""}, {"type": "i2c_scan", "message0": "#blk-i2c_scan# %1", "args0": [{"type": "field_dropdown", "name": "id", "options": [["I2C0", "i2c0"], ["I2C1", "i2c1"], ["Soft I2C0", "softI2c0"], ["Soft I2C1", "softI2c1"]]}], "output": "Array", "colour": 330, "tooltip": "", "helpUrl": ""}, {"type": "i2c_init_with_pins", "message0": "#blk-i2c_init# %1 #blk-on_pins# SCL %2 SDA %3 #blk-freq# %4", "args0": [{"type": "field_dropdown", "name": "id", "options": [["I2C0", "i2c0"], ["I2C1", "i2c1"], ["Soft I2C0", "softI2c0"], ["Soft I2C1", "softI2c1"]]}, {"type": "field_number", "name": "scl", "value": "18"}, {"type": "field_number", "name": "sda", "value": "19"}, {"type": "field_number", "name": "freq", "value": "100000"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 330, "tooltip": "#blk-i2c_init_with_pins_tooltip#", "helpUrl": ""}, {"type": "i2c_writeto_mem", "message0": "%1 #blk-i2c_writeto_addr# %2 #blk-at_register# %3 #blk-with_value# %4 #blk-of_format# %5", "args0": [{"type": "field_dropdown", "name": "id", "options": [["I2C0", "i2c0"], ["I2C1", "i2c1"], ["Soft I2C0", "softI2c0"], ["Soft I2C1", "softI2c1"]]}, {"type": "input_value", "name": "address", "check": "Number"}, {"type": "input_value", "name": "register", "check": "Number"}, {"type": "input_value", "name": "value", "check": "Number"}, {"type": "field_dropdown", "name": "format", "options": [["Int8", "b"], ["UInt8", "B"], ["Int16LE", "h"], ["UInt16BE", ">H"], ["Int32BE", ">i"], ["UInt32BE", ">I"], ["Float32BE", ">f"], ["Float64BE", ">d"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 330, "tooltip": "", "helpUrl": ""}, {"type": "i2c_readfrom_mem", "message0": "%1 #blk-i2c_readfrom_addr# %2 #blk-at_register# %3 #blk-of_format# %4", "args0": [{"type": "field_dropdown", "name": "id", "options": [["I2C0", "i2c0"], ["I2C1", "i2c1"], ["Soft I2C0", "softI2c0"], ["Soft I2C1", "softI2c1"]]}, {"type": "input_value", "name": "address", "check": "Number"}, {"type": "input_value", "name": "register", "check": "Number"}, {"type": "field_dropdown", "name": "format", "options": [["Int8", "b"], ["UInt8", "B"], ["Int16LE", "h"], ["UInt16BE", ">H"], ["Int32BE", ">i"], ["UInt32BE", ">I"], ["Float32BE", ">f"], ["Float64BE", ">d"]]}], "output": "Number", "colour": 330, "tooltip": "", "helpUrl": ""}, {"type": "i2c_init", "message0": "#blk-i2c_init# %1 #blk-freq# %2", "args0": [{"type": "field_dropdown", "name": "id", "options": [["I2C0 on pins 18 (scl), 19\u00a0(sda)", "0"], ["I2C1 on pins 25 (scl), 26\u00a0(sda)", "1"]]}, {"type": "field_number", "name": "freq", "value": "100000"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 330, "tooltip": "#blk-i2c_init_tooltip#", "helpUrl": ""}, {"type": "i2c_writeto", "message0": "%1 #blk-i2c_writeto_addr# %2 #blk-with_value# %3 #blk-of_format# %4 #blk-and# %5", "args0": [{"type": "field_dropdown", "name": "id", "options": [["I2C0", "i2c0"], ["I2C1", "i2c1"], ["Soft I2C0", "softI2c0"], ["Soft I2C1", "softI2c1"]]}, {"type": "input_value", "name": "address", "check": "Number"}, {"type": "input_value", "name": "value", "check": "Number"}, {"type": "field_dropdown", "name": "format", "options": [["Int8", "b"], ["UInt8", "B"], ["Int16LE", "h"], ["UInt16BE", ">H"], ["Int32BE", ">i"], ["UInt32BE", ">I"], ["Float32BE", ">f"], ["Float64BE", ">d"]]}, {"type": "field_dropdown", "name": "stop", "options": [["send STOP", "STOP"], ["allow repeated", "REPEATED"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 330, "tooltip": "", "helpUrl": ""}, {"type": "huskylens_results", "message0": "#blk-huskylens_results#", "args0": [], "output": "Array", "colour": 230, "tooltip": "#blk-huskylens_results_tooltip#", "helpUrl": ""}, {"type": "huskylens_learn", "message0": "#blk-huskylens_learn# %1", "args0": [{"type": "input_value", "name": "ID", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-huskylens_learn_tooltip#", "helpUrl": ""}, {"type": "huskylens_change_mode", "message0": "#blk-huskylens_change_mode# %1", "args0": [{"type": "field_dropdown", "name": "mode", "options": [["Object Tracking", "OBJECT_TRACKING"], ["Face Recognition", "FACE_RECOGNITION"], ["Object Recognition", "OBJECT_RECOGNITION"], ["Line Tracking", "LINE_TRACKING"], ["Color Recognition", "COLOR_RECOGNITION"], ["Tag Recognition", "TAG_RECOGNITION"], ["Object Classification", "OBJECT_CLASSIFICATION"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-huskylens_change_mode_tooltip#", "helpUrl": ""}, {"type": "huskylens_idInResults", "message0": "#blk-huskylens_idInResults# %1", "args0": [{"type": "input_value", "name": "ID", "check": "Number"}], "inputsInline": true, "output": "Boolean", "colour": 230, "tooltip": "#blk-huskylens_idInResults_tooltip#", "helpUrl": ""}, {"type": "huskylens_init_i2c", "message0": "#blk-huskylens_init_i2c# %1 #blk-with_address# %2", "args0": [{"type": "field_dropdown", "name": "id", "options": [["I2C0", "i2c0"], ["I2C1", "i2c1"], ["Soft I2C0", "softI2c0"], ["Soft I2C1", "softI2c1"]]}, {"type": "field_input", "name": "addr", "text": "50"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-huskylens_init_i2c_tooltip#", "helpUrl": ""}, {"type": "huskylens_closestBlockToCenter", "message0": "#blk-huskylens_get# %1 #blk-of_block_closest_to_center_of_screen_from_results#", "args0": [{"type": "field_dropdown", "name": "type", "options": [["Full result (as dictionary)", "ALL"], ["ID", "ID"], ["X center", "x"], ["Y center", "y"], ["Width", "width"], ["Height", "height"]]}], "output": null, "colour": 230, "tooltip": "#blk-huskylens_closestBlockToCenter_tooltip#", "helpUrl": ""}, {"type": "huskylens_request", "message0": "#blk-huskylens_request# %1", "args0": [{"type": "field_dropdown", "name": "type", "options": [["All", "requestAll"], ["Blocks Only", "blocks"], ["Arrows Only", "arrows"], ["Learned Only", "learned"], ["Learned Blocks Only", "learnedBlocks"], ["Learned Arrows Only", "learnedArrows"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-huskylens_request_tooltip#", "helpUrl": ""}, {"type": "huskylens_saveImage", "message0": "#blk-huskylens_saveImage# %1 #blk-and_save_to_sdcard#", "args0": [{"type": "field_dropdown", "name": "type", "options": [["Photo", "Picture"], ["Screenshot", "Screenshot"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-huskylens_saveImage_tooltip#", "helpUrl": ""}, {"type": "huskylens_get", "message0": "#blk-huskylens_get# %1", "args0": [{"type": "field_dropdown", "name": "type", "options": [["Count of all objects on screen", "count"], ["Number of learned objects", "learnedObjCount"], ["Frame number", "frameNumber"]]}], "output": "Number", "colour": 230, "tooltip": "#blk-huskylens_get_tooltip#", "helpUrl": ""}, {"type": "huskylens_saveLoadModel", "message0": "#blk-huskylens# %1 #blk-learned_models_on_slot# %2 #blk-of_sdcard#", "args0": [{"type": "field_dropdown", "name": "type", "options": [["Save", "save"], ["Load", "load"]]}, {"type": "input_value", "name": "slot", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-huskylens_saveLoadModel_tooltip#", "helpUrl": ""}, {"type": "huskylens_init_uart", "message0": "#blk-huskylens_init_uart# %1", "args0": [{"type": "field_dropdown", "name": "uart", "options": [["UART1", "1"], ["UART2", "2"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-huskylens_init_uart_tooltip#", "helpUrl": ""}, {"type": "huskylens_customText", "message0": "#blk-huskylens_customText# %1 #blk-at_position_x# %2 #blk-and_y# %3", "args0": [{"type": "input_value", "name": "text", "check": "String"}, {"type": "input_value", "name": "x", "check": "Number"}, {"type": "input_value", "name": "y", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-huskylens_customText_tooltip#", "helpUrl": ""}, {"type": "huskylens_clearText", "message0": "#blk-huskylens_clearText#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-huskylens_clearText_tooltip#", "helpUrl": ""}, {"type": "huskylens_requestByID", "message0": "#blk-huskylens_request# %1 #blk-and_ID# %2", "args0": [{"type": "field_dropdown", "name": "type", "options": [["Object", "getObjectByID"], ["Block", "getBlockByID"], ["Arrow", "getArrowByID"]]}, {"type": "input_value", "name": "ID", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-huskylens_requestByID_tooltip#", "helpUrl": ""}, {"type": "huskylens_forget", "message0": "#blk-huskylens_forget#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-huskylens_forget_tooltip#", "helpUrl": ""}, {"type": "huskylens_closestArrowToCenter", "message0": "#blk-huskylens_get# %1 #blk-of_arrow_closest_to_center_of_screen_from_results#", "args0": [{"type": "field_dropdown", "name": "type", "options": [["Full result (as dictionary)", "ALL"], ["ID", "ID"], ["X start", "xTail"], ["Y start", "yTail"], ["X end", "xHead"], ["Y end", "yHead"]]}], "output": null, "colour": 230, "tooltip": "#blk-huskylens_closestArrowToCenter_tooltip#", "helpUrl": ""}, {"type": "ucsv_close", "message0": "ucsv: #blk-close# %1", "args0": [{"type": "field_variable", "name": "variable", "variable": "csv1"}], "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-ucsv_close_tooltip#", "helpUrl": ""}, {"type": "ucsv_writerow", "message0": "ucsv: #blk-write_to# %1 #blk-with# %2", "args0": [{"type": "field_variable", "name": "variable", "variable": "csv1"}, {"type": "input_value", "name": "value", "check": "Array"}], "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-ucsv_writerow_tooltip#", "helpUrl": ""}, {"type": "ucsv_flush", "message0": "ucsv: #blk-flush# %1", "args0": [{"type": "field_variable", "name": "variable", "variable": "csv1"}], "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-ucsv_flush_tooltip#", "helpUrl": ""}, {"type": "ucsv_writer", "message0": "ucsv: #blk-set# %1 #blk-to_open# %2 #blk-for_writing# #blk-with_mode# %3 ", "args0": [{"type": "field_variable", "name": "variable", "variable": "csv1"}, {"type": "input_value", "name": "filename", "check": "String"}, {"type": "field_dropdown", "name": "mode", "options": [["write", "w"], ["append", "a"]]}], "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-ucsv_writer_tooltip#", "helpUrl": ""}, {"type": "ucsv_reader", "message0": "ucsv: #blk-set# %1 #blk-to_open# %2 #blk-for_reading#", "args0": [{"type": "field_variable", "name": "variable", "variable": "csv1"}, {"type": "input_value", "name": "filename", "check": "String"}], "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-ucsv_reader_tooltip#", "helpUrl": ""}, {"type": "ucsv_readrow", "message0": "ucsv: #blk-read_one_row_from# %1", "args0": [{"type": "field_variable", "name": "variable", "variable": "csv1"}], "output": "Array", "colour": 230, "tooltip": "#blk-ucsv_readrow_tooltip#", "helpUrl": ""}, {"type": "gps_init", "message0": "#blk-gps_init# %1", "args0": [{"type": "field_dropdown", "name": "uart", "options": [["UART1", "1"], ["UART2", "2"]]}], "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-gps_init_tooltip#", "helpUrl": ""}, {"type": "gps_lng", "message0": "#blk-gps_lng_as# %1", "args0": [{"type": "field_dropdown", "name": "type", "options": [["Decimal Degrees", "dd"], ["Degrees, Decimal Minutes", "ddm"]]}], "output": ["Number", "Array"], "colour": 230, "tooltip": "#blk-gps_lng_tooltip#", "helpUrl": ""}, {"type": "gps_time", "message0": "#blk-gps_time#", "args0": [], "output": "Array", "colour": 230, "tooltip": "#blk-gps_time_tooltip#", "helpUrl": ""}, {"type": "gps_lat", "message0": "#blk-gps_lat_as# %1", "args0": [{"type": "field_dropdown", "name": "type", "options": [["Decimal Degrees", "dd"], ["Degrees, Decimal Minutes", "ddm"]]}], "output": ["Number", "Array"], "colour": 230, "tooltip": "#blk-gps_lat_tooltip#", "helpUrl": ""}, {"type": "gps_cog", "message0": "#blk-gps_cog#", "args0": [], "output": "Number", "colour": 230, "tooltip": "#blk-gps_cog_tooltip#", "helpUrl": ""}, {"type": "gps_update", "message0": "#blk-gps_update#", "args0": [], "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-gps_update_tooltip#", "helpUrl": ""}, {"type": "gps_alt", "message0": "#blk-gps_alt#", "args0": [], "output": "Number", "colour": 230, "tooltip": "#blk-gps_alt_tooltip#", "helpUrl": ""}, {"type": "gps_datetime", "message0": "#blk-gps_datetime#", "args0": [], "output": "Array", "colour": 230, "tooltip": "#blk-gps_datetime_tooltip#", "helpUrl": ""}, {"type": "gps_date", "message0": "#blk-gps_date#", "args0": [], "output": "Array", "colour": 230, "tooltip": "#blk-gps_date_tooltip#", "helpUrl": ""}, {"type": "gps_sog", "message0": "#blk-gps_sog#", "args0": [], "output": "Number", "colour": 230, "tooltip": "#blk-gps_sog_tooltip#", "helpUrl": ""}, {"type": "spi_read", "message0": "#blk-read_from# %1 #blk-of_format# %2", "args0": [{"type": "field_dropdown", "name": "id", "options": [["SPI1", "spi1"], ["SPI2", "spi2"], ["Soft SPI1", "softSpi1"], ["Soft SPI2", "softSpi2"]]}, {"type": "field_dropdown", "name": "format", "options": [["Int8", "b"], ["UInt8", "B"], ["Int16LE", "h"], ["UInt16BE", ">H"], ["Int32BE", ">i"], ["UInt32BE", ">I"], ["Float32BE", ">f"], ["Float64BE", ">d"]]}], "output": "Number", "colour": 330, "tooltip": "#blk-spi_read_tooltip#", "helpUrl": ""}, {"type": "spi_init", "message0": "#blk-init# %1 #blk-at_baudrate# %2 #blk-with_sck# %3 #blk-mosi# %4 #blk-and_miso# %5", "args0": [{"type": "field_dropdown", "name": "id", "options": [["SPI1", "spi1"], ["SPI2", "spi2"], ["Soft SPI1", "softSpi1"], ["Soft SPI2", "softSpi2"]]}, {"type": "field_input", "name": "baudrate", "text": "1000000"}, {"type": "field_dropdown", "name": "sck", "options": [["4", "4"], ["5", "5"], ["12", "12"], ["13", "13"], ["14", "14"], ["15", "15"], ["16", "16"], ["17", "17"], ["18", "18"], ["19", "19"], ["21", "21"], ["22", "22"], ["23", "23"], ["25", "25"], ["26", "26"], ["27", "27"], ["32", "32"], ["33", "33"]]}, {"type": "field_dropdown", "name": "mosi", "options": [["4", "4"], ["5", "5"], ["12", "12"], ["13", "13"], ["14", "14"], ["15", "15"], ["16", "16"], ["17", "17"], ["18", "18"], ["19", "19"], ["21", "21"], ["22", "22"], ["23", "23"], ["25", "25"], ["26", "26"], ["27", "27"], ["32", "32"], ["33", "33"]]}, {"type": "field_dropdown", "name": "miso", "options": [["4", "4"], ["5", "5"], ["12", "12"], ["13", "13"], ["14", "14"], ["15", "15"], ["16", "16"], ["17", "17"], ["18", "18"], ["19", "19"], ["21", "21"], ["22", "22"], ["23", "23"], ["25", "25"], ["26", "26"], ["27", "27"], ["32", "32"], ["33", "33"], ["34", "34"], ["35", "35"], ["36", "36"], ["39", "39"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 330, "tooltip": "#blk-spi_init_tooltip#", "helpUrl": ""}, {"type": "spi_write", "message0": "#blk-to# %1 #blk-write# %2 #blk-of_format# %3", "args0": [{"type": "field_dropdown", "name": "id", "options": [["SPI1", "spi1"], ["SPI2", "spi2"], ["Soft SPI1", "softSpi1"], ["Soft SPI2", "softSpi2"]]}, {"type": "input_value", "name": "value", "check": "Number"}, {"type": "field_dropdown", "name": "format", "options": [["Int8", "b"], ["UInt8", "B"], ["Int16LE", "h"], ["UInt16BE", ">H"], ["Int32BE", ">i"], ["UInt32BE", ">I"], ["Float32BE", ">f"], ["Float64BE", ">d"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 330, "tooltip": "#blk-spi_write_tooltip#", "helpUrl": ""}, {"type": "ds3231_init", "message0": "#blk-ds3231_init# %1 #blk-with_address# %2", "args0": [{"type": "field_dropdown", "name": "id", "options": [["I2C0", "i2c0"], ["I2C1", "i2c1"], ["Soft I2C0", "softI2c0"], ["Soft I2C1", "softI2c1"]]}, {"type": "field_input", "name": "addr", "text": "104"}], "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-ds3231_init_tooltip#", "helpUrl": ""}, {"type": "ds3231_date_time_get", "message0": "#blk-ds3231_date_time_get#", "args0": [], "output": "Array", "colour": 65, "tooltip": "#blk-ds3231_date_time_get_tooltip#", "helpUrl": ""}, {"type": "ds3231_date_time_set", "message0": "#blk-ds3231_date_time_set# %1", "args0": [{"type": "input_value", "name": "dateTime", "check": "Array"}], "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-ds3231_date_time_set_tooltip#", "helpUrl": ""}, {"type": "date_time_set", "message0": "#blk-date_time_set# %1", "args0": [{"type": "input_value", "name": "dateTime", "check": "Array"}], "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-date_time_set_tooltip#", "helpUrl": ""}, {"type": "date_time_set_ntp", "message0": "#blk-date_time_set_ntp# %1", "args0": [{"type": "input_value", "name": "tz", "check": "Number"}], "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-date_time_set_ntp_tooltip#", "helpUrl": ""}, {"type": "date_time_get", "message0": "#blk-date_time_get#", "args0": [], "output": "Array", "colour": 65, "tooltip": "#blk-date_time_get_tooltip#", "helpUrl": ""}, {"type": "time", "message0": "#blk-time# %1", "args0": [{"type": "field_dropdown", "name": "units", "options": [["#blk-seconds#", "SECONDS"], ["#blk-milliseconds#", "MILLI"], ["#blk-microseconds#", "MICRO"]]}], "output": "Number", "colour": 65, "tooltip": "#blk-time_tooltip#", "helpUrl": ""}, {"type": "sleep", "message0": "#blk-sleep_for# %1 %2", "args0": [{"type": "input_value", "name": "duration", "check": "Number"}, {"type": "field_dropdown", "name": "units", "options": [["#blk-seconds#", "SECONDS"], ["#blk-milliseconds#", "MILLISECONDS"], ["#blk-microseconds#", "MICROSECONDS"]]}], "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-sleep_for_tooltip#", "helpUrl": ""}, {"type": "try_except", "message0": "#blk-try# %1 #blk-except# %2", "args0": [{"type": "input_statement", "name": "try"}, {"type": "input_statement", "name": "except"}], "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-try_except_tooltip#", "helpUrl": ""}, {"type": "neopixel_fill", "message0": "#blk-neopixel_at_pin# %1 #blk-set_all_pixels# #blk-to_color# %2", "args0": [{"type": "field_dropdown", "name": "pin", "options": [["0 (Boot Button)", "0"], ["2 (Built-in LED)", "2"], ["4", "4"], ["5", "5"], ["12", "12"], ["13", "13"], ["14", "14"], ["15", "15"], ["16", "16"], ["17", "17"], ["18", "18"], ["19", "19"], ["21", "21"], ["22", "22"], ["23", "23"], ["25", "25"], ["26", "26"], ["27", "27"], ["32", "32"], ["33", "33"]]}, {"type": "input_value", "name": "color", "check": "Array"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "", "helpUrl": ""}, {"type": "neopixel_rgb", "message0": "#blk-red# %1 #blk-green# %2 #blk-blue# %3", "args0": [{"type": "input_value", "name": "red", "check": "Number"}, {"type": "input_value", "name": "green", "check": "Number"}, {"type": "input_value", "name": "blue", "check": "Number"}], "output": "Array", "inputsInline": true, "colour": 230, "tooltip": "", "helpUrl": ""}, {"type": "neopixel_rgbw", "message0": "#blk-red# %1 #blk-green# %2 #blk-blue# %3 #blk-white# %4", "args0": [{"type": "input_value", "name": "red", "check": "Number"}, {"type": "input_value", "name": "green", "check": "Number"}, {"type": "input_value", "name": "blue", "check": "Number"}, {"type": "input_value", "name": "white", "check": "Number"}], "output": "Array", "inputsInline": true, "colour": 230, "tooltip": "", "helpUrl": ""}, {"type": "neopixel_write", "message0": "#blk-write_neopixel# %1", "args0": [{"type": "field_dropdown", "name": "pin", "options": [["0 (Boot Button)", "0"], ["2 (Built-in LED)", "2"], ["4", "4"], ["5", "5"], ["12", "12"], ["13", "13"], ["14", "14"], ["15", "15"], ["16", "16"], ["17", "17"], ["18", "18"], ["19", "19"], ["21", "21"], ["22", "22"], ["23", "23"], ["25", "25"], ["26", "26"], ["27", "27"], ["32", "32"], ["33", "33"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "", "helpUrl": ""}, {"type": "neopixel_color", "message0": "%1", "args0": [{"type": "field_dropdown", "name": "color", "options": [["red", "(255, 0, 0)"], ["orange", "(255, 165, 0)"], ["yellow", "(255, 255, 0)"], ["green", "(0, 255, 0)"], ["blue", "(0, 0, 255)"], ["indigo", "(75, 0, 130)"], ["violet", "(138, 43, 226)"], ["purple", "(255, 0, 255)"], ["white", "(255, 255, 255)"], ["black (off)", "(0, 0, 0)"]]}], "output": "Array", "inputsInline": true, "colour": 230, "tooltip": "", "helpUrl": ""}, {"type": "neopixel_init", "message0": "#blk-neopixel_init# %1 #blk-with# %2 #blk-led_as# %3", "args0": [{"type": "field_dropdown", "name": "pin", "options": [["0 (Boot Button)", "0"], ["2 (Built-in LED)", "2"], ["4", "4"], ["5", "5"], ["12", "12"], ["13", "13"], ["14", "14"], ["15", "15"], ["16", "16"], ["17", "17"], ["18", "18"], ["19", "19"], ["21", "21"], ["22", "22"], ["23", "23"], ["25", "25"], ["26", "26"], ["27", "27"], ["32", "32"], ["33", "33"]]}, {"type": "input_value", "name": "pixels", "check": "Number"}, {"type": "field_dropdown", "name": "format", "options": [["RGB", "3"], ["RGB+W", "4"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "", "helpUrl": ""}, {"type": "neopixel_set", "message0": "#blk-neopixel_at_pin# %1 #blk-set_pixel# %2 #blk-to_color# %3", "args0": [{"type": "field_dropdown", "name": "pin", "options": [["0 (Boot Button)", "0"], ["2 (Built-in LED)", "2"], ["4", "4"], ["5", "5"], ["12", "12"], ["13", "13"], ["14", "14"], ["15", "15"], ["16", "16"], ["17", "17"], ["18", "18"], ["19", "19"], ["21", "21"], ["22", "22"], ["23", "23"], ["25", "25"], ["26", "26"], ["27", "27"], ["32", "32"], ["33", "33"]]}, {"type": "input_value", "name": "pixel", "check": "Number"}, {"type": "input_value", "name": "color", "check": "Array"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "", "helpUrl": ""}, {"type": "neopixel_hsv", "message0": "#blk-hue# %1 #blk-saturation# %2 #blk-value# %3", "args0": [{"type": "input_value", "name": "hue", "check": "Number"}, {"type": "input_value", "name": "saturation", "check": "Number"}, {"type": "input_value", "name": "value", "check": "Number"}], "output": "Array", "inputsInline": true, "colour": 230, "tooltip": "", "helpUrl": ""}] \ No newline at end of file +[{"type": "hid_ccd_advertising", "message0": "%1 #blk-hid_ccd_advertising#", "args0": [{"type": "field_dropdown", "name": "type", "options": [["start", "START"], ["stop", "STOP"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-hid_ccd_advertising_tooltip#", "helpUrl": ""}, {"type": "hid_mouse_send_rel", "message0": "#blk-hid_mouse_send_rel# %1 #blk-y# %2 #blk-and_wheel# %3", "args0": [{"type": "input_value", "name": "x", "check": "Number"}, {"type": "input_value", "name": "y", "check": "Number"}, {"type": "input_value", "name": "w", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-hid_mouse_send_rel_tooltip#", "helpUrl": ""}, {"type": "hid_ccd_send_key_select", "message0": "#blk-hid_ccd_send_key# %1", "args0": [{"type": "field_dropdown", "name": "key", "options": [["Brightness Increase", "0x6f"], ["Brightness Decrease", "0x70"], ["Record", "0xb2"], ["Rewind", "0xb4"], ["Next Track", "0xb5"], ["Prev Track", "0xb6"], ["Stop", "0xb7"], ["Eject", "0xb8"], ["Play/Pause", "0xcd"], ["Mute", "0xe2"], ["Volume Down", "0xea"], ["Volume Up", "0xe9"], ["Calculator", "0x192"], ["Web Browser", "0x196"], ["Terminal Lock", "0x19e"], ["Undo", "0x21a"], ["Copy", "0x21b"], ["Cut", "0x21c"], ["Paste", "0x21d"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-hid_ccd_send_key_select_tooltip#", "helpUrl": ""}, {"type": "hid_keyboard_send_key", "message0": "#blk-hid_keyboard_send_key# %1 #blk-with_modifier# %2 %3 %4 %5 %6 %7 %8 %9", "args0": [{"type": "field_dropdown", "name": "key", "options": [["Enter", "0x28"], ["Esc", "0x29"], ["Backspace", "0x2a"], ["Tab", "0x2b"], ["Caps Lock", "0x39"], ["F1", "0x3a"], ["F2", "0x3b"], ["F3", "0x3c"], ["F4", "0x3d"], ["F5", "0x3e"], ["F6", "0x3f"], ["F7", "0x40"], ["F8", "0x41"], ["F9", "0x42"], ["F10", "0x43"], ["F11", "0x44"], ["F12", "0x45"], ["Print Screen", "0x46"], ["Scroll Lock", "0x47"], ["Pause", "0x48"], ["Insert", "0x49"], ["Home", "0x4a"], ["Page Up", "0x4b"], ["Delete", "0x4c"], ["End", "0x4d"], ["Page Down", "0x4e"], ["Right Arrow", "0x4f"], ["Left Arrow", "0x50"], ["Down Arrow", "0x51"], ["Up Arrow", "0x52"], ["Num Lock", "0x53"], ["Keypad /", "0x54"], ["Keypad *", "0x55"], ["Keypad -", "0x56"], ["Keypad +", "0x57"], ["Keypad Enter", "0x58"], ["Keypad 1", "0x59"], ["Keypad 2", "0x5a"], ["Keypad 3", "0x5b"], ["Keypad 4", "0x5c"], ["Keypad 5", "0x5d"], ["Keypad 6", "0x5e"], ["Keypad 7", "0x5f"], ["Keypad 8", "0x60"], ["Keypad 9", "0x61"], ["Keypad 0", "0x62"], ["Keypad .", "0x63"]]}, {"type": "field_dropdown", "name": "lctrl", "options": [["-", "0"], ["L CTRL", "1"]]}, {"type": "field_dropdown", "name": "lshift", "options": [["-", "0"], ["L SHIFT", "1"]]}, {"type": "field_dropdown", "name": "lalt", "options": [["-", "0"], ["L ALT", "1"]]}, {"type": "field_dropdown", "name": "lmeta", "options": [["-", "0"], ["L META", "1"]]}, {"type": "field_dropdown", "name": "rctrl", "options": [["-", "0"], ["R CTRL", "1"]]}, {"type": "field_dropdown", "name": "rshift", "options": [["-", "0"], ["R SHIFT", "1"]]}, {"type": "field_dropdown", "name": "ralt", "options": [["-", "0"], ["R ALT", "1"]]}, {"type": "field_dropdown", "name": "rmeta", "options": [["-", "0"], ["R META", "1"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-hid_keyboard_send_key_tooltip#", "helpUrl": ""}, {"type": "hid_ccd_init", "message0": "#blk-hid_ccd_init# %1", "args0": [{"type": "input_value", "name": "name", "check": "String"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-hid_ccd_init_tooltip#", "helpUrl": ""}, {"type": "hid_keyboard_status", "message0": "#blk-hid_keyboard_status# %1", "args0": [{"type": "field_dropdown", "name": "type", "options": [["idle", "IDLE"], ["advertising", "ADVERTISING"], ["connected", "CONNECTED"], ["stopped", "STOPPED"]]}], "inputsInline": true, "output": "Boolean", "colour": 65, "tooltip": "#blk-hid_keyboard_status_tooltip#", "helpUrl": ""}, {"type": "hid_ccd_send_key", "message0": "#blk-hid_ccd_send_key# %1", "args0": [{"type": "input_value", "name": "key", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-hid_ccd_send_key_tooltip#", "helpUrl": ""}, {"type": "hid_joystick_status", "message0": "#blk-hid_joystick_status# %1", "args0": [{"type": "field_dropdown", "name": "type", "options": [["idle", "IDLE"], ["advertising", "ADVERTISING"], ["connected", "CONNECTED"], ["stopped", "STOPPED"]]}], "inputsInline": true, "output": "Boolean", "colour": 65, "tooltip": "#blk-hid_joystick_status_tooltip#", "helpUrl": ""}, {"type": "hid_mouse_advertising", "message0": "%1 #blk-hid_mouse_advertising#", "args0": [{"type": "field_dropdown", "name": "type", "options": [["start", "START"], ["stop", "STOP"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-hid_mouse_advertising_tooltip#", "helpUrl": ""}, {"type": "hid_keyboard_init", "message0": "#blk-hid_keyboard_init# %1", "args0": [{"type": "input_value", "name": "name", "check": "String"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-hid_keyboard_init_tooltip#", "helpUrl": ""}, {"type": "hid_joystick_send_axes", "message0": "#blk-hid_joystick_send_axes# %1 #blk-y# %2", "args0": [{"type": "input_value", "name": "x", "check": "Number"}, {"type": "input_value", "name": "y", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-hid_joystick_send_axes_tooltip#", "helpUrl": ""}, {"type": "hid_ccd_status", "message0": "#blk-hid_ccd_status# %1", "args0": [{"type": "field_dropdown", "name": "type", "options": [["idle", "IDLE"], ["advertising", "ADVERTISING"], ["connected", "CONNECTED"], ["stopped", "STOPPED"]]}], "inputsInline": true, "output": "Boolean", "colour": 65, "tooltip": "#blk-hid_ccd_status_tooltip#", "helpUrl": ""}, {"type": "hid_keyboard_send_string", "message0": "#blk-hid_keyboard_send_string# %1", "args0": [{"type": "input_value", "name": "value", "check": "String"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-hid_keyboard_send_string_tooltip#", "helpUrl": ""}, {"type": "hid_mouse_status", "message0": "#blk-hid_mouse_status# %1", "args0": [{"type": "field_dropdown", "name": "type", "options": [["idle", "IDLE"], ["advertising", "ADVERTISING"], ["connected", "CONNECTED"], ["stopped", "STOPPED"]]}], "inputsInline": true, "output": "Boolean", "colour": 65, "tooltip": "#blk-hid_mouse_status_tooltip#", "helpUrl": ""}, {"type": "hid_mouse_send_btns", "message0": "#blk-hid_mouse_send_btns# %1 %2 %3", "args0": [{"type": "field_dropdown", "name": "left", "options": [["L Up", "0"], ["L Down", "1"]]}, {"type": "field_dropdown", "name": "right", "options": [["R Up", "0"], ["R Down", "1"]]}, {"type": "field_dropdown", "name": "middle", "options": [["M Up", "0"], ["M Down", "1"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-hid_mouse_send_btns_tooltip#", "helpUrl": ""}, {"type": "hid_joystick_send_btns", "message0": "#blk-hid_joystick_send_btns# %1 %2 %3 %4 %5 %6 %7 %8", "args0": [{"type": "field_dropdown", "name": "b1", "options": [["B1 Up", "0"], ["B1 Down", "1"]]}, {"type": "field_dropdown", "name": "b2", "options": [["B2 Up", "0"], ["B2 Down", "1"]]}, {"type": "field_dropdown", "name": "b3", "options": [["B3 Up", "0"], ["B3 Down", "1"]]}, {"type": "field_dropdown", "name": "b4", "options": [["B4 Up", "0"], ["B4 Down", "1"]]}, {"type": "field_dropdown", "name": "b5", "options": [["B5 Up", "0"], ["B5 Down", "1"]]}, {"type": "field_dropdown", "name": "b6", "options": [["B6 Up", "0"], ["B6 Down", "1"]]}, {"type": "field_dropdown", "name": "b7", "options": [["B7 Up", "0"], ["B7 Down", "1"]]}, {"type": "field_dropdown", "name": "b8", "options": [["B8 Up", "0"], ["B8 Down", "1"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-hid_joystick_send_btns_tooltip#", "helpUrl": ""}, {"type": "hid_joystick_advertising", "message0": "%1 #blk-hid_joystick_advertising#", "args0": [{"type": "field_dropdown", "name": "type", "options": [["start", "START"], ["stop", "STOP"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-hid_joystick_advertising_tooltip#", "helpUrl": ""}, {"type": "hid_keyboard_advertising", "message0": "%1 #blk-hid_keyboard_advertising#", "args0": [{"type": "field_dropdown", "name": "type", "options": [["start", "START"], ["stop", "STOP"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-hid_keyboard_advertising_tooltip#", "helpUrl": ""}, {"type": "hid_joystick_init", "message0": "#blk-hid_joystick_init# %1", "args0": [{"type": "input_value", "name": "name", "check": "String"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-hid_joystick_init_tooltip#", "helpUrl": ""}, {"type": "hid_mouse_init", "message0": "#blk-hid_mouse_init# %1 #blk-and_type# %2", "args0": [{"type": "input_value", "name": "name", "check": "String"}, {"type": "field_dropdown", "name": "type", "options": [["relative", "rel"], ["absolute", "abs"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-hid_mouse_init_tooltip#", "helpUrl": ""}, {"type": "hid_mouse_send_abs", "message0": "#blk-hid_mouse_send_abs# %1 #blk-y# %2", "args0": [{"type": "input_value", "name": "x", "check": "Number"}, {"type": "input_value", "name": "y", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-hid_mouse_send_abs_tooltip#", "helpUrl": ""}, {"type": "vl53l1x_init", "message0": "#blk-vl53l1x_init# %1 #blk-with_address# %2", "args0": [{"type": "field_dropdown", "name": "id", "options": [["I2C0", "i2c0"], ["I2C1", "i2c1"], ["Soft I2C0", "softI2c0"], ["Soft I2C1", "softI2c1"]]}, {"type": "field_input", "name": "addr", "text": "41"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-vl53l1x_init_tooltip#", "helpUrl": ""}, {"type": "vl53l1x_read", "message0": "#blk-vl53l1x_read#", "args0": [], "output": "Number", "colour": 230, "tooltip": "#blk-vl53l1x_read_tooltip#", "helpUrl": ""}, {"type": "vl53l1x_set_distance_mode", "message0": "#blk-vl53l1x_set_distance_mode# %1", "args0": [{"type": "field_dropdown", "name": "mode", "options": [["Short", "short"], ["Long", "long"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-vl53l1x_set_distance_mode_tooltip#", "helpUrl": ""}, {"type": "tween_is_ended", "message0": "#blk-tween_is_ended# %1 #blk-is_ended_at_time# %2", "args0": [{"type": "input_value", "name": "id"}, {"type": "input_value", "name": "x", "check": "Number"}], "inputsInline": true, "output": "Boolean", "colour": 160, "tooltip": "#blk-tween_is_ended_tooltip#", "helpUrl": ""}, {"type": "tween_get", "message0": "#blk-tween_get# %1 #blk-at_time# %2", "args0": [{"type": "input_value", "name": "id"}, {"type": "input_value", "name": "x", "check": "Number"}], "inputsInline": true, "output": "Number", "colour": 160, "tooltip": "#blk-tween_get_tooltip#", "helpUrl": ""}, {"type": "tween_start", "message0": "#blk-tween_start# %1 #blk-type# %2 #blk-start_value# %3 #blk-end_value# %4 #blk-start_time# %5 %6 %7", "args0": [{"type": "input_value", "name": "id"}, {"type": "field_dropdown", "name": "type", "options": [["Linear", "LINEAR"], ["In Quad", "IN_QUAD"], ["Out Quad", "OUT_QUAD"], ["In Out Quad", "IN_OUT_QUAD"], ["In Cubic", "IN_CUBIC"], ["Out Cubic", "OUT_CUBIC"], ["In Out Cubic", "IN_OUT_CUBIC"], ["Out Elastic", "OUT_ELASTIC"], ["Out Bounce", "OUT_BOUNCE"]]}, {"type": "input_value", "name": "y0", "check": "Number"}, {"type": "input_value", "name": "y1", "check": "Number"}, {"type": "input_value", "name": "x0", "check": "Number"}, {"type": "field_dropdown", "name": "durationOrSpeedSelection", "options": [["Duration", "DURATION"], ["Speed", "SPEED"]]}, {"type": "input_value", "name": "durationOrSpeedValue", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 160, "tooltip": "#blk-tween_start_tooltip#", "helpUrl": ""}, {"type": "tween_remove", "message0": "#blk-tween_remove# %1", "args0": [{"type": "input_value", "name": "id"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 160, "tooltip": "#blk-tween_remove_tooltip#", "helpUrl": ""}, {"type": "apds9960_disable_gesture", "message0": "#blk-apds9960_disable_gesture#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-apds9960_disable_gesture_tooltip#", "helpUrl": ""}, {"type": "apds9960_disable_prox", "message0": "#blk-apds9960_disable_prox#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-apds9960_disable_prox_tooltip#", "helpUrl": ""}, {"type": "apds9960_get_gesture", "message0": "#blk-apds9960_get_gesture#", "args0": [], "output": "String", "colour": 230, "tooltip": "#blk-apds9960_get_gesture_tooltip#", "helpUrl": ""}, {"type": "apds9960_read_gesture", "message0": "#blk-apds9960_read_gesture#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-apds9960_read_gesture_tooltip#", "helpUrl": ""}, {"type": "apds9960_enable_prox", "message0": "#blk-apds9960_enable_prox# %1 #blk-and_led# %2", "args0": [{"type": "field_dropdown", "name": "gain", "options": [["1x", "GAIN_1"], ["2x", "GAIN_2"], ["4x", "GAIN_4"], ["8x", "GAIN_8"]]}, {"type": "field_dropdown", "name": "led", "options": [["100mA", "LED_100MA"], ["50mA", "LED_50MA"], ["25mA", "LED_25MA"], ["12mA", "LED_12MA"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-apds9960_enable_prox_tooltip#", "helpUrl": ""}, {"type": "apds9960_init", "message0": "#blk-apds9960_init# %1 #blk-with_address# %2", "args0": [{"type": "field_dropdown", "name": "id", "options": [["I2C0", "i2c0"], ["I2C1", "i2c1"], ["Soft I2C0", "softI2c0"], ["Soft I2C1", "softI2c1"]]}, {"type": "field_input", "name": "addr", "text": "57"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-apds9960_init_tooltip#", "helpUrl": ""}, {"type": "apds9960_read_prox", "message0": "#blk-apds9960_read_prox#", "args0": [], "output": "Number", "colour": 230, "tooltip": "#blk-apds9960_read_prox_tooltip#", "helpUrl": ""}, {"type": "apds9960_read_light", "message0": "#blk-apds9960_read_light# %1", "args0": [{"type": "field_dropdown", "name": "type", "options": [["Clear", "c"], ["Red", "r"], ["Green", "g"], ["Blue", "b"], ["All (List)", "all"]]}], "output": ["Number", "Array"], "colour": 230, "tooltip": "#blk-apds9960_read_light_tooltip#", "helpUrl": ""}, {"type": "apds9960_enable_light", "message0": "#blk-apds9960_enable_light# %1 #blk-and_speed# %2", "args0": [{"type": "field_dropdown", "name": "gain", "options": [["1x", "AGAIN_1"], ["4x", "AGAIN_4"], ["16x", "AGAIN_16"], ["64x", "AGAIN_64"]]}, {"type": "field_input", "name": "speed", "text": "219"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-apds9960_enable_light_tooltip#", "helpUrl": ""}, {"type": "apds9960_enable_gesture", "message0": "#blk-apds9960_enable_gesture# %1 #blk-and_led# %2", "args0": [{"type": "field_dropdown", "name": "gain", "options": [["1x", "GAIN_1"], ["2x", "GAIN_2"], ["4x", "GAIN_4"], ["8x", "GAIN_8"]]}, {"type": "field_dropdown", "name": "led", "options": [["100mA", "LED_100MA"], ["50mA", "LED_50MA"], ["25mA", "LED_25MA"], ["12mA", "LED_12MA"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-apds9960_enable_gesture_tooltip#", "helpUrl": ""}, {"type": "apds9960_disable_light", "message0": "#blk-apds9960_disable_light#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-apds9960_disable_light_tooltip#", "helpUrl": ""}, {"type": "dict_empty", "message0": "#blk-dict_empty#", "args0": [], "output": null, "inputsInline": true, "colour": 260, "tooltip": "#blk-dict_empty_tooltip#", "helpUrl": ""}, {"type": "dict_set", "message0": "#blk-set# %1 #blk-to# %2", "args0": [{"type": "input_value", "name": "variable"}, {"type": "input_value", "name": "value"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 260, "tooltip": "#blk-dict_set_tooltip#", "helpUrl": ""}, {"type": "sdcard_init", "message0": "#blk-sdcard_init# %1 #blk-cs# %2 #blk-sck# %3 #blk-mosi# %4 #blk-miso# %5 #blk-mount_point# %6", "args0": [{"type": "field_dropdown", "name": "slot", "options": [["0", "0"], ["1", "1"], ["2", "2"], ["3", "3"]]}, {"type": "field_dropdown", "name": "cs", "options": [["4", "4"], ["5", "5"], ["12", "12"], ["13", "13"], ["14", "14"], ["15", "15"], ["16", "16"], ["17", "17"], ["18", "18"], ["19", "19"], ["21", "21"], ["22", "22"], ["23", "23"], ["25", "25"], ["26", "26"], ["27", "27"], ["32", "32"], ["33", "33"]]}, {"type": "field_dropdown", "name": "sck", "options": [["4", "4"], ["5", "5"], ["12", "12"], ["13", "13"], ["14", "14"], ["15", "15"], ["16", "16"], ["17", "17"], ["18", "18"], ["19", "19"], ["21", "21"], ["22", "22"], ["23", "23"], ["25", "25"], ["26", "26"], ["27", "27"], ["32", "32"], ["33", "33"]]}, {"type": "field_dropdown", "name": "mosi", "options": [["4", "4"], ["5", "5"], ["12", "12"], ["13", "13"], ["14", "14"], ["15", "15"], ["16", "16"], ["17", "17"], ["18", "18"], ["19", "19"], ["21", "21"], ["22", "22"], ["23", "23"], ["25", "25"], ["26", "26"], ["27", "27"], ["32", "32"], ["33", "33"]]}, {"type": "field_dropdown", "name": "miso", "options": [["4", "4"], ["5", "5"], ["12", "12"], ["13", "13"], ["14", "14"], ["15", "15"], ["16", "16"], ["17", "17"], ["18", "18"], ["19", "19"], ["21", "21"], ["22", "22"], ["23", "23"], ["25", "25"], ["26", "26"], ["27", "27"], ["32", "32"], ["33", "33"], ["34", "34"], ["35", "35"], ["36", "36"], ["39", "39"]]}, {"type": "input_value", "name": "dirname", "check": "String"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-sdcard_init_tooltip#", "helpUrl": ""}, {"type": "sdcard_deinit", "message0": "#blk-sdcard_deinit# %1", "args0": [{"type": "input_value", "name": "dirname", "check": "String"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-sdcard_deinit_tooltip#", "helpUrl": ""}, {"type": "max30102_read_succeeded", "message0": "#blk-max30102_read_succeeded#", "args0": [], "output": "Boolean", "colour": 230, "tooltip": "#blk-max30102_read_succeeded_tooltip#", "helpUrl": ""}, {"type": "max30102_spo2", "message0": "#blk-max30102_spo2#", "args0": [], "output": "Number", "colour": 230, "tooltip": "#blk-max30102_spo2_tooltip#", "helpUrl": ""}, {"type": "max30102_bpm", "message0": "#blk-max30102_bpm#", "args0": [], "output": "Number", "colour": 230, "tooltip": "#blk-max30102_bpm_tooltip#", "helpUrl": ""}, {"type": "max30102_init", "message0": "#blk-max30102_init# %1 #blk-with_address# %2 #blk-red_pwr# %3 #blk-ir_pwr# %4", "args0": [{"type": "field_dropdown", "name": "id", "options": [["I2C0", "i2c0"], ["I2C1", "i2c1"], ["Soft I2C0", "softI2c0"], ["Soft I2C1", "softI2c1"]]}, {"type": "field_input", "name": "addr", "text": "87"}, {"type": "field_dropdown", "name": "red", "options": [["Lowest", "0x02"], ["Low", "0x1F"], ["Medium", "0x7F"], ["High", "0xFF"]]}, {"type": "field_dropdown", "name": "ir", "options": [["Lowest", "0x02"], ["Low", "0x1F"], ["Medium", "0x7F"], ["High", "0xFF"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-max30102_init_tooltip#", "helpUrl": ""}, {"type": "max30102_read_temperature", "message0": "#blk-max30102_read_temperature#", "args0": [], "output": "Number", "colour": 230, "tooltip": "#blk-max30102_read_temperature_tooltip#", "helpUrl": ""}, {"type": "max30102_beat", "message0": "#blk-max30102_beat#", "args0": [], "output": "Boolean", "colour": 230, "tooltip": "#blk-max30102_beat_tooltip#", "helpUrl": ""}, {"type": "max30102_read", "message0": "#blk-max30102_read#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-max30102_read_tooltip#", "helpUrl": ""}, {"type": "max30102_value", "message0": "#blk-max30102_value# %1", "args0": [{"type": "field_dropdown", "name": "led", "options": [["Red", "red"], ["IR", "ir"]]}], "output": "Number", "colour": 230, "tooltip": "#blk-max30102_value_tooltip#", "helpUrl": ""}, {"type": "mfrc522_card_present", "message0": "#blk-mfrc522_card_present#", "args0": [], "output": "Boolean", "colour": 230, "tooltip": "#blk-mfrc522_card_present_tooltip#", "helpUrl": ""}, {"type": "mfrc522_get_uid", "message0": "#blk-mfrc522_get_uid#", "args0": [], "output": "String", "colour": 230, "tooltip": "#blk-mfrc522_get_uid_tooltip#", "helpUrl": ""}, {"type": "mfrc522_init", "message0": "#blk-mfrc522_init# %1 #blk-with_rst# %2 #blk-and_cs# %3", "args0": [{"type": "field_dropdown", "name": "spi", "options": [["SPI1", "spi1"], ["SPI2", "spi2"], ["Soft SPI1", "softSpi1"], ["Soft SPI2", "softSpi2"]]}, {"type": "field_dropdown", "name": "rst", "options": [["4", "4"], ["5", "5"], ["12", "12"], ["13", "13"], ["14", "14"], ["15", "15"], ["16", "16"], ["17", "17"], ["18", "18"], ["19", "19"], ["21", "21"], ["22", "22"], ["23", "23"], ["25", "25"], ["26", "26"], ["27", "27"], ["32", "32"], ["33", "33"]]}, {"type": "field_dropdown", "name": "cs", "options": [["4", "4"], ["5", "5"], ["12", "12"], ["13", "13"], ["14", "14"], ["15", "15"], ["16", "16"], ["17", "17"], ["18", "18"], ["19", "19"], ["21", "21"], ["22", "22"], ["23", "23"], ["25", "25"], ["26", "26"], ["27", "27"], ["32", "32"], ["33", "33"]]}], "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-mfrc522_init_tooltip#", "helpUrl": ""}, {"type": "camera_set_quality", "message0": "#blk-camera_set_quality# %1", "args0": [{"type": "field_number", "name": "quality", "value": "10"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-camera_set_quality_tooltip#", "helpUrl": ""}, {"type": "camera_init", "message0": "#blk-camera_init# %1 #blk-and_framesize# %2 #blk-and_clock# %3", "args0": [{"type": "field_dropdown", "name": "format", "options": [["JPEG", "JPEG"], ["RGB565", "RGB565"], ["YUV422", "YUV422"], ["GRAYSCALE", "GRAYSCALE"]]}, {"type": "field_dropdown", "name": "framesize", "options": [["96X96", "FRAME_96X96"], ["QQVGA (160x120)", "FRAME_QQVGA"], ["QCIF (176x144)", "FRAME_QCIF"], ["HQVGA (240x176)", "FRAME_HQVGA"], ["240X240", "FRAME_240X240"], ["QVGA (320x240)", "FRAME_QVGA"], ["CIF (400x296)", "FRAME_CIF"], ["HVGA (480x320)", "FRAME_HVGA"], ["VGA (640x480)", "FRAME_VGA"], ["SVGA (800x600)", "FRAME_SVGA"], ["XGA (1024x768)", "FRAME_XGA"], ["HD (1280x720)", "FRAME_HD"], ["SXGA (1280x1024)", "FRAME_SXGA"], ["UXGA (1600x1200)", "FRAME_UXGA"]]}, {"type": "field_dropdown", "name": "clock", "options": [["20 MHz", "XCLK_20MHz"], ["10 MHz", "XCLK_10MHz"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-camera_init_tooltip#", "helpUrl": ""}, {"type": "camera_set_saturation", "message0": "#blk-camera_set_saturation# %1", "args0": [{"type": "field_dropdown", "name": "level", "options": [["0", "0"], ["-2", "-2"], ["-1", "-1"], ["1", "1"], ["2", "2"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-camera_set_saturation_tooltip#", "helpUrl": ""}, {"type": "camera_capture", "message0": "#blk-camera_capture#", "args0": [], "output": "Bytes", "colour": 230, "tooltip": "#blk-camera_capture_tooltip#", "helpUrl": ""}, {"type": "camera_set_brightness", "message0": "#blk-camera_set_brightness# %1", "args0": [{"type": "field_dropdown", "name": "level", "options": [["0", "0"], ["-2", "-2"], ["-1", "-1"], ["1", "1"], ["2", "2"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-camera_set_brightness_tooltip#", "helpUrl": ""}, {"type": "camera_set_contrast", "message0": "#blk-camera_set_contrast# %1", "args0": [{"type": "field_dropdown", "name": "level", "options": [["0", "0"], ["-2", "-2"], ["-1", "-1"], ["1", "1"], ["2", "2"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-camera_set_contrast_tooltip#", "helpUrl": ""}, {"type": "camera_deinit", "message0": "#blk-camera_deinit#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-camera_deinit_tooltip#", "helpUrl": ""}, {"type": "camera_set_whitebalance", "message0": "#blk-camera_set_whitebalance# %1", "args0": [{"type": "field_dropdown", "name": "mode", "options": [["None", "WB_NONE"], ["Sunny", "WB_SUNNY"], ["Cloudy", "WB_CLOUDY"], ["Office", "WB_OFFICE"], ["Home", "WB_HOME"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-camera_set_whitebalance_tooltip#", "helpUrl": ""}, {"type": "qmc5883l_read", "message0": "#blk-qmc5883l_read#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-qmc5883l_read_tooltip#", "helpUrl": ""}, {"type": "qmc5883l_init", "message0": "#blk-qmc5883l_init# %1 #blk-with_address# %2 #blk-and_scale# %3", "args0": [{"type": "field_dropdown", "name": "id", "options": [["I2C0", "i2c0"], ["I2C1", "i2c1"], ["Soft I2C0", "softI2c0"], ["Soft I2C1", "softI2c1"]]}, {"type": "field_input", "name": "addr", "text": "13"}, {"type": "field_dropdown", "name": "scale", "options": [["2G", "2G"], ["8G", "8G"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-qmc5883l_init_tooltip#", "helpUrl": ""}, {"type": "qmc5883l_value", "message0": "#blk-qmc5883l_value# %1", "args0": [{"type": "field_dropdown", "name": "axis", "options": [["X-axis", "x"], ["Y-axis", "y"], ["Z-axis", "z"], ["All (List)", "all"]]}], "output": ["Number", "Array"], "colour": 230, "tooltip": "#blk-qmc5883l_value_tooltip#", "helpUrl": ""}, {"type": "stepper_wheels_mecanum_move_turn", "message0": "#blk-stepper_wheels_mecanum_move_turn# %1 #blk-and_speed# %2 #blk-and_rotation# %3", "args0": [{"type": "input_value", "name": "direction", "check": "Number"}, {"type": "input_value", "name": "speed", "check": "Number"}, {"type": "input_value", "name": "turn", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-stepper_wheels_mecanum_move_turn_tooltip#", "helpUrl": ""}, {"type": "stepper_wheels_init_mecanum", "message0": "#blk-stepper_wheels_init_mecanum# #blk-with_motors# %1 %2 %3 %4 #blk-and_max_speed# %5", "args0": [{"type": "field_number", "name": "motor0", "value": 0}, {"type": "field_number", "name": "motor1", "value": 1}, {"type": "field_number", "name": "motor2", "value": 2}, {"type": "field_number", "name": "motor3", "value": 3}, {"type": "field_number", "name": "max_speed", "value": 1200}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-stepper_wheels_init_mecanum_tooltip#", "helpUrl": ""}, {"type": "stepper_wheels_mecanum_move_steps", "message0": "#blk-stepper_wheels_mecanum_move_steps# %1 #blk-and_speed# %2 #blk-for# %3 #blk-steps# #blk-and# %4", "args0": [{"type": "input_value", "name": "direction", "check": "Number"}, {"type": "input_value", "name": "speed", "check": "Number"}, {"type": "input_value", "name": "steps", "check": "Number"}, {"type": "field_dropdown", "name": "wait", "options": [["wait for completion", "True"], ["don't wait", "False"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-stepper_wheels_mecanum_move_steps_tooltip#", "helpUrl": ""}, {"type": "stepper_wheels_mecanum_set_acceleration", "message0": "#blk-stepper_wheels_mecanum_set_acceleration# %1 #blk-steps_per_second_per_second#", "args0": [{"type": "input_value", "name": "acceleration", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-stepper_wheels_mecanum_set_acceleration_tooltip#", "helpUrl": ""}, {"type": "stepper_wheels_mecanum_turn_steps", "message0": "#blk-stepper_wheels_mecanum_turn_steps# %1 #blk-for# %2 #blk-steps# #blk-and# %3", "args0": [{"type": "input_value", "name": "turn", "check": "Number"}, {"type": "input_value", "name": "steps", "check": "Number"}, {"type": "field_dropdown", "name": "wait", "options": [["wait for completion", "True"], ["don't wait", "False"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-stepper_wheels_mecanum_turn_steps_tooltip#", "helpUrl": ""}, {"type": "stepper_wheels_mecanum_stop", "message0": "#blk-stepper_wheels_mecanum_stop#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-stepper_wheels_mecanum_stop_tooltip#", "helpUrl": ""}, {"type": "stepper_wheels_motor_set_acceleration", "message0": "#blk-stepper_wheels_motor_set_acceleration# %1 #blk-to# %2 #blk-steps_per_second_per_second#", "args0": [{"type": "field_dropdown", "name": "index", "options": [["0", "0"], ["1", "1"], ["2", "2"], ["3", "3"]]}, {"type": "input_value", "name": "acceleration", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-stepper_wheels_motor_set_acceleration_tooltip#", "helpUrl": ""}, {"type": "stepper_wheels_motor_run", "message0": "#blk-stepper_wheels_motor_run# %1 #blk-at# %2 #blk-steps_per_second#", "args0": [{"type": "field_dropdown", "name": "index", "options": [["0", "0"], ["1", "1"], ["2", "2"], ["3", "3"]]}, {"type": "input_value", "name": "speed", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-stepper_wheels_motor_run_tooltip#", "helpUrl": ""}, {"type": "stepper_wheels_init", "message0": "#blk-stepper_wheels_init# %1 #blk-with_address# %2", "args0": [{"type": "field_dropdown", "name": "id", "options": [["I2C0", "i2c0"], ["I2C1", "i2c1"], ["Soft I2C0", "softI2c0"], ["Soft I2C1", "softI2c1"]]}, {"type": "field_input", "name": "addr", "text": "85"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-stepper_wheels_init_tooltip#", "helpUrl": ""}, {"type": "stepper_wheels_reset", "message0": "#blk-stepper_wheels_reset#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-stepper_wheels_reset_tooltip#", "helpUrl": ""}, {"type": "stepper_wheels_motor_reset_steps", "message0": "#blk-stepper_wheels_motor_reset_steps# %1", "args0": [{"type": "field_dropdown", "name": "index", "options": [["0", "0"], ["1", "1"], ["2", "2"], ["3", "3"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-stepper_wheels_motor_reset_steps_tooltip#", "helpUrl": ""}, {"type": "stepper_wheels_motor_get_steps", "message0": "#blk-stepper_wheels_motor_get_steps# %1", "args0": [{"type": "field_dropdown", "name": "index", "options": [["0", "0"], ["1", "1"], ["2", "2"], ["3", "3"]]}], "inputsInline": true, "output": "Number", "colour": 230, "tooltip": "#blk-stepper_wheels_motor_get_steps_tooltip#", "helpUrl": ""}, {"type": "stepper_wheels_motor_stop", "message0": "#blk-stepper_wheels_motor_stop# %1", "args0": [{"type": "field_dropdown", "name": "index", "options": [["0", "0"], ["1", "1"], ["2", "2"], ["3", "3"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-stepper_wheels_motor_stop_tooltip#", "helpUrl": ""}, {"type": "stepper_wheels_enable", "message0": "%1 #blk-stepper_wheels_enable#", "args0": [{"type": "field_dropdown", "name": "enable", "options": [["enable", "enable"], ["disable", "disable"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-stepper_wheels_enable_tooltip#", "helpUrl": ""}, {"type": "stepper_wheels_motor_run_steps", "message0": "#blk-stepper_wheels_motor_run_steps# %1 #blk-at# %2 #blk-steps_per_second# #blk-for# %3 #blk-steps# #blk-and# %4", "args0": [{"type": "field_dropdown", "name": "index", "options": [["0", "0"], ["1", "1"], ["2", "2"], ["3", "3"]]}, {"type": "input_value", "name": "speed", "check": "Number"}, {"type": "input_value", "name": "steps", "check": "Number"}, {"type": "field_dropdown", "name": "wait", "options": [["wait for completion", "True"], ["don't wait", "False"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-stepper_wheels_motor_run_steps_tooltip#", "helpUrl": ""}, {"type": "mv_yuv_to_grayscale", "message0": "#blk-mv_yuv_to_grayscale# %1", "args0": [{"type": "input_value", "name": "buf", "check": "Bytes"}], "output": "Bytes", "colour": 65, "tooltip": "#blk-mv_yuv_to_grayscale_tooltip#", "helpUrl": ""}, {"type": "mv_gaussian_blur_3x3_gray", "message0": "#blk-mv_gaussian_blur_3x3_gray# %1 #blk-of_width# %2 #blk-and_height# %3", "args0": [{"type": "input_value", "name": "buf", "check": "Bytes"}, {"type": "field_number", "name": "width", "value": "160"}, {"type": "field_number", "name": "height", "value": "120"}], "output": "Bytes", "colour": 65, "tooltip": "#blk-mv_gaussian_blur_3x3_gray_tooltip#", "helpUrl": ""}, {"type": "mv_crop_row_yuv", "message0": "#blk-mv_crop_row_yuv# %1 #blk-of_width# %2 #blk-from_top# %3 #blk-and_height# %4", "args0": [{"type": "input_value", "name": "buf", "check": "Bytes"}, {"type": "field_number", "name": "width", "value": "160"}, {"type": "field_number", "name": "top", "value": "30"}, {"type": "field_number", "name": "out_height", "value": "60"}], "output": "Bytes", "colour": 65, "tooltip": "#blk-mv_crop_row_yuv_tooltip#", "helpUrl": ""}, {"type": "mv_find_blobs_yuv", "message0": "#blk-mv_find_blobs_yuv# %1 #blk-of_width# %2 #blk-and_height# %3 #blk-with_min_max_Y# %4 %5 #blk-U# %6 %7 #blk-V# %8 %9 #blk-and_at_least# %10 #blk-pixels#", "args0": [{"type": "input_value", "name": "buf", "check": "Bytes"}, {"type": "field_number", "name": "width", "value": "160"}, {"type": "field_number", "name": "height", "value": "120"}, {"type": "field_number", "name": "minY", "value": "0"}, {"type": "field_number", "name": "maxY", "value": "255"}, {"type": "field_number", "name": "minU", "value": "0"}, {"type": "field_number", "name": "maxU", "value": "255"}, {"type": "field_number", "name": "minV", "value": "0"}, {"type": "field_number", "name": "maxV", "value": "255"}, {"type": "field_number", "name": "pixels_threshold", "value": "10"}], "output": "Array", "colour": 65, "tooltip": "#blk-mv_find_blobs_yuv_tooltip#", "helpUrl": ""}, {"type": "mv_find_circle_single", "message0": "#blk-mv_find_circle_single# %1 #blk-of_width# %2 #blk-and_height# %3 #blk-with_circle_radius# %4 #blk-and_at_least# %5 #blk-pixels#", "args0": [{"type": "input_value", "name": "buf", "check": "Bytes"}, {"type": "field_number", "name": "width", "value": "160"}, {"type": "field_number", "name": "height", "value": "120"}, {"type": "field_number", "name": "radius", "value": "10"}, {"type": "field_number", "name": "pixels_threshold", "value": "20"}], "output": "Array", "colour": 65, "tooltip": "#blk-mv_find_circle_single_tooltip#", "helpUrl": ""}, {"type": "mv_gaussian_blur_3x3_yuv", "message0": "#blk-mv_gaussian_blur_3x3_yuv# %1 #blk-of_width# %2 #blk-and_height# %3", "args0": [{"type": "input_value", "name": "buf", "check": "Bytes"}, {"type": "field_number", "name": "width", "value": "160"}, {"type": "field_number", "name": "height", "value": "120"}], "output": "Bytes", "colour": 65, "tooltip": "#blk-mv_gaussian_blur_3x3_yuv_tooltip#", "helpUrl": ""}, {"type": "mv_edge_detect", "message0": "#blk-mv_edge_detect# %1 #blk-of_width# %2 #blk-and_height# %3 #blk-with_min_max_threshold# %4 %5", "args0": [{"type": "input_value", "name": "buf", "check": "Bytes"}, {"type": "field_number", "name": "width", "value": "160"}, {"type": "field_number", "name": "height", "value": "120"}, {"type": "field_number", "name": "minV", "value": "3200"}, {"type": "field_number", "name": "maxV", "value": "6400"}], "output": "Bytes", "colour": 65, "tooltip": "#blk-mv_edge_detect_tooltip#", "helpUrl": ""}, {"type": "mv_find_blobs_grayscale", "message0": "#blk-mv_find_blobs_grayscale# %1 #blk-of_width# %2 #blk-and_height# %3 #blk-with_min_max_intensity# %4 %5 #blk-and_at_least# %6 #blk-pixels#", "args0": [{"type": "input_value", "name": "buf", "check": "Bytes"}, {"type": "field_number", "name": "width", "value": "160"}, {"type": "field_number", "name": "height", "value": "120"}, {"type": "field_number", "name": "minI", "value": "0"}, {"type": "field_number", "name": "maxI", "value": "255"}, {"type": "field_number", "name": "pixels_threshold", "value": "10"}], "output": "Array", "colour": 65, "tooltip": "#blk-mv_find_blobs_grayscale_tooltip#", "helpUrl": ""}, {"type": "mv_crop_grayscale", "message0": "#blk-mv_crop_grayscale# %1 #blk-of_width# %2 #blk-and_height# %3 #blk-from_left_top# %4 %5 #blk-and_width_height# %6 %7", "args0": [{"type": "input_value", "name": "buf", "check": "Bytes"}, {"type": "field_number", "name": "width", "value": "160"}, {"type": "field_number", "name": "height", "value": "120"}, {"type": "field_number", "name": "left", "value": "40"}, {"type": "field_number", "name": "top", "value": "30"}, {"type": "field_number", "name": "out_width", "value": "80"}, {"type": "field_number", "name": "out_height", "value": "60"}], "output": "Bytes", "colour": 65, "tooltip": "#blk-mv_crop_grayscale_tooltip#", "helpUrl": ""}, {"type": "mv_sobel", "message0": "#blk-mv_sobel# %1 #blk-of_width# %2 #blk-and_height# %3", "args0": [{"type": "input_value", "name": "buf", "check": "Bytes"}, {"type": "field_number", "name": "width", "value": "160"}, {"type": "field_number", "name": "height", "value": "120"}], "output": "Array", "colour": 65, "tooltip": "#blk-mv_sobel_tooltip#", "helpUrl": ""}, {"type": "mv_scale_grayscale", "message0": "#blk-mv_scale_grayscale# %1 #blk-of_width# %2 #blk-and_height# %3 #blk-by_factor# %4", "args0": [{"type": "input_value", "name": "buf", "check": "Bytes"}, {"type": "field_number", "name": "width", "value": "160"}, {"type": "field_number", "name": "height", "value": "120"}, {"type": "field_number", "name": "factor", "value": "2"}], "output": "Bytes", "colour": 65, "tooltip": "#blk-mv_scale_grayscale_tooltip#", "helpUrl": ""}, {"type": "mv_crop_row_grayscale", "message0": "#blk-mv_crop_row_grayscale# %1 #blk-of_width# %2 #blk-from_top# %3 #blk-and_height# %4", "args0": [{"type": "input_value", "name": "buf", "check": "Bytes"}, {"type": "field_number", "name": "width", "value": "160"}, {"type": "field_number", "name": "top", "value": "30"}, {"type": "field_number", "name": "out_height", "value": "60"}], "output": "Bytes", "colour": 65, "tooltip": "#blk-mv_crop_row_grayscale_tooltip#", "helpUrl": ""}, {"type": "urequests_advance", "message0": "http %1 #blk-request_to# %2 #blk-with# %3 #blk-in_body# %4 #blk-and_header# %5 #blk-and_put_result_in# %6 #blk-as# %7 %8 #blk-on_success# %9 #blk-on_fail# %10", "args0": [{"type": "field_dropdown", "name": "method", "options": [["GET", "GET"], ["POST", "POST"], ["HEAD", "HEAD"], ["PUT", "PUT"], ["PATCH", "PATCH"], ["DELETE", "DELETE"]]}, {"type": "input_value", "name": "url", "check": "String"}, {"type": "field_dropdown", "name": "body_type", "options": [["JSON", "JSON"], ["Data", "DATA"]]}, {"type": "input_value", "name": "body"}, {"type": "input_value", "name": "header"}, {"type": "field_variable", "name": "variable", "variable": "item"}, {"type": "field_dropdown", "name": "type", "options": [["JSON", "JSON"], ["Text", "TEXT"], ["Bytes", "BYTES"]]}, {"type": "input_dummy"}, {"type": "input_statement", "name": "on_success"}, {"type": "input_statement", "name": "on_fail"}], "inputsInline": false, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-urequests_advance_tooltip#", "helpUrl": ""}, {"type": "urequests_simple", "message0": "http %1 #blk-request_to# %2 #blk-and_put_result_in# %3 #blk-as# %4", "args0": [{"type": "field_dropdown", "name": "method", "options": [["GET", "GET"], ["POST", "POST"], ["HEAD", "HEAD"], ["PUT", "PUT"], ["PATCH", "PATCH"], ["DELETE", "DELETE"]]}, {"type": "input_value", "name": "url", "check": "String"}, {"type": "field_variable", "name": "variable", "variable": "item"}, {"type": "field_dropdown", "name": "type", "options": [["JSON", "JSON"], ["Text", "TEXT"], ["Bytes", "BYTES"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-urequests_simple_tooltip#", "helpUrl": ""}, {"type": "gy33_i2c_read_calibrated", "message0": "#blk-gy33_i2c_read_calibrated# %1", "args0": [{"type": "field_dropdown", "name": "type", "options": [["Clear", "c"], ["Red", "r"], ["Green", "g"], ["Blue", "b"], ["All (List)", "all"]]}], "output": ["Number", "Array"], "colour": 230, "tooltip": "#blk-gy33_i2c_read_calibrated_tooltip#", "helpUrl": ""}, {"type": "gy33_i2c_init", "message0": "#blk-gy33_i2c_init# %1 #blk-with_address# %2", "args0": [{"type": "field_dropdown", "name": "id", "options": [["I2C0", "i2c0"], ["I2C1", "i2c1"], ["Soft I2C0", "softI2c0"], ["Soft I2C1", "softI2c1"]]}, {"type": "field_input", "name": "addr", "text": "90"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-gy33_i2c_init_tooltip#", "helpUrl": ""}, {"type": "gy33_i2c_read_raw", "message0": "#blk-gy33_i2c_read_raw# %1", "args0": [{"type": "field_dropdown", "name": "type", "options": [["Clear", "c"], ["Red", "r"], ["Green", "g"], ["Blue", "b"], ["All (List)", "all"]]}], "output": ["Number", "Array"], "colour": 230, "tooltip": "#blk-gy33_i2c_read_raw_tooltip#", "helpUrl": ""}, {"type": "gy33_i2c_set_led", "message0": "#blk-gy33_i2c_set_led# %1", "args0": [{"type": "field_dropdown", "name": "power", "options": [["10 (Max)", "10"], ["9", "9"], ["8", "8"], ["7", "7"], ["6", "6"], ["5", "5"], ["4", "4"], ["3", "3"], ["2", "2"], ["1", "1"], ["0 (Off)", "0"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-gy33_i2c_set_led_tooltip#", "helpUrl": ""}, {"type": "gy33_i2c_calibrate_black", "message0": "#blk-gy33_i2c_calibrate_black#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-gy33_i2c_calibrate_black_tooltip#", "helpUrl": ""}, {"type": "gy33_i2c_calibrate_white", "message0": "#blk-gy33_i2c_calibrate_white#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-gy33_i2c_calibrate_white_tooltip#", "helpUrl": ""}, {"type": "mpu6050_reset", "message0": "#blk-mpu6050_reset# %1 %2 %3", "args0": [{"type": "input_value", "name": "x", "check": "Number"}, {"type": "input_value", "name": "y", "check": "Number"}, {"type": "input_value", "name": "z", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-mpu6050_reset_tooltip#", "helpUrl": ""}, {"type": "mpu6050_set_calibration", "message0": "#blk-mpu6050_set_calibration# %1", "args0": [{"type": "input_value", "name": "calibration", "check": "Array"}], "inputsInline": false, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-mpu6050_set_calibration_tooltip#", "helpUrl": ""}, {"type": "mpu6050_temperature", "message0": "#blk-mpu6050_temperature# %1", "args0": [{"type": "field_dropdown", "name": "type", "options": [["MPU-6050", "6050"], ["MPU-6500", "6500"]]}], "output": "Number", "colour": 230, "tooltip": "#blk-mpu6050_temperature_tooltip#", "helpUrl": ""}, {"type": "mpu6050_accel", "message0": "#blk-mpu6050_get_accel# %1", "args0": [{"type": "field_dropdown", "name": "axis", "options": [["X-axis", "X"], ["Y-axis", "Y"], ["Z-axis", "Z"], ["All (List)", "ALL"]]}], "output": ["Number", "Array"], "colour": 230, "tooltip": "#blk-mpu6050_accel_tooltip#", "helpUrl": ""}, {"type": "mpu6050_gyro", "message0": "#blk-mpu6050_get_gyro# %1", "args0": [{"type": "field_dropdown", "name": "axis", "options": [["X-axis", "X"], ["Y-axis", "Y"], ["Z-axis", "Z"], ["All (List)", "ALL"]]}], "output": ["Number", "Array"], "colour": 230, "tooltip": "#blk-mpu6050_gyro_tooltip#", "helpUrl": ""}, {"type": "mpu6050_get_calibration", "message0": "#blk-mpu6050_get_calibration#", "args0": [], "output": ["Array"], "colour": 230, "tooltip": "#blk-mpu6050_get_calibration_tooltip#", "helpUrl": ""}, {"type": "mpu6050_update", "message0": "#blk-mpu6050_update#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-mpu6050_update_tooltip#", "helpUrl": ""}, {"type": "mpu6050_angle", "message0": "#blk-mpu6050_get_angle# %1", "args0": [{"type": "field_dropdown", "name": "axis", "options": [["X-axis", "X"], ["Y-axis", "Y"], ["Z-axis", "Z"], ["All (List)", "ALL"]]}], "output": ["Number", "Array"], "colour": 230, "tooltip": "#blk-mpu6050_get_angle_tooltip#", "helpUrl": ""}, {"type": "mpu6050_calibrate", "message0": "#blk-mpu6050_calibrate#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-mpu6050_calibrate_tooltip#", "helpUrl": ""}, {"type": "mpu6050_init", "message0": "#blk-mpu6050_init# %1 #blk-with_address# %2", "args0": [{"type": "field_dropdown", "name": "id", "options": [["I2C0", "i2c0"], ["I2C1", "i2c1"], ["Soft I2C0", "softI2c0"], ["Soft I2C1", "softI2c1"]]}, {"type": "field_input", "name": "addr", "text": "104"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-mpu6050_init_tooltip#", "helpUrl": ""}, {"type": "bmp280_read", "message0": "#blk-bmp280_read#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-bmp280_read_tooltip#", "helpUrl": ""}, {"type": "bmp280_altitude", "message0": "#blk-bmp280_altitude#", "args0": [], "output": "Number", "colour": 230, "tooltip": "#blk-bmp280_altitude_tooltip#", "helpUrl": ""}, {"type": "bmp280_init", "message0": "#blk-bmp280_init# %1 #blk-with_address# %2", "args0": [{"type": "field_dropdown", "name": "id", "options": [["I2C0", "i2c0"], ["I2C1", "i2c1"], ["Soft I2C0", "softI2c0"], ["Soft I2C1", "softI2c1"]]}, {"type": "field_input", "name": "addr", "text": "118"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-bmp280_init_tooltip#", "helpUrl": ""}, {"type": "bmp280_temperature", "message0": "#blk-bmp280_temperature#", "args0": [], "output": "Number", "colour": 230, "tooltip": "#blk-bmp280_temperature_tooltip#", "helpUrl": ""}, {"type": "bmp280_pressure", "message0": "#blk-bmp280_pressure#", "args0": [], "output": "Number", "colour": 230, "tooltip": "#blk-bmp280_pressure_tooltip#", "helpUrl": ""}, {"type": "hmc5883l_read", "message0": "#blk-hmc5883l_read#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-hmc5883l_read_tooltip#", "helpUrl": ""}, {"type": "hmc5883l_init", "message0": "#blk-hmc5883l_init# %1 #blk-with_address# %2 #blk-and_scale# %3", "args0": [{"type": "field_dropdown", "name": "id", "options": [["I2C0", "i2c0"], ["I2C1", "i2c1"], ["Soft I2C0", "softI2c0"], ["Soft I2C1", "softI2c1"]]}, {"type": "field_input", "name": "addr", "text": "30"}, {"type": "field_dropdown", "name": "scale", "options": [["0.88G", "880G"], ["1.3G", "1300G"], ["1.9G", "1900G"], ["2.5G", "2500G"], ["4.0G", "4000G"], ["4.7G", "4700G"], ["5.6G", "5600G"], ["8.1G", "8100G"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-hmc5883l_init_tooltip#", "helpUrl": ""}, {"type": "hmc5883l_value", "message0": "#blk-hmc5883l_value# %1", "args0": [{"type": "field_dropdown", "name": "axis", "options": [["X-axis", "x"], ["Y-axis", "y"], ["Z-axis", "z"], ["All (List)", "all"]]}], "output": ["Number", "Array"], "colour": 230, "tooltip": "#blk-hmc5883l_value_tooltip#", "helpUrl": ""}, {"type": "tca9548a_init", "message0": "#blk-tca9548a_init# %1 #blk-with_address# %2", "args0": [{"type": "field_dropdown", "name": "id", "options": [["I2C0", "i2c0"], ["I2C1", "i2c1"], ["Soft I2C0", "softI2c0"], ["Soft I2C1", "softI2c1"]]}, {"type": "field_input", "name": "addr", "text": "112"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 330, "tooltip": "#blk-tca9548a_init_tooltip#", "helpUrl": ""}, {"type": "tca9548a_set_port", "message0": "#blk-tca9548a_set_port# %1 #blk-and# %2", "args0": [{"type": "input_value", "name": "port", "check": "Number"}, {"type": "field_dropdown", "name": "others", "options": [["deactivate other ports", "DEACTIVATE"], ["leave other ports unchanged", "UNCHANGED"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 330, "tooltip": "#blk-tca9548a_set_port_tooltip#", "helpUrl": ""}, {"type": "tca9548a_get_port", "message0": "#blk-tca9548a_get_port#", "args0": [], "output": "Number", "colour": 330, "tooltip": "#blk-tca9548a_get_port_tooltip#", "helpUrl": ""}, {"type": "adv_hc_sr04_ping", "message0": "#blk-adv_hc_sr04_ping_trig# %1 #blk-echo# %2 #blk-unit# %3", "args0": [{"type": "input_value", "name": "trig", "check": "Number"}, {"type": "input_value", "name": "echo", "check": "Number"}, {"type": "field_dropdown", "name": "unit", "options": [["cm", "CM"], ["us", "US"]]}], "output": "Number", "colour": 230, "tooltip": "#blk-hc_sr04_ping_tooltip#", "helpUrl": ""}, {"type": "adv_servo_write_deg", "message0": "#blk-adv_servo_write# %1 #blk-to# %2 #blk-deg#", "args0": [{"type": "input_value", "name": "pin", "check": "Number"}, {"type": "input_value", "name": "deg", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-servo_write_deg_tooltip#", "helpUrl": ""}, {"type": "adv_touch_read_pin", "message0": "#blk-adv_touch_read_pin# %1", "args0": [{"type": "input_value", "name": "pin", "check": "Number"}], "output": "Number", "colour": 230, "tooltip": "#blk-touch_read_pin_tooltip#", "helpUrl": ""}, {"type": "adv_analog_write_pin", "message0": "#blk-adv_analog_write_pin# %1 #blk-to# %2", "args0": [{"type": "input_value", "name": "pin", "check": "Number"}, {"type": "input_value", "name": "value", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-analog_write_pin_tooltip#", "helpUrl": ""}, {"type": "adv_servo_write_us", "message0": "#blk-adv_servo_write# %1 #blk-to# %2 #blk-us#", "args0": [{"type": "input_value", "name": "pin", "check": "Number"}, {"type": "input_value", "name": "us", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-servo_write_us_tooltip#", "helpUrl": ""}, {"type": "adv_digital_read_pin", "message0": "#blk-adv_read_pin# %1", "args0": [{"type": "input_value", "name": "pin", "check": "Number"}], "output": "Number", "colour": 230, "tooltip": "#blk-read_pin_tooltip#", "helpUrl": ""}, {"type": "adv_set_pin_mode", "message0": "#blk-adv_set_pin# %1 #blk-to_mode# %2", "args0": [{"type": "input_value", "name": "pin", "check": "Number"}, {"type": "field_dropdown", "name": "mode", "options": [["#blk-input#", "INPUT"], ["#blk-input_pullup#", "INPUT_PULLUP"], ["#blk-output#", "OUTPUT"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-set_pin_tooltip#", "helpUrl": ""}, {"type": "adv_analog_read_pin", "message0": "#blk-adv_analog_read_pin# %1", "args0": [{"type": "input_value", "name": "pin", "check": "Number"}], "output": "Number", "colour": 230, "tooltip": "#blk-analog_read_pin_tooltip#", "helpUrl": ""}, {"type": "adv_set_analog_write_freq", "message0": "#blk-adv_set_analog_write_freq# %1 #blk-to# %2 #blk-hz#", "args0": [{"type": "input_value", "name": "pin", "check": "Number"}, {"type": "input_value", "name": "frequency", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-set_analog_write_freq_tooltip#", "helpUrl": ""}, {"type": "adv_digital_write_pin", "message0": "#blk-adv_write_pin# %1 #blk-to# %2", "args0": [{"type": "input_value", "name": "pin", "check": "Number"}, {"type": "input_value", "name": "value", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-write_pin_tooltip#", "helpUrl": ""}, {"type": "bmp_image_render", "message0": "#blk-bmp_image_render# #blk-to_display# %1 #blk-with_offset_x# %2 #blk-and_y# %3", "args0": [{"type": "field_dropdown", "name": "type", "options": [["SSD-1306", "SSD1306"]]}, {"type": "input_value", "name": "x", "check": "Number"}, {"type": "input_value", "name": "y", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-bmp_image_render_tooltip#", "helpUrl": ""}, {"type": "bmp_image_width", "message0": "#blk-bmp_image_width#", "args0": [], "output": "Number", "inputsInline": true, "colour": 230, "tooltip": "#blk-bmp_image_width_tooltip#", "helpUrl": ""}, {"type": "bmp_image_open", "message0": "#blk-bmp_image_open# %1", "args0": [{"type": "input_value", "name": "filename", "check": "String"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-bmp_image_open_tooltip#", "helpUrl": ""}, {"type": "bmp_image_depth", "message0": "#blk-bmp_image_depth#", "args0": [], "output": "Number", "inputsInline": true, "colour": 230, "tooltip": "#blk-bmp_image_depth_tooltip#", "helpUrl": ""}, {"type": "bmp_image_height", "message0": "#blk-bmp_image_height#", "args0": [], "output": "Number", "inputsInline": true, "colour": 230, "tooltip": "#blk-bmp_image_height_tooltip#", "helpUrl": ""}, {"type": "bmp_image_close", "message0": "#blk-bmp_image_close#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-bmp_image_close_tooltip#", "helpUrl": ""}, {"type": "bmp_image_get_pixel_raw", "message0": "#blk-bmp_image_get_pixel_raw#", "args0": [], "output": ["Number", "Array"], "inputsInline": true, "colour": 230, "tooltip": "#blk-bmp_image_get_pixel_raw_tooltip#", "helpUrl": ""}, {"type": "bmp_image_get_pixel", "message0": "#blk-bmp_image_get_pixel#", "args0": [], "output": "Array", "inputsInline": true, "colour": 230, "tooltip": "#blk-bmp_image_get_pixel_tooltip#", "helpUrl": ""}, {"type": "read_input", "message0": "#blk-read_input_with_prompt# %1", "args0": [{"type": "input_value", "name": "prompt"}], "output": "String", "colour": 160, "tooltip": "", "helpUrl": ""}, {"type": "comment", "message0": "#blk-comment# %1", "args0": [{"type": "field_multilinetext", "name": "value", "text": "Your comment here"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": "#000000", "tooltip": "#blk-comment_tooltip#", "helpUrl": ""}, {"type": "stepper_wheels_drive_steering_steps", "message0": "#blk-stepper_wheels_drive_steering_steps# %1 #blk-and_speed# %2 #blk-for# %3 #blk-steps# #blk-and# %4", "args0": [{"type": "input_value", "name": "steering", "check": "Number"}, {"type": "input_value", "name": "speed", "check": "Number"}, {"type": "input_value", "name": "steps", "check": "Number"}, {"type": "field_dropdown", "name": "wait", "options": [["wait for completion", "True"], ["don't wait", "False"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-stepper_wheels_drive_steering_steps_tooltip#", "helpUrl": ""}, {"type": "stepper_wheels_drive_steering", "message0": "#blk-stepper_wheels_drive_steering# %1 #blk-and_speed# %2", "args0": [{"type": "input_value", "name": "steering", "check": "Number"}, {"type": "input_value", "name": "speed", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-stepper_wheels_drive_steering_tooltip#", "helpUrl": ""}, {"type": "stepper_wheels_drive_reset_steps", "message0": "#blk-stepper_wheels_drive_reset_steps#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-stepper_wheels_drive_reset_steps_tooltip#", "helpUrl": ""}, {"type": "stepper_wheels_init_drive", "message0": "#blk-stepper_wheels_init_drive# %1 #blk-and_right_motor_on_port# %2", "args0": [{"type": "field_input", "name": "left", "text": "0"}, {"type": "field_input", "name": "right", "text": "1"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-stepper_wheels_init_drive_tooltip#", "helpUrl": ""}, {"type": "stepper_wheels_drive_stop", "message0": "#blk-stepper_wheels_drive_stop#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-stepper_wheels_drive_stop_tooltip#", "helpUrl": ""}, {"type": "stepper_wheels_drive_tank", "message0": "#blk-stepper_wheels_drive_tank# %1 #blk-and_right_speed# %2", "args0": [{"type": "input_value", "name": "left", "check": "Number"}, {"type": "input_value", "name": "right", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-stepper_wheels_drive_tank_tooltip#", "helpUrl": ""}, {"type": "stepper_wheels_drive_set_acceleration", "message0": "#blk-stepper_wheels_drive_set_acceleration# %1 #blk-steps_per_second_per_second#", "args0": [{"type": "input_value", "name": "acceleration", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-stepper_wheels_drive_set_acceleration_tooltip#", "helpUrl": ""}, {"type": "stepper_wheels_drive_get_steps", "message0": "#blk-stepper_wheels_drive_get_steps# %1", "args0": [{"type": "field_dropdown", "name": "type", "options": [["avg of both wheels", "avg_"], ["left wheel", "left_"], ["right wheel", "right_"]]}], "inputsInline": true, "output": "Number", "colour": 230, "tooltip": "#blk-stepper_wheels_drive_get_steps_tooltip#", "helpUrl": ""}, {"type": "stepper_wheels_drive_tank_steps", "message0": "#blk-stepper_wheels_drive_tank_steps# %1 #blk-and_right_speed# %2 #blk-for# %3 #blk-steps# #blk-and# %4", "args0": [{"type": "input_value", "name": "left", "check": "Number"}, {"type": "input_value", "name": "right", "check": "Number"}, {"type": "input_value", "name": "steps", "check": "Number"}, {"type": "field_dropdown", "name": "wait", "options": [["wait for completion", "True"], ["don't wait", "False"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-stepper_wheels_drive_tank_steps_tooltip#", "helpUrl": ""}, {"type": "st7789_image_from_file", "message0": "#blk-st7789_image_from_file# %1 #blk-at_xy# %2 %3 #blk-width# %4 #blk-height# %5", "args0": [{"type": "input_value", "name": "filename", "check": "String"}, {"type": "input_value", "name": "x", "check": "Number"}, {"type": "input_value", "name": "y", "check": "Number"}, {"type": "input_value", "name": "w", "check": "Number"}, {"type": "input_value", "name": "h", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-st7789_image_from_file_tooltip#", "helpUrl": ""}, {"type": "st7789_pixel", "message0": "#blk-st7789_pixel# %1 %2 #blk-color# %3", "args0": [{"type": "input_value", "name": "x", "check": "Number"}, {"type": "input_value", "name": "y", "check": "Number"}, {"type": "input_value", "name": "color", "check": "Color_st7789"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-st7789_pixel_tooltip#", "helpUrl": ""}, {"type": "st7789_ellipse", "message0": "#blk-st7789_ellipse# %1 %2 #blk-with_xryr# %3 %4 #blk-color# %5 #blk-fill# %6", "args0": [{"type": "input_value", "name": "x", "check": "Number"}, {"type": "input_value", "name": "y", "check": "Number"}, {"type": "input_value", "name": "xr", "check": "Number"}, {"type": "input_value", "name": "yr", "check": "Number"}, {"type": "input_value", "name": "color", "check": "Color_st7789"}, {"type": "field_dropdown", "name": "fill", "options": [["False", "False"], ["True", "True"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-st7789_ellipse_tooltip#", "helpUrl": ""}, {"type": "st7789_fill", "message0": "#blk-st7789_fill# %1", "args0": [{"type": "input_value", "name": "color", "check": "Color_st7789"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-st7789_fill_tooltip#", "helpUrl": ""}, {"type": "st7789_text_with_font", "message0": "#blk-st7789_text_with_font# %1 #blk-font# %2 #blk-at_xy# %3 %4 #blk-color# %5 #blk-background# %6 #blk-rotation# %7", "args0": [{"type": "input_value", "name": "text", "check": "String"}, {"type": "input_value", "name": "font", "check": "Font_xglcd"}, {"type": "input_value", "name": "x", "check": "Number"}, {"type": "input_value", "name": "y", "check": "Number"}, {"type": "input_value", "name": "color", "check": "Color_st7789"}, {"type": "input_value", "name": "background", "check": "Color_st7789"}, {"type": "field_dropdown", "name": "rotate", "options": [["0", "0"], ["90", "90"], ["180", "180"], ["270", "270"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-st7789_text_with_font_tooltip#", "helpUrl": ""}, {"type": "st7789_image_from_buf", "message0": "#blk-st7789_image_from_buf# %1 #blk-at_xy# %2 %3 #blk-width# %4 #blk-height# %5", "args0": [{"type": "input_value", "name": "buf", "check": "Bytes"}, {"type": "input_value", "name": "x", "check": "Number"}, {"type": "input_value", "name": "y", "check": "Number"}, {"type": "input_value", "name": "w", "check": "Number"}, {"type": "input_value", "name": "h", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-st7789_image_from_buf_tooltip#", "helpUrl": ""}, {"type": "st7789_rgb", "message0": "#blk-st7789_rgb# %1 %2 %3", "args0": [{"type": "input_value", "name": "red", "check": "Number"}, {"type": "input_value", "name": "green", "check": "Number"}, {"type": "input_value", "name": "blue", "check": "Number"}], "inputsInline": true, "output": "Color_st7789", "colour": 230, "tooltip": "#blk-st7789_rgb_tooltip#", "helpUrl": ""}, {"type": "st7789_line", "message0": "#blk-st7789_line# %1 %2 #blk-x2y2# %3 %4 #blk-color# %5", "args0": [{"type": "input_value", "name": "x1", "check": "Number"}, {"type": "input_value", "name": "y1", "check": "Number"}, {"type": "input_value", "name": "x2", "check": "Number"}, {"type": "input_value", "name": "y2", "check": "Number"}, {"type": "input_value", "name": "color", "check": "Color_st7789"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-st7789_line_tooltip#", "helpUrl": ""}, {"type": "st7789_text8x8", "message0": "#blk-st7789_text8x8# %1 #blk-at_xy# %2 %3 #blk-color# %4 #blk-background# %5 #blk-rotation# %6", "args0": [{"type": "input_value", "name": "text", "check": "String"}, {"type": "input_value", "name": "x", "check": "Number"}, {"type": "input_value", "name": "y", "check": "Number"}, {"type": "input_value", "name": "color", "check": "Color_st7789"}, {"type": "input_value", "name": "background", "check": "Color_st7789"}, {"type": "field_dropdown", "name": "rotate", "options": [["0", "0"], ["90", "90"], ["180", "180"], ["270", "270"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-st7789_text8x8_tooltip#", "helpUrl": ""}, {"type": "st7789_color", "message0": "#blk-st7789_color# %1", "args0": [{"type": "field_dropdown", "name": "color", "options": [["red", "(255, 0, 0)"], ["orange", "(255, 165, 0)"], ["yellow", "(255, 255, 0)"], ["green", "(0, 255, 0)"], ["blue", "(0, 0, 255)"], ["indigo", "(75, 0, 130)"], ["violet", "(138, 43, 226)"], ["purple", "(255, 0, 255)"], ["white", "(255, 255, 255)"], ["black", "(0, 0, 0)"]]}], "output": "Color_st7789", "colour": 230, "tooltip": "#blk-st7789_color_tooltip#", "helpUrl": ""}, {"type": "st7789_hsv", "message0": "#blk-st7789_hsv# %1 %2 %3", "args0": [{"type": "input_value", "name": "h", "check": "Number"}, {"type": "input_value", "name": "s", "check": "Number"}, {"type": "input_value", "name": "v", "check": "Number"}], "inputsInline": true, "output": "Color_st7789", "colour": 230, "tooltip": "#blk-st7789_hsv_tooltip#", "helpUrl": ""}, {"type": "st7789_init", "message0": "#blk-st7789_init# %1 #blk-cs# %2 #blk-dc# %3 #blk-rst# %4 #blk-size# %5", "args0": [{"type": "field_dropdown", "name": "spi", "options": [["SPI1", "spi1"], ["SPI2", "spi2"], ["Soft SPI1", "softSpi1"], ["Soft SPI2", "softSpi2"]]}, {"type": "field_number", "name": "cs", "min": 0, "precision": 1, "value": 5}, {"type": "field_number", "name": "dc", "min": 0, "precision": 1, "value": 16}, {"type": "field_number", "name": "rst", "min": 0, "precision": 1, "value": 23}, {"type": "field_dropdown", "name": "size", "options": [["135x240", "135_240"], ["240x240", "240_240"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-st7789_init_tooltip#", "helpUrl": ""}, {"type": "st7789_rectangle", "message0": "#blk-st7789_rectangle# %1 %2 #blk-width# %3 #blk-height# %4 #blk-color# %5 #blk-fill# %6", "args0": [{"type": "input_value", "name": "x", "check": "Number"}, {"type": "input_value", "name": "y", "check": "Number"}, {"type": "input_value", "name": "w", "check": "Number"}, {"type": "input_value", "name": "h", "check": "Number"}, {"type": "input_value", "name": "color", "check": "Color_st7789"}, {"type": "field_dropdown", "name": "fill", "options": [["False", "False"], ["True", "True"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-st7789_rectangle_tooltip#", "helpUrl": ""}, {"type": "ez_httpd_init", "message0": "ez_httpd #blk-ez_httpd_init_with_addr# %1 #blk-and_port# %2", "args0": [{"type": "input_value", "name": "addr", "check": "String"}, {"type": "input_value", "name": "port", "check": "String"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-ez_httpd_init_tooltip#", "helpUrl": ""}, {"type": "ez_httpd_send_bytes", "message0": "ez_httpd #blk-ez_httpd_send_bytes# %1", "args0": [{"type": "input_value", "name": "response", "check": "Bytes"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-ez_httpd_send_bytes_tooltip#", "helpUrl": ""}, {"type": "ez_httpd_send_file", "message0": "ez_httpd #blk-ez_httpd_send_file# %1", "args0": [{"type": "input_value", "name": "filename", "check": "String"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-ez_httpd_send_file_tooltip#", "helpUrl": ""}, {"type": "ez_httpd_wait_for_connection", "message0": "ez_httpd #blk-ez_httpd_wait_for_connection_and_put_url_in# %1 #blk-query_in# %2 #blk-content_in# %3", "args0": [{"type": "field_variable", "name": "url", "variable": "url"}, {"type": "field_variable", "name": "query", "variable": "query"}, {"type": "field_variable", "name": "content", "variable": "content"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-ez_httpd_wait_for_connection_tooltip#", "helpUrl": ""}, {"type": "ez_httpd_available", "message0": "#blk-ez_httpd_available#", "args0": [], "output": "Boolean", "colour": 65, "tooltip": "#blk-ez_httpd_available_tooltip#", "helpUrl": ""}, {"type": "ez_httpd_send_404", "message0": "ez_httpd #blk-ez_httpd_send_404#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-ez_httpd_send_404_tooltip#", "helpUrl": ""}, {"type": "ez_httpd_send_response", "message0": "ez_httpd #blk-ez_httpd_send_response# %1", "args0": [{"type": "input_value", "name": "response", "check": "String"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-ez_httpd_send_response_tooltip#", "helpUrl": ""}, {"type": "tcs3472_read_raw", "message0": "#blk-tcs3472_read_raw# %1", "args0": [{"type": "field_dropdown", "name": "type", "options": [["Clear", "c"], ["Red", "r"], ["Green", "g"], ["Blue", "b"], ["All (List)", "all"]]}], "output": ["Number", "Array"], "colour": 230, "tooltip": "#blk-tcs3472_read_raw_tooltip#", "helpUrl": ""}, {"type": "tcs3472_init", "message0": "#blk-tcs3472_init# %1 #blk-with_address# %2", "args0": [{"type": "field_dropdown", "name": "id", "options": [["I2C0", "i2c0"], ["I2C1", "i2c1"], ["Soft I2C0", "softI2c0"], ["Soft I2C1", "softI2c1"]]}, {"type": "field_input", "name": "addr", "text": "41"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-tcs3472_init_tooltip#", "helpUrl": ""}, {"type": "tcs3472_calibrate_white", "message0": "#blk-tcs3472_calibrate_white#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-tcs3472_calibrate_white_tooltip#", "helpUrl": ""}, {"type": "tcs3472_read_calibrated", "message0": "#blk-tcs3472_read_calibrated# %1", "args0": [{"type": "field_dropdown", "name": "type", "options": [["Clear", "c"], ["Red", "r"], ["Green", "g"], ["Blue", "b"], ["All (List)", "all"]]}], "output": ["Number", "Array"], "colour": 230, "tooltip": "#blk-tcs3472_read_calibrated_tooltip#", "helpUrl": ""}, {"type": "tcs3472_set_gain", "message0": "#blk-tcs3472_set_gain# %1", "args0": [{"type": "field_dropdown", "name": "gain", "options": [["1x", "0"], ["4x", "1"], ["16x", "2"], ["60x", "3"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-tcs3472_set_gain_tooltip#", "helpUrl": ""}, {"type": "tcs3472_set_integration_time", "message0": "#blk-tcs3472_set_integration_time# %1 #blk-ms#", "args0": [{"type": "field_number", "name": "ms", "value": 100, "min": 2.4, "max": 614.4, "precision": 0.1}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-tcs3472_set_integration_time_tooltip#", "helpUrl": ""}, {"type": "tcs3472_calibrate_black", "message0": "#blk-tcs3472_calibrate_black#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-tcs3472_calibrate_black_tooltip#", "helpUrl": ""}, {"type": "pca9685_write_us", "message0": "#blk-pca9685_write_us# %1 #blk-to# %2 #blk-us#", "args0": [{"type": "input_value", "name": "channel", "check": "Number"}, {"type": "input_value", "name": "value", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-pca9685_write_us_tooltip#", "helpUrl": ""}, {"type": "pca9685_write_angle", "message0": "#blk-pca9685_write_angle# %1 #blk-to# %2 #blk-deg#", "args0": [{"type": "input_value", "name": "channel", "check": "Number"}, {"type": "input_value", "name": "value", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-pca9685_write_angle_tooltip#", "helpUrl": ""}, {"type": "pca9685_set_freq", "message0": "#blk-pca9685_set_freq# %1 #blk-hz#", "args0": [{"type": "field_input", "name": "freq", "text": "50"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-pca9685_set_freq_tooltip#", "helpUrl": ""}, {"type": "pca9685_init", "message0": "#blk-pca9685_init# %1 #blk-with_address# %2", "args0": [{"type": "field_dropdown", "name": "id", "options": [["I2C0", "i2c0"], ["I2C1", "i2c1"], ["Soft I2C0", "softI2c0"], ["Soft I2C1", "softI2c1"]]}, {"type": "field_input", "name": "addr", "text": "64"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-pca9685_init_tooltip#", "helpUrl": ""}, {"type": "pca9685_analog_write", "message0": "#blk-pca9685_analog_write# %1 #blk-to# %2", "args0": [{"type": "input_value", "name": "channel", "check": "Number"}, {"type": "input_value", "name": "value", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-pca9685_analog_write_tooltip#", "helpUrl": ""}, {"type": "uart_read", "message0": "#blk-from# %1 #blk-read# %2 #blk-characters#", "args0": [{"type": "field_dropdown", "name": "id", "options": [["UART1", "1"], ["UART2", "2"]]}, {"type": "input_value", "name": "size", "check": "Number"}], "output": "Bytes", "colour": 330, "tooltip": "#blk-uart_read_tooltip#", "helpUrl": ""}, {"type": "uart_flush", "message0": "#blk-flush# %1", "args0": [{"type": "field_dropdown", "name": "id", "options": [["UART1", "1"], ["UART2", "2"]]}], "previousStatement": null, "nextStatement": null, "colour": 330, "tooltip": "#blk-uart_flush_tooltip#", "helpUrl": ""}, {"type": "uart_init", "message0": "#blk-init# %1 #blk-at_baudrate# %2 #blk-with_tx_pin# %3 #blk-and_rx_pin# %4", "args0": [{"type": "field_dropdown", "name": "id", "options": [["UART1", "1"], ["UART2", "2"]]}, {"type": "field_input", "name": "baudrate", "text": "9600"}, {"type": "field_dropdown", "name": "tx", "options": [["4", "4"], ["5", "5"], ["12", "12"], ["13", "13"], ["14", "14"], ["15", "15"], ["16", "16"], ["17", "17"], ["18", "18"], ["19", "19"], ["21", "21"], ["22", "22"], ["23", "23"], ["25", "25"], ["26", "26"], ["27", "27"], ["32", "32"], ["33", "33"]]}, {"type": "field_dropdown", "name": "rx", "options": [["4", "4"], ["5", "5"], ["12", "12"], ["13", "13"], ["14", "14"], ["15", "15"], ["16", "16"], ["17", "17"], ["18", "18"], ["19", "19"], ["21", "21"], ["22", "22"], ["23", "23"], ["25", "25"], ["26", "26"], ["27", "27"], ["32", "32"], ["33", "33"], ["34", "34"], ["35", "35"], ["36", "36"], ["39", "39"]]}], "previousStatement": null, "nextStatement": null, "colour": 330, "tooltip": "#blk-uart_init_tooltip#", "helpUrl": ""}, {"type": "uart_any", "message0": "#blk-from# %1 #blk-available_characters_to_read#", "args0": [{"type": "field_dropdown", "name": "id", "options": [["UART1", "1"], ["UART2", "2"]]}], "output": "Number", "colour": 330, "tooltip": "#blk-any_tooltip#", "helpUrl": ""}, {"type": "uart_readline", "message0": "#blk-from# %1 #blk-read_one_line#", "args0": [{"type": "field_dropdown", "name": "id", "options": [["UART1", "1"], ["UART2", "2"]]}], "output": "Bytes", "colour": 330, "tooltip": "#blk-uart_readline_tooltip#", "helpUrl": ""}, {"type": "uart_write", "message0": "#blk-to# %1 #blk-write# %2 #blk-and# %3", "args0": [{"type": "field_dropdown", "name": "id", "options": [["UART1", "1"], ["UART2", "2"]]}, {"type": "input_value", "name": "value", "check": "String"}, {"type": "field_dropdown", "name": "newline", "options": [["New\u00a0line", "TRUE"], ["No new\u00a0line", "FALSE"]]}], "previousStatement": null, "nextStatement": null, "colour": 330, "tooltip": "#blk-uart_write_tooltip#", "helpUrl": ""}, {"type": "wheeled_drives_joystick", "message0": "#blk-wheeled_drives_joystick# %1 #blk-and_y# %2 #blk-and_max_speed# %3", "args0": [{"type": "input_value", "name": "x", "check": "Number"}, {"type": "input_value", "name": "y", "check": "Number"}, {"type": "field_number", "name": "max_speed", "value": 1023}], "inputsInline": true, "output": "Array", "colour": 230, "tooltip": "#blk-wheeled_drives_joystick_tooltip#", "helpUrl": ""}, {"type": "wheeled_drives_delta", "message0": "#blk-wheeled_drives_delta# %1 #blk-direction# %2 #blk-speed# %3 #blk-rotation# %4 #blk-and_max_speed# %5", "args0": [{"type": "field_dropdown", "name": "mode", "options": [["V", "V"], ["A", "A"]]}, {"type": "input_value", "name": "direction", "check": "Number"}, {"type": "input_value", "name": "speed", "check": "Number"}, {"type": "input_value", "name": "rotation", "check": "Number"}, {"type": "field_number", "name": "max_speed", "value": 1023}], "inputsInline": true, "output": "Array", "colour": 230, "tooltip": "#blk-wheeled_drives_delta_tooltip#", "helpUrl": ""}, {"type": "wheeled_drives_mecanum", "message0": "#blk-wheeled_drives_mecanum# %1 #blk-speed# %2 #blk-rotation# %3 #blk-and_max_speed# %4", "args0": [{"type": "input_value", "name": "direction", "check": "Number"}, {"type": "input_value", "name": "speed", "check": "Number"}, {"type": "input_value", "name": "rotation", "check": "Number"}, {"type": "field_number", "name": "max_speed", "value": 1023}], "inputsInline": true, "output": "Array", "colour": 230, "tooltip": "#blk-wheeled_drives_mecanum_tooltip#", "helpUrl": ""}, {"type": "wheeled_drives_steering", "message0": "#blk-wheeled_drives_steering# %1 #blk-and_speed# %2", "args0": [{"type": "input_value", "name": "steering", "check": "Number"}, {"type": "input_value", "name": "speed", "check": "Number"}], "inputsInline": true, "output": "Array", "colour": 230, "tooltip": "#blk-wheeled_drives_steering_tooltip#", "helpUrl": ""}, {"type": "yx5300_init", "message0": "#blk-yx5300_init# %1", "args0": [{"type": "field_dropdown", "name": "uart", "options": [["UART1", "1"], ["UART2", "2"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-yx5300_init_tooltip#", "helpUrl": ""}, {"type": "yx5300_play", "message0": "#blk-yx5300_play#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-yx5300_play_tooltip#", "helpUrl": ""}, {"type": "yx5300_play_folder_index", "message0": "#blk-yx5300_play_folder_index# %1 #blk-and_index# %2", "args0": [{"type": "input_value", "name": "folder", "check": "Number"}, {"type": "input_value", "name": "index", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-yx5300_play_folder_index_tooltip#", "helpUrl": ""}, {"type": "yx5300_stop", "message0": "#blk-yx5300_stop#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-yx5300_stop_tooltip#", "helpUrl": ""}, {"type": "yx5300_play_index", "message0": "#blk-yx5300_play_index# %1", "args0": [{"type": "input_value", "name": "index", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-yx5300_play_index_tooltip#", "helpUrl": ""}, {"type": "yx5300_play_prev", "message0": "#blk-yx5300_play_prev#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-yx5300_play_prev_tooltip#", "helpUrl": ""}, {"type": "yx5300_play_next", "message0": "#blk-yx5300_play_next#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-yx5300_play_next_tooltip#", "helpUrl": ""}, {"type": "yx5300_pause", "message0": "#blk-yx5300_pause#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-yx5300_pause_tooltip#", "helpUrl": ""}, {"type": "yx5300_set_volume", "message0": "#blk-yx5300_set_volume# %1", "args0": [{"type": "input_value", "name": "volume", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-yx5300_set_volume_tooltip#", "helpUrl": ""}, {"type": "ssd1306_text", "message0": "#blk-ssd1306_text# %1 #blk-at_xy# %2 %3 #blk-and_color# %4", "args0": [{"type": "input_value", "name": "text", "check": "String"}, {"type": "input_value", "name": "x", "check": "Number"}, {"type": "input_value", "name": "y", "check": "Number"}, {"type": "input_value", "name": "color", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-ssd1306_text_tooltip#", "helpUrl": ""}, {"type": "ssd1306_scroll", "message0": "#blk-ssd1306_scroll# %1 %2", "args0": [{"type": "input_value", "name": "xstep", "check": "Number"}, {"type": "input_value", "name": "ystep", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-ssd1306_scroll_tooltip#", "helpUrl": ""}, {"type": "ssd1306_line", "message0": "#blk-ssd1306_line# %1 %2 #blk-to_x2y2# %3 %4 #blk-and_color# %5", "args0": [{"type": "input_value", "name": "x1", "check": "Number"}, {"type": "input_value", "name": "y1", "check": "Number"}, {"type": "input_value", "name": "x2", "check": "Number"}, {"type": "input_value", "name": "y2", "check": "Number"}, {"type": "input_value", "name": "color", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-ssd1306_line_tooltip#", "helpUrl": ""}, {"type": "ssd1306_rect", "message0": "#blk-ssd1306_rect# %1 %2 #blk-with_wh# %3 %4 #blk-color# %5 %6", "args0": [{"type": "input_value", "name": "x", "check": "Number"}, {"type": "input_value", "name": "y", "check": "Number"}, {"type": "input_value", "name": "w", "check": "Number"}, {"type": "input_value", "name": "h", "check": "Number"}, {"type": "input_value", "name": "color", "check": "Number"}, {"type": "field_dropdown", "name": "fill", "options": [["fill", "True"], ["outline", "False"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-ssd1306_rect_tooltip#", "helpUrl": ""}, {"type": "ssd1306_pixel", "message0": "#blk-ssd1306_pixel# %1 %2 #blk-and_color# %3", "args0": [{"type": "input_value", "name": "x", "check": "Number"}, {"type": "input_value", "name": "y", "check": "Number"}, {"type": "input_value", "name": "color", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-ssd1306_pixel_tooltip#", "helpUrl": ""}, {"type": "ssd1306_init", "message0": "#blk-ssd1306_init# %1 #blk-with_address# %2 #blk-width# %3 #blk-height# %4", "args0": [{"type": "field_dropdown", "name": "id", "options": [["I2C0", "i2c0"], ["I2C1", "i2c1"], ["Soft I2C0", "softI2c0"], ["Soft I2C1", "softI2c1"]]}, {"type": "field_input", "name": "addr", "text": "60"}, {"type": "field_input", "name": "width", "text": "128"}, {"type": "field_input", "name": "height", "text": "64"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-ssd1306_init_tooltip#", "helpUrl": ""}, {"type": "ssd1306_init_sh1106", "message0": "#blk-ssd1306_init_sh1106# %1 #blk-with_address# %2 #blk-width# %3 #blk-height# %4", "args0": [{"type": "field_dropdown", "name": "id", "options": [["I2C0", "i2c0"], ["I2C1", "i2c1"], ["Soft I2C0", "softI2c0"], ["Soft I2C1", "softI2c1"]]}, {"type": "field_input", "name": "addr", "text": "60"}, {"type": "field_input", "name": "width", "text": "128"}, {"type": "field_input", "name": "height", "text": "64"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-ssd1306_init_sh1106_tooltip#", "helpUrl": ""}, {"type": "ssd1306_ellipse", "message0": "#blk-ssd1306_ellipse# %1 %2 #blk-with_xryr# %3 %4 #blk-color# %5 %6", "args0": [{"type": "input_value", "name": "x", "check": "Number"}, {"type": "input_value", "name": "y", "check": "Number"}, {"type": "input_value", "name": "xr", "check": "Number"}, {"type": "input_value", "name": "yr", "check": "Number"}, {"type": "input_value", "name": "color", "check": "Number"}, {"type": "field_dropdown", "name": "fill", "options": [["fill", "True"], ["outline", "False"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-ssd1306_ellipse_tooltip#", "helpUrl": ""}, {"type": "ssd1306_show", "message0": "#blk-ssd1306_show#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-ssd1306_show_tooltip#", "helpUrl": ""}, {"type": "ssd1306_fill", "message0": "#blk-ssd1306_fill# %1", "args0": [{"type": "input_value", "name": "color", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-ssd1306_fill_tooltip#", "helpUrl": ""}, {"type": "i2c_lcd_init", "message0": "#blk-i2c_lcd_init# %1 #blk-with_lines# %2 #blk-columns# %3 #blk-and_addr# %4", "args0": [{"type": "field_dropdown", "name": "id", "options": [["I2C0", "i2c0"], ["I2C1", "i2c1"], ["Soft I2C0", "softI2c0"], ["Soft I2C1", "softI2c1"]]}, {"type": "field_input", "name": "lines", "text": "2"}, {"type": "field_input", "name": "columns", "text": "16"}, {"type": "field_input", "name": "addr", "text": "39"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-i2c_lcd_init_tooltip#", "helpUrl": ""}, {"type": "i2c_lcd_putstr", "message0": "#blk-i2c_lcd_putstr# %1", "args0": [{"type": "input_value", "name": "text", "check": "String"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-i2c_lcd_putstr_tooltip#", "helpUrl": ""}, {"type": "i2c_lcd_display", "message0": "#blk-i2c_lcd_display# %1", "args0": [{"type": "field_dropdown", "name": "value", "options": [["on", "ON"], ["off", "OFF"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-i2c_lcd_display_tooltip#", "helpUrl": ""}, {"type": "i2c_lcd_clear", "message0": "#blk-i2c_lcd_clear#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-i2c_lcd_clear_tooltip#", "helpUrl": ""}, {"type": "i2c_lcd_blink", "message0": "#blk-i2c_lcd_blink# %1", "args0": [{"type": "field_dropdown", "name": "value", "options": [["on", "ON"], ["off", "OFF"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-i2c_lcd_blink_tooltip#", "helpUrl": ""}, {"type": "i2c_lcd_backlight", "message0": "#blk-i2c_lcd_backlight# %1", "args0": [{"type": "field_dropdown", "name": "value", "options": [["on", "ON"], ["off", "OFF"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-i2c_lcd_backlight_tooltip#", "helpUrl": ""}, {"type": "i2c_lcd_cursor", "message0": "#blk-i2c_lcd_cursor# %1", "args0": [{"type": "field_dropdown", "name": "value", "options": [["show", "ON"], ["hide", "OFF"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-i2c_lcd_cursor_tooltip#", "helpUrl": ""}, {"type": "i2c_lcd_move_to", "message0": "#blk-i2c_lcd_move_to# %1 %2", "args0": [{"type": "input_value", "name": "x", "text": "0"}, {"type": "input_value", "name": "y", "text": "0"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-i2c_lcd_move_to_tooltip#", "helpUrl": ""}, {"type": "ez_esp_now_set_group", "message0": "#blk-ez_esp_now_set_group# %1", "args0": [{"type": "input_value", "name": "group", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-ez_esp_now_set_group_tooltip#", "helpUrl": ""}, {"type": "ez_esp_now_send", "message0": "#blk-ez_esp_now_send_message# %1", "args0": [{"type": "input_value", "name": "value"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-ez_esp_now_send_tooltip#", "helpUrl": ""}, {"type": "ez_esp_now_get_msg", "message0": "#blk-ez_esp_now_get_msg# %1", "args0": [{"type": "field_dropdown", "name": "wait", "options": [["Wait", "True"], ["Don't Wait", "False"]]}], "inputsInline": true, "output": null, "colour": 65, "tooltip": "#blk-ez_esp_now_get_msg_tooltip#", "helpUrl": ""}, {"type": "ez_esp_now_init", "message0": "#blk-init_ez_esp_now#", "args0": [], "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-ez_esp_now_init_tooltip#", "helpUrl": ""}, {"type": "dht_temperature", "message0": "#blk-dht_temperature#", "args0": [], "output": "Number", "colour": 230, "tooltip": "#blk-dht_temperature_tooltip#", "helpUrl": ""}, {"type": "dht_init", "message0": "#blk-dht_init# %1 #blk-on_pin# %2", "args0": [{"type": "field_dropdown", "name": "type", "options": [["DHT22 or AM2302", "DHT22"], ["DHT11", "DHT11"]]}, {"type": "field_dropdown", "name": "pin", "options": [["4", "4"], ["5", "5"], ["12", "12"], ["13", "13"], ["14", "14"], ["15", "15"], ["16", "16"], ["17", "17"], ["18", "18"], ["19", "19"], ["21", "21"], ["22", "22"], ["23", "23"], ["25", "25"], ["26", "26"], ["27", "27"], ["32", "32"], ["33", "33"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-dht_init_tooltip#", "helpUrl": ""}, {"type": "dht_measure", "message0": "#blk-dht_measure#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-dht_measure_tooltip#", "helpUrl": ""}, {"type": "dht_humidity", "message0": "#blk-dht_humidity#", "args0": [], "output": "Number", "colour": 230, "tooltip": "#blk-dht_humidity_tooltip#", "helpUrl": ""}, {"type": "hx711_read", "message0": "#blk-hx711_read#", "args0": [], "inputsInline": true, "output": "Number", "colour": 230, "tooltip": "#blk-hx711_read_tooltip#", "helpUrl": ""}, {"type": "hx711_init", "message0": "#blk-hx711_init_with_dt_pin# %1 #blk-and_sck_pin# %2", "args0": [{"type": "field_dropdown", "name": "dt", "options": [["4", "4"], ["5", "5"], ["12", "12"], ["13", "13"], ["14", "14"], ["15", "15"], ["16", "16"], ["17", "17"], ["18", "18"], ["19", "19"], ["21", "21"], ["22", "22"], ["23", "23"], ["25", "25"], ["26", "26"], ["27", "27"], ["32", "32"], ["33", "33"], ["34", "34"], ["35", "35"], ["36", "36"], ["39", "39"]]}, {"type": "field_dropdown", "name": "sck", "options": [["4", "4"], ["5", "5"], ["12", "12"], ["13", "13"], ["14", "14"], ["15", "15"], ["16", "16"], ["17", "17"], ["18", "18"], ["19", "19"], ["21", "21"], ["22", "22"], ["23", "23"], ["25", "25"], ["26", "26"], ["27", "27"], ["32", "32"], ["33", "33"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-hx711_init_tooltip#", "helpUrl": ""}, {"type": "file_write_binary", "message0": "#blk-write_binary_to# %1 #blk-with# %2", "args0": [{"type": "field_variable", "name": "variable", "variable": "file1"}, {"type": "input_value", "name": "value", "check": "Bytes"}], "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-file_write_binary_tooltip#", "helpUrl": ""}, {"type": "file_flush", "message0": "#blk-flush_file# %1", "args0": [{"type": "field_variable", "name": "variable", "variable": "file1"}], "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-file_flush_tooltip#", "helpUrl": ""}, {"type": "file_readline", "message0": "#blk-read_one_line_from# %1", "args0": [{"type": "field_variable", "name": "variable", "variable": "file1"}], "output": "String", "colour": 230, "tooltip": "#blk-file_readline_tooltip#", "helpUrl": ""}, {"type": "file_list_dir", "message0": "#blk-list_dir# %1", "args0": [{"type": "input_value", "name": "path", "check": "String"}], "output": "Boolean", "colour": 230, "tooltip": "#blk-file_list_dir_tooltip#", "helpUrl": ""}, {"type": "file_is_file", "message0": "#blk-is_file# %1", "args0": [{"type": "input_value", "name": "path", "check": "String"}], "output": "Boolean", "colour": 230, "tooltip": "#blk-file_is_file_tooltip#", "helpUrl": ""}, {"type": "file_open", "message0": "#blk-set# %1 #blk-to_open# %2 #blk-with_mode# %3 #blk-and_type# %4", "args0": [{"type": "field_variable", "name": "variable", "variable": "file1"}, {"type": "input_value", "name": "filename", "check": "String"}, {"type": "field_dropdown", "name": "mode", "options": [["read", "r"], ["write", "w"], ["append", "a"]]}, {"type": "field_dropdown", "name": "type", "options": [["text", "t"], ["binary", "b"]]}], "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-file_open_tooltip#", "helpUrl": ""}, {"type": "file_is_dir", "message0": "#blk-is_dir# %1", "args0": [{"type": "input_value", "name": "path", "check": "String"}], "output": "Boolean", "colour": 230, "tooltip": "#blk-file_is_dir_tooltip#", "helpUrl": ""}, {"type": "file_write", "message0": "#blk-write_to# %1 #blk-with# %2 #blk-and# %3", "args0": [{"type": "field_variable", "name": "variable", "variable": "file1"}, {"type": "input_value", "name": "value", "check": "String"}, {"type": "field_dropdown", "name": "newline", "options": [["New\u00a0line", "TRUE"], ["No new\u00a0line", "FALSE"]]}], "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-file_write_tooltip#", "helpUrl": ""}, {"type": "file_read", "message0": "#blk-read# %1 #blk-characters_from# %2", "args0": [{"type": "input_value", "name": "size", "check": "Number"}, {"type": "field_variable", "name": "variable", "variable": "file1"}], "output": ["String", "Bytes"], "colour": 230, "tooltip": "#blk-file_read_tooltip#", "helpUrl": ""}, {"type": "file_close", "message0": "#blk-close_file# %1", "args0": [{"type": "field_variable", "name": "variable", "variable": "file1"}], "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-file_close_tooltip#", "helpUrl": ""}, {"type": "mqtt_logger_log", "message0": "#blk-mqtt_logger_log# %1 #blk-and_data# %2", "args0": [{"type": "field_input", "name": "topic", "text": "topic"}, {"type": "input_value", "name": "value", "check": "Array"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-mqtt_logger_log_tooltip#", "helpUrl": ""}, {"type": "mqtt_logger_init", "message0": "#blk-mqtt_logger_init# %1 #blk-and_size# %2", "args0": [{"type": "field_input", "name": "topic", "text": "topic"}, {"type": "field_number", "name": "size", "value": 100, "min": 1}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-mqtt_logger_init_tooltip#", "helpUrl": ""}, {"type": "mqtt_logger_log_with_time", "message0": "#blk-mqtt_logger_log_with_time# %1 #blk-and_data# %2", "args0": [{"type": "field_input", "name": "topic", "text": "topic"}, {"type": "input_value", "name": "value"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-mqtt_logger_log_with_time_tooltip#", "helpUrl": ""}, {"type": "vl53l0x_init", "message0": "#blk-vl53l0x_init# %1 #blk-with_address# %2", "args0": [{"type": "field_dropdown", "name": "id", "options": [["I2C0", "i2c0"], ["I2C1", "i2c1"], ["Soft I2C0", "softI2c0"], ["Soft I2C1", "softI2c1"]]}, {"type": "field_input", "name": "addr", "text": "41"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-vl53l0x_init_tooltip#", "helpUrl": ""}, {"type": "vl53l0x_read", "message0": "#blk-vl53l0x_read#", "args0": [], "output": "Number", "colour": 230, "tooltip": "#blk-vl53l0x_read_tooltip#", "helpUrl": ""}, {"type": "when_started", "message0": "#blk-when_started# %1", "args0": [{"type": "field_dropdown", "name": "start_type", "options": [["run immediately (Bluetooth Enabled)", "RUN"], ["wait for Bluetooth connection", "WAIT"], ["wait for Internet connection", "WAIT_MQTT"], ["run immediately (Bluetooth Disabled)", "DISABLE"]]}], "nextStatement": null, "colour": 65, "tooltip": "", "helpUrl": ""}, {"type": "png_decoder_render", "message0": "#blk-png_decoder_render# %1 #blk-to_display# %2 #blk-with_offset_x# %3 #blk-and_y# %4", "args0": [{"type": "input_value", "name": "filename", "check": "String"}, {"type": "field_dropdown", "name": "type", "options": [["SSD-1306", "SSD1306"]]}, {"type": "input_value", "name": "x", "check": "Number"}, {"type": "input_value", "name": "y", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-png_decoder_render_tooltip#", "helpUrl": ""}, {"type": "mqtt_publish", "message0": "#blk-mqtt_publish# %1 #blk-message# %2", "args0": [{"type": "field_input", "name": "topic", "text": "topic"}, {"type": "input_value", "name": "value", "check": "String"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-mqtt_publish_tooltip#", "helpUrl": ""}, {"type": "mqtt_on_receive", "message0": "#blk-mqtt_on_receive# %1 #blk-with_mqtt_msg# %2 %3", "args0": [{"type": "field_input", "name": "topic", "text": "topic"}, {"type": "input_dummy"}, {"type": "input_statement", "name": "statements"}], "inputsInline": true, "nextStatement": null, "colour": 65, "tooltip": "#blk-mqtt_on_receive_tooltip#", "helpUrl": ""}, {"type": "mqtt_msg", "message0": "mqtt_msg", "args0": [], "output": "String", "colour": 330, "tooltip": "#blk-mqtt_msg_tooltip#", "helpUrl": ""}, {"type": "mqtt_wait_msg", "message0": "#blk-mqtt_wait_msg#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "", "helpUrl": ""}, {"type": "mqtt_connect_to_server", "message0": "#blk-connect_to_mqtt_server# %1 #blk-on_port# %2 #blk-with_user# %3 #blk-and_password# %4", "args0": [{"type": "field_input", "name": "server", "text": "mqtt.a9i.sg"}, {"type": "field_input", "name": "port", "text": "1883"}, {"type": "field_input", "name": "name", "text": "name"}, {"type": "field_input", "name": "password", "text": "password"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-connect_to_mqtt_server_tooltip#", "helpUrl": ""}, {"type": "mqtt_publish_bytes", "message0": "#blk-mqtt_publish_bytes# %1 %2", "args0": [{"type": "field_input", "name": "topic", "text": "topic"}, {"type": "input_value", "name": "value", "check": "Bytes"}], "inputsInline": false, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-mqtt_publish_bytes_tooltip#", "helpUrl": ""}, {"type": "mqtt_check_msg", "message0": "#blk-mqtt_check_msg#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-mqtt_check_msg_tooltip#", "helpUrl": ""}, {"type": "run_python", "message0": "#blk-run_python# %1", "args0": [{"type": "field_input", "name": "value", "text": "pass"}], "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-run_python_tooltip#", "helpUrl": ""}, {"type": "stepper_wheels_delta_set_acceleration", "message0": "#blk-stepper_wheels_delta_set_acceleration# %1 #blk-steps_per_second_per_second#", "args0": [{"type": "input_value", "name": "acceleration", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-stepper_wheels_delta_set_acceleration_tooltip#", "helpUrl": ""}, {"type": "stepper_wheels_delta_turn_steps", "message0": "#blk-stepper_wheels_delta_turn_steps# %1 #blk-for# %2 #blk-steps# #blk-and# %3", "args0": [{"type": "input_value", "name": "turn", "check": "Number"}, {"type": "input_value", "name": "steps", "check": "Number"}, {"type": "field_dropdown", "name": "wait", "options": [["wait for completion", "True"], ["don't wait", "False"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-stepper_wheels_delta_turn_steps_tooltip#", "helpUrl": ""}, {"type": "stepper_wheels_delta_stop", "message0": "#blk-stepper_wheels_delta_stop#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-stepper_wheels_delta_stop_tooltip#", "helpUrl": ""}, {"type": "stepper_wheels_delta_move_turn", "message0": "#blk-stepper_wheels_delta_move_turn# %1 #blk-and_speed# %2 #blk-and_rotation# %3", "args0": [{"type": "input_value", "name": "direction", "check": "Number"}, {"type": "input_value", "name": "speed", "check": "Number"}, {"type": "input_value", "name": "turn", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-stepper_wheels_delta_move_turn_tooltip#", "helpUrl": ""}, {"type": "stepper_wheels_init_delta", "message0": "#blk-stepper_wheels_init_delta# %1 #blk-with_motors# %2 %3 %4 #blk-and_max_speed# %5", "args0": [{"type": "field_dropdown", "name": "mode", "options": [["V", "V"], ["A", "A"]]}, {"type": "field_number", "name": "motor0", "value": 0}, {"type": "field_number", "name": "motor1", "value": 1}, {"type": "field_number", "name": "motor2", "value": 2}, {"type": "field_number", "name": "max_speed", "value": 1200}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-stepper_wheels_init_delta_tooltip#", "helpUrl": ""}, {"type": "stepper_wheels_delta_move_steps", "message0": "#blk-stepper_wheels_delta_move_steps# %1 #blk-and_speed# %2 #blk-for# %3 #blk-steps# #blk-and# %4", "args0": [{"type": "input_value", "name": "direction", "check": "Number"}, {"type": "input_value", "name": "speed", "check": "Number"}, {"type": "input_value", "name": "steps", "check": "Number"}, {"type": "field_dropdown", "name": "wait", "options": [["wait for completion", "True"], ["don't wait", "False"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-stepper_wheels_delta_move_steps_tooltip#", "helpUrl": ""}, {"type": "json_dumps", "message0": "#blk-json_dumps# %1", "args0": [{"type": "input_value", "name": "value"}], "output": null, "colour": 230, "tooltip": "#blk-json_dumps_tooltip#", "helpUrl": ""}, {"type": "type_cast", "message0": "#blk-type_cast# %1 %2", "args0": [{"type": "field_dropdown", "name": "type", "options": [["integer", "INTEGER"], ["float", "FLOAT"], ["string", "STRING"], ["hexadecimal string", "HEX"]]}, {"type": "input_value", "name": "value"}], "output": null, "colour": 230, "tooltip": "#blk-type_cast_tooltip#", "helpUrl": ""}, {"type": "binary_shift", "message0": "%1 %2 %3 #blk-times#", "args0": [{"type": "input_value", "name": "value1", "check": "Number"}, {"type": "field_dropdown", "name": "op", "options": [["<< (Shift bits left)", "<<"], [">> (Shift bits right)", ">>"]]}, {"type": "input_value", "name": "value2", "check": "Number"}], "inputsInline": true, "output": "Number", "colour": 230, "tooltip": "#blk-binary_shift_tooltip#", "helpUrl": ""}, {"type": "binary_op", "message0": "%1 %2 %3", "args0": [{"type": "input_value", "name": "value1", "check": "Number"}, {"type": "field_dropdown", "name": "op", "options": [["| (OR)", "|"], ["& (AND)", "&"], ["^ (XOR)", "^"]]}, {"type": "input_value", "name": "value2", "check": "Number"}], "inputsInline": true, "output": "Number", "colour": 230, "tooltip": "#blk-binary_op_tooltip#", "helpUrl": ""}, {"type": "bytes", "message0": "bytes %1", "args0": [{"type": "field_input", "name": "bytestring", "text": ""}], "inputsInline": true, "output": "Bytes", "colour": 230, "tooltip": "#blk-bytes_tooltip#", "helpUrl": ""}, {"type": "unpack", "message0": "#blk-unpack# %1 #blk-using_format# %2", "args0": [{"type": "input_value", "name": "value", "check": "Bytes"}, {"type": "field_input", "name": "format", "text": ">h"}], "output": "Array", "colour": 230, "tooltip": "#blk-unpack_tooltip#", "helpUrl": "https://docs.micropython.org/en/latest/library/struct.html#module-struct"}, {"type": "math_map", "message0": "#blk-map# %1 #blk-from_low# %2 #blk-high# %3 #blk-to_low# %4 #blk-high# %5", "args0": [{"type": "input_value", "name": "x", "check": "Number"}, {"type": "input_value", "name": "in_min", "check": "Number"}, {"type": "input_value", "name": "in_max", "check": "Number"}, {"type": "input_value", "name": "out_min", "check": "Number"}, {"type": "input_value", "name": "out_max", "check": "Number"}], "inputsInline": true, "output": "Number", "colour": 230, "tooltip": "#blk-map_tooltip#", "helpUrl": ""}, {"type": "json_loads", "message0": "#blk-json_loads# %1", "args0": [{"type": "input_value", "name": "value", "check": "String"}], "output": null, "colour": 230, "tooltip": "#blk-json_loads_tooltip#", "helpUrl": ""}, {"type": "bytearray_by_size", "message0": "bytearray #blk-of_size# %1", "args0": [{"type": "input_value", "name": "size", "check": "Number"}], "inputsInline": true, "output": "Bytes", "colour": 230, "tooltip": "#blk-bytearray_by_size_tooltip#", "helpUrl": ""}, {"type": "bytearray", "message0": "bytearray %1", "args0": [{"type": "field_input", "name": "bytestring", "text": ""}], "inputsInline": true, "output": "Bytes", "colour": 230, "tooltip": "#blk-bytearray_tooltip#", "helpUrl": ""}, {"type": "binary_not", "message0": "#blk-binary_not# %1", "args0": [{"type": "input_value", "name": "value", "check": "Number"}], "inputsInline": true, "output": "Number", "colour": 230, "tooltip": "#blk-binary_not_tooltip#", "helpUrl": ""}, {"type": "decode", "message0": "#blk-decode# %1 #blk-as_utf8#", "args0": [{"type": "input_value", "name": "value", "check": "Bytes"}], "output": "String", "colour": 230, "tooltip": "#blk-decode_tooltip#", "helpUrl": ""}, {"type": "encode", "message0": "#blk-encode# %1 #blk-as_utf8#", "args0": [{"type": "input_value", "name": "value", "check": "String"}], "output": "Bytes", "colour": 230, "tooltip": "#blk-encode_tooltip#", "helpUrl": ""}, {"type": "ld2410_update", "message0": "#blk-ld2410_update#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-ld2410_update_tooltip#", "helpUrl": ""}, {"type": "ld2410_set_sensitivity", "message0": "#blk-ld2410_set_sensitivity# %1 #blk-to_moving_energy# %2 #blk-and_stationary_energy# %3", "args0": [{"type": "field_dropdown", "name": "gate", "options": [["0: 0.00m to 0.75m", "0"], ["1: 0.75m to 1.50m", "1"], ["2: 1.50m to 2.25m", "2"], ["3: 2.25m to 3.00m", "3"], ["4: 3.00m to 3.75m", "4"], ["5: 3.75m to 4.50m", "5"], ["6: 4.50m to 5.25m", "6"], ["7: 5.25m to 6.00m", "7"], ["8: 6.00m to 6.75m", "8"]]}, {"type": "input_value", "name": "moving", "check": "Number"}, {"type": "input_value", "name": "stationary", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-ld2410_set_sensitivity_tooltip#", "helpUrl": ""}, {"type": "ld2410_factory_reset", "message0": "#blk-ld2410_factory_reset#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-ld2410_factory_reset_tooltip#", "helpUrl": ""}, {"type": "ld2410_get_engineering", "message0": "#blk-ld2410_get_engineering#", "args0": [], "output": ["Array"], "colour": 230, "tooltip": "#blk-ld2410_get_engineering_tooltip#", "helpUrl": ""}, {"type": "ld2410_engineering_mode", "message0": "#blk-ld2410_engineering_mode# %1", "args0": [{"type": "field_dropdown", "name": "type", "options": [["Enable", "enable"], ["Disable", "disable"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-ld2410_engineering_mode_tooltip#", "helpUrl": ""}, {"type": "ld2410_get_target", "message0": "#blk-ld2410_get_target#", "args0": [], "output": ["Array"], "colour": 230, "tooltip": "#blk-ld2410_get_target_tooltip#", "helpUrl": ""}, {"type": "ld2410_set_max", "message0": "#blk-ld2410_set_max# %1 #blk-stationary_gate# %2 #blk-and_inactivity_time# %3", "args0": [{"type": "field_dropdown", "name": "moving", "options": [["0: 0.00m to 0.75m", "0"], ["1: 0.75m to 1.50m", "1"], ["2: 1.50m to 2.25m", "2"], ["3: 2.25m to 3.00m", "3"], ["4: 3.00m to 3.75m", "4"], ["5: 3.75m to 4.50m", "5"], ["6: 4.50m to 5.25m", "6"], ["7: 5.25m to 6.00m", "7"], ["8: 6.00m to 6.75m", "8"]]}, {"type": "field_dropdown", "name": "stationary", "options": [["0: 0.00m to 0.75m", "0"], ["1: 0.75m to 1.50m", "1"], ["2: 1.50m to 2.25m", "2"], ["3: 2.25m to 3.00m", "3"], ["4: 3.00m to 3.75m", "4"], ["5: 3.75m to 4.50m", "5"], ["6: 4.50m to 5.25m", "6"], ["7: 5.25m to 6.00m", "7"], ["8: 6.00m to 6.75m", "8"]]}, {"type": "input_value", "name": "inactivity", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-ld2410_set_max_tooltip#", "helpUrl": ""}, {"type": "ld2410_init", "message0": "#blk-ld2410_init# %1", "args0": [{"type": "field_dropdown", "name": "uart", "options": [["UART1", "1"], ["UART2", "2"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-ld2410_init_tooltip#", "helpUrl": ""}, {"type": "ili9341_rgb", "message0": "#blk-ili9341_rgb# %1 %2 %3", "args0": [{"type": "input_value", "name": "red", "check": "Number"}, {"type": "input_value", "name": "green", "check": "Number"}, {"type": "input_value", "name": "blue", "check": "Number"}], "inputsInline": true, "output": "Color_ili9341", "colour": 230, "tooltip": "#blk-ili9341_rgb_tooltip#", "helpUrl": ""}, {"type": "ili9341_color", "message0": "#blk-ili9341_color# %1", "args0": [{"type": "field_dropdown", "name": "color", "options": [["red", "(255, 0, 0)"], ["orange", "(255, 165, 0)"], ["yellow", "(255, 255, 0)"], ["green", "(0, 255, 0)"], ["blue", "(0, 0, 255)"], ["indigo", "(75, 0, 130)"], ["violet", "(138, 43, 226)"], ["purple", "(255, 0, 255)"], ["white", "(255, 255, 255)"], ["black", "(0, 0, 0)"]]}], "output": "Color_ili9341", "colour": 230, "tooltip": "#blk-ili9341_color_tooltip#", "helpUrl": ""}, {"type": "ili9341_pixel", "message0": "#blk-ili9341_pixel# %1 %2 #blk-color# %3", "args0": [{"type": "input_value", "name": "x", "check": "Number"}, {"type": "input_value", "name": "y", "check": "Number"}, {"type": "input_value", "name": "color", "check": "Color_ili9341"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-ili9341_pixel_tooltip#", "helpUrl": ""}, {"type": "ili9341_hsv", "message0": "#blk-ili9341_hsv# %1 %2 %3", "args0": [{"type": "input_value", "name": "h", "check": "Number"}, {"type": "input_value", "name": "s", "check": "Number"}, {"type": "input_value", "name": "v", "check": "Number"}], "inputsInline": true, "output": "Color_ili9341", "colour": 230, "tooltip": "#blk-ili9341_hsv_tooltip#", "helpUrl": ""}, {"type": "ili9341_text_with_font", "message0": "#blk-ili9341_text_with_font# %1 #blk-font# %2 #blk-at_xy# %3 %4 #blk-color# %5 #blk-background# %6 #blk-rotation# %7", "args0": [{"type": "input_value", "name": "text", "check": "String"}, {"type": "input_value", "name": "font", "check": "Font_xglcd"}, {"type": "input_value", "name": "x", "check": "Number"}, {"type": "input_value", "name": "y", "check": "Number"}, {"type": "input_value", "name": "color", "check": "Color_ili9341"}, {"type": "input_value", "name": "background", "check": "Color_ili9341"}, {"type": "field_dropdown", "name": "rotate", "options": [["0", "0"], ["90", "90"], ["180", "180"], ["270", "270"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-ili9341_text_with_font_tooltip#", "helpUrl": ""}, {"type": "ili9341_ellipse", "message0": "#blk-ili9341_ellipse# %1 %2 #blk-with_xryr# %3 %4 #blk-color# %5 #blk-fill# %6", "args0": [{"type": "input_value", "name": "x", "check": "Number"}, {"type": "input_value", "name": "y", "check": "Number"}, {"type": "input_value", "name": "xr", "check": "Number"}, {"type": "input_value", "name": "yr", "check": "Number"}, {"type": "input_value", "name": "color", "check": "Color_ili9341"}, {"type": "field_dropdown", "name": "fill", "options": [["False", "False"], ["True", "True"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-ili9341_ellipse_tooltip#", "helpUrl": ""}, {"type": "ili9341_clear", "message0": "#blk-ili9341_clear# %1", "args0": [{"type": "input_value", "name": "color", "check": "Color_ili9341"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-ili9341_clear_tooltip#", "helpUrl": ""}, {"type": "ili9341_image_from_buf", "message0": "#blk-ili9341_image_from_buf# %1 #blk-at_xy# %2 %3 #blk-width# %4 #blk-height# %5", "args0": [{"type": "input_value", "name": "buf", "check": "Bytes"}, {"type": "input_value", "name": "x", "check": "Number"}, {"type": "input_value", "name": "y", "check": "Number"}, {"type": "input_value", "name": "w", "check": "Number"}, {"type": "input_value", "name": "h", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-ili9341_image_from_buf_tooltip#", "helpUrl": ""}, {"type": "ili9341_text8x8", "message0": "#blk-ili9341_text8x8# %1 #blk-at_xy# %2 %3 #blk-color# %4 #blk-background# %5 #blk-rotation# %6", "args0": [{"type": "input_value", "name": "text", "check": "String"}, {"type": "input_value", "name": "x", "check": "Number"}, {"type": "input_value", "name": "y", "check": "Number"}, {"type": "input_value", "name": "color", "check": "Color_ili9341"}, {"type": "input_value", "name": "background", "check": "Color_ili9341"}, {"type": "field_dropdown", "name": "rotate", "options": [["0", "0"], ["90", "90"], ["180", "180"], ["270", "270"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-ili9341_text8x8_tooltip#", "helpUrl": ""}, {"type": "ili9341_image_from_file", "message0": "#blk-ili9341_image_from_file# %1 #blk-at_xy# %2 %3 #blk-width# %4 #blk-height# %5", "args0": [{"type": "input_value", "name": "filename", "check": "String"}, {"type": "input_value", "name": "x", "check": "Number"}, {"type": "input_value", "name": "y", "check": "Number"}, {"type": "input_value", "name": "w", "check": "Number"}, {"type": "input_value", "name": "h", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-ili9341_image_from_file_tooltip#", "helpUrl": ""}, {"type": "ili9341_line", "message0": "#blk-ili9341_line# %1 %2 #blk-x2y2# %3 %4 #blk-color# %5", "args0": [{"type": "input_value", "name": "x1", "check": "Number"}, {"type": "input_value", "name": "y1", "check": "Number"}, {"type": "input_value", "name": "x2", "check": "Number"}, {"type": "input_value", "name": "y2", "check": "Number"}, {"type": "input_value", "name": "color", "check": "Color_ili9341"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-ili9341_line_tooltip#", "helpUrl": ""}, {"type": "ili9341_rectangle", "message0": "#blk-ili9341_rectangle# %1 %2 #blk-width# %3 #blk-height# %4 #blk-color# %5 #blk-fill# %6", "args0": [{"type": "input_value", "name": "x", "check": "Number"}, {"type": "input_value", "name": "y", "check": "Number"}, {"type": "input_value", "name": "w", "check": "Number"}, {"type": "input_value", "name": "h", "check": "Number"}, {"type": "input_value", "name": "color", "check": "Color_ili9341"}, {"type": "field_dropdown", "name": "fill", "options": [["False", "False"], ["True", "True"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-ili9341_rectangle_tooltip#", "helpUrl": ""}, {"type": "ili9341_init", "message0": "#blk-ili9341_init# %1 #blk-cs# %2 #blk-dc# %3 #blk-rst# %4 #blk-width# %5 #blk-height# %6 #blk-rotation# %7 #blk-mirror# %8 #blk-bgr# %9", "args0": [{"type": "field_dropdown", "name": "spi", "options": [["SPI1", "spi1"], ["SPI2", "spi2"], ["Soft SPI1", "softSpi1"], ["Soft SPI2", "softSpi2"]]}, {"type": "field_number", "name": "cs", "min": 0, "precision": 1, "value": 15}, {"type": "field_number", "name": "dc", "min": 0, "precision": 1, "value": 2}, {"type": "field_number", "name": "rst", "min": 0, "precision": 1, "value": 15}, {"type": "field_number", "name": "width", "min": 0, "precision": 1, "value": 320}, {"type": "field_number", "name": "height", "min": 0, "precision": 1, "value": 240}, {"type": "field_dropdown", "name": "rotation", "options": [["0", "0"], ["90", "90"], ["180", "180"], ["270", "270"]]}, {"type": "field_dropdown", "name": "mirror", "options": [["False", "False"], ["True", "True"]]}, {"type": "field_dropdown", "name": "bgr", "options": [["False", "False"], ["True", "True"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-ili9341_init_tooltip#", "helpUrl": ""}, {"type": "esp32_temperature", "message0": "#blk-microcontroller_temperature_in# %1", "args0": [{"type": "field_dropdown", "name": "units", "options": [["Celsius", "CELSIUS"], ["Fahrenheit", "FAHRENHEIT"]]}], "output": "Number", "colour": 65, "tooltip": "#blk-esp32_temperature_tooltip#", "helpUrl": ""}, {"type": "xpt2046_get_pos", "message0": "#blk-xpt2046_get_pos#", "args0": [], "inputsInline": true, "output": "Array", "colour": 230, "tooltip": "#blk-xpt2046_get_pos_tooltip#", "helpUrl": ""}, {"type": "xpt2046_init", "message0": "#blk-xpt2046_init# %1 #blk-cs# %2 #blk-int# %3 #blk-width# %4 #blk-height# %5 #blk-min_max_x# %6 %7 #blk-min_max_y# %8 %9 #blk-rotation# %10", "args0": [{"type": "field_dropdown", "name": "spi", "options": [["SPI1", "spi1"], ["SPI2", "spi2"], ["Soft SPI1", "softSpi1"], ["Soft SPI2", "softSpi2"]]}, {"type": "field_number", "name": "cs", "min": 0, "precision": 1, "value": 33}, {"type": "field_number", "name": "int", "min": 0, "precision": 1, "value": 36}, {"type": "field_number", "name": "width", "min": 0, "precision": 1, "value": 320}, {"type": "field_number", "name": "height", "min": 0, "precision": 1, "value": 240}, {"type": "field_number", "name": "x_min", "min": 0, "precision": 1, "value": 100}, {"type": "field_number", "name": "x_max", "min": 0, "precision": 1, "value": 1900}, {"type": "field_number", "name": "y_min", "min": 0, "precision": 1, "value": 100}, {"type": "field_number", "name": "y_max", "min": 0, "precision": 1, "value": 1900}, {"type": "field_dropdown", "name": "rotation", "options": [["0", "0"], ["90", "90"], ["180", "180"], ["270", "270"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-xpt2046_init_tooltip#", "helpUrl": ""}, {"type": "xpt2046_in_circle", "message0": "#blk-xpt2046_in_circle# %1 #blk-is_in_circle# #blk-xy# %2 %3 #blk-r# %4", "args0": [{"type": "input_value", "name": "pos", "check": "Array"}, {"type": "input_value", "name": "x", "check": "Number"}, {"type": "input_value", "name": "y", "check": "Number"}, {"type": "input_value", "name": "r", "check": "Number"}], "inputsInline": true, "output": "Boolean", "colour": 230, "tooltip": "#blk-xpt2046_in_circle_tooltip#", "helpUrl": ""}, {"type": "xpt2046_in_rect", "message0": "#blk-xpt2046_in_rect# %1 #blk-is_in_rectangle# #blk-xy# %2 %3 #blk-wh# %4 %5", "args0": [{"type": "input_value", "name": "pos", "check": "Array"}, {"type": "input_value", "name": "x", "check": "Number"}, {"type": "input_value", "name": "y", "check": "Number"}, {"type": "input_value", "name": "w", "check": "Number"}, {"type": "input_value", "name": "h", "check": "Number"}], "inputsInline": true, "output": "Boolean", "colour": 230, "tooltip": "#blk-xpt2046_in_rect_tooltip#", "helpUrl": ""}, {"type": "max6675_init", "message0": "#blk-max6675_init# %1 #blk-and_cs_pin# %2", "args0": [{"type": "field_dropdown", "name": "spi", "options": [["SPI1", "spi1"], ["SPI2", "spi2"], ["Soft SPI1", "softSpi1"], ["Soft SPI2", "softSpi2"]]}, {"type": "field_dropdown", "name": "cs", "options": [["0 (Boot Button)", "0"], ["2 (Built-in LED)", "2"], ["4", "4"], ["5", "5"], ["12", "12"], ["13", "13"], ["14", "14"], ["15", "15"], ["16", "16"], ["17", "17"], ["18", "18"], ["19", "19"], ["21", "21"], ["22", "22"], ["23", "23"], ["25", "25"], ["26", "26"], ["27", "27"], ["32", "32"], ["33", "33"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-max6675_init_tooltip#", "helpUrl": ""}, {"type": "max6675_read", "message0": "#blk-max6675_read# %1", "args0": [{"type": "field_dropdown", "name": "unit", "options": [["Celsius", "celsius"], ["Fahrenheit", "fahrenheit"], ["Kelvin", "kelvin"]]}], "output": "Number", "colour": 230, "tooltip": "#blk-max6675_read_tooltip#", "helpUrl": ""}, {"type": "scaled_text_text", "message0": "#blk-scaled_text_text# %1 #blk-at_xy# %2 %3 #blk-color# %4 #blk-scale# %5", "args0": [{"type": "input_value", "name": "text", "check": "String"}, {"type": "input_value", "name": "x", "check": "Number"}, {"type": "input_value", "name": "y", "check": "Number"}, {"type": "input_value", "name": "color", "check": ["Number", "Color_ili9341", "Color_st7789"]}, {"type": "field_dropdown", "name": "scale", "options": [["2x", "2"], ["3x", "3"], ["4x", "4"], ["5x", "5"], ["6x", "6"], ["7x", "7"], ["8x", "8"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-scaled_text_text_tooltip#", "helpUrl": ""}, {"type": "scaled_text_text_with_background", "message0": "#blk-scaled_text_text_with_background# %1 #blk-at_xy# %2 %3 #blk-color# %4 #blk-background# %5 #blk-scale# %6", "args0": [{"type": "input_value", "name": "text", "check": "String"}, {"type": "input_value", "name": "x", "check": "Number"}, {"type": "input_value", "name": "y", "check": "Number"}, {"type": "input_value", "name": "color", "check": ["Number", "Color_ili9341", "Color_st7789"]}, {"type": "input_value", "name": "background", "check": ["Number", "Color_ili9341", "Color_st7789"]}, {"type": "field_dropdown", "name": "scale", "options": [["2x", "2"], ["3x", "3"], ["4x", "4"], ["5x", "5"], ["6x", "6"], ["7x", "7"], ["8x", "8"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-scaled_text_text_with_background_tooltip#", "helpUrl": ""}, {"type": "scaled_text_init", "message0": "#blk-scaled_text_init# %1", "args0": [{"type": "field_dropdown", "name": "type", "options": [["SSD-1306", "SSD1306"], ["ILI9341", "ILI9341"], ["ST7789", "ST7789"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-scaled_text_init_tooltip#", "helpUrl": ""}, {"type": "music_play_tone", "message0": "#blk-music_play_tone# %1 #blk-hz# #blk-for# %2 #blk-ms# #blk-and# %3", "args0": [{"type": "input_value", "name": "freq", "check": "Number"}, {"type": "input_value", "name": "ms", "check": "Number"}, {"type": "field_dropdown", "name": "wait", "options": [["wait", "True"], ["don't wait", "False"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-music_play_tone_tooltip#", "helpUrl": ""}, {"type": "music_is_playing", "message0": "#blk-music_is_playing#", "args0": [], "inputsInline": true, "output": "Boolean", "colour": 230, "tooltip": "#blk-music_is_playing_tooltip#", "helpUrl": ""}, {"type": "music_init", "message0": "#blk-music_init# %1", "args0": [{"type": "field_dropdown", "name": "pin", "options": [["0 (Boot Button)", "0"], ["2 (Built-in LED)", "2"], ["4", "4"], ["5", "5"], ["12", "12"], ["13", "13"], ["14", "14"], ["15", "15"], ["16", "16"], ["17", "17"], ["18", "18"], ["19", "19"], ["21", "21"], ["22", "22"], ["23", "23"], ["25", "25"], ["26", "26"], ["27", "27"], ["32", "32"], ["33", "33"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-music_init_tooltip#", "helpUrl": ""}, {"type": "music_play_notes", "message0": "#blk-music_play_notes# %1 #blk-repeat# %2 #blk-times# #blk-and# %3", "args0": [{"type": "input_value", "name": "notes", "check": "String"}, {"type": "input_value", "name": "loops", "check": "Number"}, {"type": "field_dropdown", "name": "wait", "options": [["wait", "True"], ["don't wait", "False"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-music_play_notes_tooltip#", "helpUrl": ""}, {"type": "music_stop", "message0": "#blk-music_stop#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-music_stop_tooltip#", "helpUrl": ""}, {"type": "music_play_rtttl", "message0": "#blk-music_play_rtttl# %1 #blk-repeat# %2 #blk-times# #blk-and# %3", "args0": [{"type": "input_value", "name": "rtttl", "check": "String"}, {"type": "input_value", "name": "loops", "check": "Number"}, {"type": "field_dropdown", "name": "wait", "options": [["wait", "True"], ["don't wait", "False"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-music_play_rtttl_tooltip#", "helpUrl": ""}, {"type": "music_update", "message0": "#blk-music_update#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-music_update_tooltip#", "helpUrl": ""}, {"type": "hx710_read", "message0": "#blk-hx710_read# %1", "args0": [{"type": "field_dropdown", "name": "next", "options": [["Diffential Input (10Hz)", "DIFF_10HZ"], ["Temperature / Analog Voltage", "TEMPERATURE_AVOLTAGE"], ["Diffential Input (40Hz)", "DIFF_40HZ"]]}], "inputsInline": true, "output": "Number", "colour": 230, "tooltip": "#blk-hx710_read_tooltip#", "helpUrl": ""}, {"type": "hx710_init", "message0": "#blk-hx710_init_with_dt_pin# %1 #blk-and_sck_pin# %2", "args0": [{"type": "field_dropdown", "name": "dt", "options": [["4", "4"], ["5", "5"], ["12", "12"], ["13", "13"], ["14", "14"], ["15", "15"], ["16", "16"], ["17", "17"], ["18", "18"], ["19", "19"], ["21", "21"], ["22", "22"], ["23", "23"], ["25", "25"], ["26", "26"], ["27", "27"], ["32", "32"], ["33", "33"], ["34", "34"], ["35", "35"], ["36", "36"], ["39", "39"]]}, {"type": "field_dropdown", "name": "sck", "options": [["4", "4"], ["5", "5"], ["12", "12"], ["13", "13"], ["14", "14"], ["15", "15"], ["16", "16"], ["17", "17"], ["18", "18"], ["19", "19"], ["21", "21"], ["22", "22"], ["23", "23"], ["25", "25"], ["26", "26"], ["27", "27"], ["32", "32"], ["33", "33"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-hx710_init_tooltip#", "helpUrl": ""}, {"type": "setBluetoothCmds", "message0": "#blk-setBluetoothCmds# %1", "args0": [{"type": "field_dropdown", "name": "value", "options": [["disabled", "DISABLED"], ["enabled", "ENABLED"]]}], "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-setBluetoothCmds_tooltip#", "helpUrl": ""}, {"type": "ez_ds18x20_device_count", "message0": "#blk-ez_ds18x20_device_count#", "args0": [], "output": "Number", "colour": 230, "tooltip": "#blk-ez_ds18x20_device_count_tooltip#", "helpUrl": ""}, {"type": "ez_ds18x20_init", "message0": "#blk-ez_ds18x20_init# %1", "args0": [{"type": "field_dropdown", "name": "pin", "options": [["4", "4"], ["5", "5"], ["12", "12"], ["13", "13"], ["14", "14"], ["15", "15"], ["16", "16"], ["17", "17"], ["18", "18"], ["19", "19"], ["21", "21"], ["22", "22"], ["23", "23"], ["25", "25"], ["26", "26"], ["27", "27"], ["32", "32"], ["33", "33"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-ez_ds18x20_init_tooltip#", "helpUrl": ""}, {"type": "ez_ds18x20_convert_temp", "message0": "#blk-ez_ds18x20_convert_temp#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-ez_ds18x20_convert_temp_tooltip#", "helpUrl": ""}, {"type": "ez_ds18x20_read_temp", "message0": "#blk-ez_ds18x20_read_temp# %1", "args0": [{"type": "input_value", "name": "index", "check": "Number"}], "inputsInline": true, "output": "Number", "colour": 230, "tooltip": "#blk-ez_ds18x20_read_temp_tooltip#", "helpUrl": ""}, {"type": "xglcd_font_load", "message0": "#blk-xglcd_font_load# %1 #blk-width# %2 #blk-height# %3", "args0": [{"type": "input_value", "name": "filename", "check": "String"}, {"type": "field_number", "name": "width", "min": 0, "precision": 1, "value": 5}, {"type": "field_number", "name": "height", "min": 0, "precision": 1, "value": 8}], "inputsInline": true, "output": "Font_xglcd", "colour": 230, "tooltip": "#blk-xglcd_font_load_tooltip#", "helpUrl": ""}, {"type": "esp_now_add_peer", "message0": "#blk-esp_now_add_peer# %1", "args0": [{"type": "input_value", "name": "mac", "check": "String"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-esp_now_add_peer_tooltip#", "helpUrl": ""}, {"type": "esp_now_msg_available", "message0": "#blk-esp_now_msg_available#", "args0": [], "inputsInline": true, "output": "Boolean", "colour": 65, "tooltip": "#blk-esp_now_msg_available_tooltip#", "helpUrl": ""}, {"type": "esp_now_remove_peer", "message0": "#blk-esp_now_remove_peer# %1", "args0": [{"type": "input_value", "name": "mac", "check": "String"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-esp_now_remove_peer_tooltip#", "helpUrl": ""}, {"type": "esp_now_init", "message0": "#blk-init_esp_now#", "args0": [], "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-esp_now_init_tooltip#", "helpUrl": ""}, {"type": "esp_now_send", "message0": "#blk-esp_now_send_message# %1 #blk-to# %2", "args0": [{"type": "input_value", "name": "value", "check": "String"}, {"type": "input_value", "name": "mac", "check": "String"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-esp_now_send_tooltip#", "helpUrl": ""}, {"type": "esp_now_get_msg", "message0": "#blk-esp_now_get_msg_wait_for# %1", "args0": [{"type": "input_value", "name": "timeout", "check": "Number"}], "inputsInline": true, "output": "Array", "colour": 65, "tooltip": "#blk-esp_now_get_msg_tooltip#", "helpUrl": ""}, {"type": "gy33_uart_init", "message0": "#blk-gy33_uart_init# %1", "args0": [{"type": "field_dropdown", "name": "uart", "options": [["UART1", "1"], ["UART2", "2"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-gy33_uart_init_tooltip#", "helpUrl": ""}, {"type": "gy33_uart_init", "message0": "#blk-gy33_uart_init# %1", "args0": [{"type": "field_dropdown", "name": "uart", "options": [["UART1", "1"], ["UART2", "2"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-gy33_uart_init_tooltip#", "helpUrl": ""}, {"type": "gy33_uart_calibrate_black", "message0": "#blk-gy33_uart_calibrate_black#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-gy33_uart_calibrate_black_tooltip#", "helpUrl": ""}, {"type": "gy33_uart_update", "message0": "#blk-gy33_uart_update#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-gy33_uart_update_tooltip#", "helpUrl": ""}, {"type": "gy33_uart_set_integration_time", "message0": "#blk-gy33_uart_set_integration_time# %1", "args0": [{"type": "field_dropdown", "name": "time", "options": [["700 ms", "700"], ["154 ms", "154"], ["100 ms (default)", "100"], ["24 ms", "24"], ["2.4 ms", "2.4"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-gy33_uart_set_integration_time_tooltip#", "helpUrl": ""}, {"type": "gy33_uart_get_raw", "message0": "#blk-gy33_uart_get_raw# %1", "args0": [{"type": "field_dropdown", "name": "type", "options": [["Clear", "c"], ["Red", "r"], ["Green", "g"], ["Blue", "b"], ["All (List)", "all"]]}], "output": ["Number", "Array"], "colour": 230, "tooltip": "#blk-gy33_uart_get_raw_tooltip#", "helpUrl": ""}, {"type": "gy33_uart_calibrate_white", "message0": "#blk-gy33_uart_calibrate_white#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-gy33_uart_calibrate_white_tooltip#", "helpUrl": ""}, {"type": "gy33_uart_set_led", "message0": "#blk-gy33_uart_set_led# %1", "args0": [{"type": "field_dropdown", "name": "power", "options": [["10 (Max)", "10"], ["9", "9"], ["8", "8"], ["7", "7"], ["6", "6"], ["5", "5"], ["4", "4"], ["3", "3"], ["2", "2"], ["1", "1"], ["0 (Off)", "0"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-gy33_uart_set_led_tooltip#", "helpUrl": ""}, {"type": "gy33_uart_get_calibrated", "message0": "#blk-gy33_uart_get_calibrated# %1", "args0": [{"type": "field_dropdown", "name": "type", "options": [["Clear", "c"], ["Red", "r"], ["Green", "g"], ["Blue", "b"], ["All (List)", "all"]]}], "output": ["Number", "Array"], "colour": 230, "tooltip": "#blk-gy33_uart_get_calibrated_tooltip#", "helpUrl": ""}, {"type": "exit", "message0": "#blk-exit_program#", "previousStatement": null, "colour": 65, "tooltip": "#blk-exit_tooltip#", "helpUrl": ""}, {"type": "run_python_and_return", "message0": "#blk-run_python_and_return# %1", "args0": [{"type": "field_input", "name": "value", "text": "int(1.1)"}], "output": null, "colour": 65, "tooltip": "#blk-run_python_and_return_tooltip#", "helpUrl": ""}, {"type": "set_pin_mode", "message0": "#blk-set_pin# %1 #blk-to_mode# %2", "args0": [{"type": "field_dropdown", "name": "pin", "options": [["0 (Boot Button)", "0"], ["2 (Built-in LED)", "2"], ["4", "4"], ["5", "5"], ["12", "12"], ["13", "13"], ["14", "14"], ["15", "15"], ["16", "16"], ["17", "17"], ["18", "18"], ["19", "19"], ["21", "21"], ["22", "22"], ["23", "23"], ["25", "25"], ["26", "26"], ["27", "27"], ["32", "32"], ["33", "33"]]}, {"type": "field_dropdown", "name": "mode", "options": [["#blk-input#", "INPUT"], ["#blk-input_pullup#", "INPUT_PULLUP"], ["#blk-output#", "OUTPUT"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-set_pin_tooltip#", "helpUrl": ""}, {"type": "analog_read_pin", "message0": "#blk-analog_read_pin# %1", "args0": [{"type": "field_dropdown", "name": "pin", "options": [["32", "32"], ["33", "33"], ["34", "34"], ["35", "35"], ["36", "36"], ["39", "39"]]}], "output": "Number", "colour": 230, "tooltip": "#blk-analog_read_pin_tooltip#", "helpUrl": ""}, {"type": "hc_sr04_ping", "message0": "#blk-hc_sr04_ping_trig# %1 #blk-echo# %2 #blk-unit# %3", "args0": [{"type": "field_dropdown", "name": "trig", "options": [["0 (Boot Button)", "0"], ["2 (Built-in LED)", "2"], ["4", "4"], ["5", "5"], ["12", "12"], ["13", "13"], ["14", "14"], ["15", "15"], ["16", "16"], ["17", "17"], ["18", "18"], ["19", "19"], ["21", "21"], ["22", "22"], ["23", "23"], ["25", "25"], ["26", "26"], ["27", "27"], ["32", "32"], ["33", "33"]]}, {"type": "field_dropdown", "name": "echo", "options": [["0 (Boot Button)", "0"], ["2 (Built-in LED)", "2"], ["4", "4"], ["5", "5"], ["12", "12"], ["13", "13"], ["14", "14"], ["15", "15"], ["16", "16"], ["17", "17"], ["18", "18"], ["19", "19"], ["21", "21"], ["22", "22"], ["23", "23"], ["25", "25"], ["26", "26"], ["27", "27"], ["32", "32"], ["33", "33"]]}, {"type": "field_dropdown", "name": "unit", "options": [["cm", "CM"], ["us", "US"]]}], "output": "Number", "colour": 230, "tooltip": "#blk-hc_sr04_ping_tooltip#", "helpUrl": ""}, {"type": "servo_write_us", "message0": "#blk-servo_write# %1 #blk-to# %2 #blk-us#", "args0": [{"type": "field_dropdown", "name": "pin", "options": [["0 (Boot Button)", "0"], ["2 (Built-in LED)", "2"], ["4", "4"], ["5", "5"], ["12", "12"], ["13", "13"], ["14", "14"], ["15", "15"], ["16", "16"], ["17", "17"], ["18", "18"], ["19", "19"], ["21", "21"], ["22", "22"], ["23", "23"], ["25", "25"], ["26", "26"], ["27", "27"], ["32", "32"], ["33", "33"]]}, {"type": "input_value", "name": "us", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-servo_write_us_tooltip#", "helpUrl": ""}, {"type": "analog_write_pin", "message0": "#blk-analog_write_pin# %1 #blk-to# %2", "args0": [{"type": "field_dropdown", "name": "pin", "options": [["0 (Boot Button)", "0"], ["2 (Built-in LED)", "2"], ["4", "4"], ["5", "5"], ["12", "12"], ["13", "13"], ["14", "14"], ["15", "15"], ["16", "16"], ["17", "17"], ["18", "18"], ["19", "19"], ["21", "21"], ["22", "22"], ["23", "23"], ["25", "25"], ["26", "26"], ["27", "27"], ["32", "32"], ["33", "33"]]}, {"type": "input_value", "name": "value", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-analog_write_pin_tooltip#", "helpUrl": ""}, {"type": "digital_read_pin", "message0": "#blk-read_pin# %1", "args0": [{"type": "field_dropdown", "name": "pin", "options": [["0 (Boot Button)", "0"], ["2 (Built-in LED)", "2"], ["4", "4"], ["5", "5"], ["12", "12"], ["13", "13"], ["14", "14"], ["15", "15"], ["16", "16"], ["17", "17"], ["18", "18"], ["19", "19"], ["21", "21"], ["22", "22"], ["23", "23"], ["25", "25"], ["26", "26"], ["27", "27"], ["32", "32"], ["33", "33"]]}], "output": "Number", "colour": 230, "tooltip": "#blk-read_pin_tooltip#", "helpUrl": ""}, {"type": "touch_read_pin", "message0": "#blk-touch_read_pin# %1", "args0": [{"type": "field_dropdown", "name": "pin", "options": [["0", "0"], ["2", "2"], ["4", "4"], ["12", "12"], ["13", "13"], ["14", "14"], ["15", "15"], ["27", "27"], ["32", "32"], ["33", "33"]]}], "output": "Number", "colour": 230, "tooltip": "#blk-touch_read_pin_tooltip#", "helpUrl": ""}, {"type": "set_analog_write_freq", "message0": "#blk-set_analog_write_freq# %1 #blk-to# %2 #blk-hz#", "args0": [{"type": "field_dropdown", "name": "pin", "options": [["0 (Boot Button)", "0"], ["2 (Built-in LED)", "2"], ["4", "4"], ["5", "5"], ["12", "12"], ["13", "13"], ["14", "14"], ["15", "15"], ["16", "16"], ["17", "17"], ["18", "18"], ["19", "19"], ["21", "21"], ["22", "22"], ["23", "23"], ["25", "25"], ["26", "26"], ["27", "27"], ["32", "32"], ["33", "33"]]}, {"type": "input_value", "name": "frequency", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-set_analog_write_freq_tooltip#", "helpUrl": ""}, {"type": "servo_write_deg", "message0": "#blk-servo_write# %1 #blk-to# %2 #blk-deg#", "args0": [{"type": "field_dropdown", "name": "pin", "options": [["0 (Boot Button)", "0"], ["2 (Built-in LED)", "2"], ["4", "4"], ["5", "5"], ["12", "12"], ["13", "13"], ["14", "14"], ["15", "15"], ["16", "16"], ["17", "17"], ["18", "18"], ["19", "19"], ["21", "21"], ["22", "22"], ["23", "23"], ["25", "25"], ["26", "26"], ["27", "27"], ["32", "32"], ["33", "33"]]}, {"type": "input_value", "name": "deg", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-servo_write_deg_tooltip#", "helpUrl": ""}, {"type": "digital_write_pin", "message0": "#blk-write_pin# %1 #blk-to# %2", "args0": [{"type": "field_dropdown", "name": "pin", "options": [["0 (Boot Button)", "0"], ["2 (Built-in LED)", "2"], ["4", "4"], ["5", "5"], ["12", "12"], ["13", "13"], ["14", "14"], ["15", "15"], ["16", "16"], ["17", "17"], ["18", "18"], ["19", "19"], ["21", "21"], ["22", "22"], ["23", "23"], ["25", "25"], ["26", "26"], ["27", "27"], ["32", "32"], ["33", "33"]]}, {"type": "input_value", "name": "value", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-write_pin_tooltip#", "helpUrl": ""}, {"type": "non_block_init", "message0": "#blk-non_block_init#", "args0": [], "previousStatement": null, "nextStatement": null, "colour": 160, "tooltip": "#blk-non_block_init_tooltip#", "helpUrl": ""}, {"type": "non_block_read", "message0": "#blk-non_block_read# %1 #blk-characters#", "args0": [{"type": "input_value", "name": "size", "check": "Number"}], "output": "String", "colour": 160, "tooltip": "#blk-non_block_read_tooltip#", "helpUrl": ""}, {"type": "non_block_readline", "message0": "#blk-non_block_readline#", "args0": [], "output": "String", "colour": 160, "tooltip": "#blk-non_block_readline_tooltip#", "helpUrl": ""}, {"type": "bme280_init", "message0": "#blk-bme280_init# %1 #blk-with_address# %2", "args0": [{"type": "field_dropdown", "name": "id", "options": [["I2C0", "i2c0"], ["I2C1", "i2c1"], ["Soft I2C0", "softI2c0"], ["Soft I2C1", "softI2c1"]]}, {"type": "field_input", "name": "addr", "text": "118"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-bme280_init_tooltip#", "helpUrl": ""}, {"type": "bme280_altitude", "message0": "#blk-bme280_altitude#", "args0": [], "output": "Number", "colour": 230, "tooltip": "#blk-bme280_altitude_tooltip#", "helpUrl": ""}, {"type": "bme280_pressure", "message0": "#blk-bme280_pressure#", "args0": [], "output": "Number", "colour": 230, "tooltip": "#blk-bme280_pressure_tooltip#", "helpUrl": ""}, {"type": "bme280_read", "message0": "#blk-bme280_read#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-bme280_read_tooltip#", "helpUrl": ""}, {"type": "bme280_temperature", "message0": "#blk-bme280_temperature#", "args0": [], "output": "Number", "colour": 230, "tooltip": "#blk-bme280_temperature_tooltip#", "helpUrl": ""}, {"type": "bme280_humidity", "message0": "#blk-bme280_humidity#", "args0": [], "output": "Number", "colour": 230, "tooltip": "#blk-bme280_humidity_tooltip#", "helpUrl": ""}, {"type": "encoder_get_position", "message0": "#blk-encoder_get_position#", "args0": [], "output": "Number", "colour": 230, "tooltip": "#blk-encoder_get_position_tooltip#", "helpUrl": ""}, {"type": "encoder_set_position", "message0": "#blk-encoder_set_position# %1", "args0": [{"type": "input_value", "name": "value"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-encoder_set_position_tooltip#", "helpUrl": ""}, {"type": "encoder_init", "message0": "#blk-encoder_init# %1 #blk-and# %2", "args0": [{"type": "field_dropdown", "name": "pin1", "options": [["4", "4"], ["5", "5"], ["12", "12"], ["13", "13"], ["14", "14"], ["15", "15"], ["16", "16"], ["17", "17"], ["18", "18"], ["19", "19"], ["21", "21"], ["22", "22"], ["23", "23"], ["25", "25"], ["26", "26"], ["27", "27"], ["32", "32"], ["33", "33"]]}, {"type": "field_dropdown", "name": "pin2", "options": [["4", "4"], ["5", "5"], ["12", "12"], ["13", "13"], ["14", "14"], ["15", "15"], ["16", "16"], ["17", "17"], ["18", "18"], ["19", "19"], ["21", "21"], ["22", "22"], ["23", "23"], ["25", "25"], ["26", "26"], ["27", "27"], ["32", "32"], ["33", "33"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-encoder_init_tooltip#", "helpUrl": ""}, {"type": "encoder_get_speed", "message0": "#blk-encoder_get_speed#", "args0": [], "output": "Number", "colour": 230, "tooltip": "#blk-encoder_get_speed_tooltip#", "helpUrl": ""}, {"type": "wlan_get_ip", "message0": "#blk-wlan_get_ip#", "args0": [], "output": "String", "colour": 65, "tooltip": "#blk-wlan_get_ip_tooltip#", "helpUrl": ""}, {"type": "start_as_ap", "message0": "#blk-start_as_ap# %1 #blk-with_password# %2", "args0": [{"type": "field_input", "name": "ssid", "text": "IoTy_Device"}, {"type": "field_input", "name": "password", "text": ""}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-start_as_ap_tooltip#", "helpUrl": ""}, {"type": "connect_to_configured_wifi", "message0": "#blk-connect_to_configured_wifi#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-connect_to_configured_wifi_tooltip#", "helpUrl": ""}, {"type": "connect_to_wifi", "message0": "#blk-connect_to_wifi# %1 #blk-with_password# %2", "args0": [{"type": "field_input", "name": "ssid", "text": "SSID"}, {"type": "field_input", "name": "password", "text": "password"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-connect_to_wifi_tooltip#", "helpUrl": ""}, {"type": "ez_timer_cb", "message0": "#blk-ez_timer_run_every# %1 #blk-seconds# #blk-with_starting_offset_of# %2 #blk-seconds# %3 %4", "args0": [{"type": "field_number", "name": "interval", "value": 1, "min": 0}, {"type": "field_number", "name": "offset", "value": 0}, {"type": "input_dummy"}, {"type": "input_statement", "name": "statements"}], "inputsInline": true, "nextStatement": null, "colour": 65, "tooltip": "#blk-ez_timer_cb_tooltip#", "helpUrl": ""}, {"type": "ez_timer_init", "message0": "#blk-ez_timer_init#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-ez_timer_init_tooltip#", "helpUrl": ""}, {"type": "ez_timer_set_timeout", "message0": "#blk-ez_timer_set_timeout# %1 #blk-seconds# %2 %3", "args0": [{"type": "field_number", "name": "timeout", "value": 1, "min": 0}, {"type": "input_dummy"}, {"type": "input_statement", "name": "statements"}], "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-ez_timer_set_timeout_tooltip#", "helpUrl": ""}, {"type": "ez_timer_update", "message0": "#blk-ez_timer_update#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-ez_timer_update_tooltip#", "helpUrl": ""}, {"type": "i2c_readfrom_bytes", "message0": "%1 #blk-i2c_readfrom_addr# %2 #blk-number_of_bytes# %3 #blk-and# %4", "args0": [{"type": "field_dropdown", "name": "id", "options": [["I2C0", "i2c0"], ["I2C1", "i2c1"], ["Soft I2C0", "softI2c0"], ["Soft I2C1", "softI2c1"]]}, {"type": "input_value", "name": "address", "check": "Number"}, {"type": "input_value", "name": "bytes", "check": "Number"}, {"type": "field_dropdown", "name": "stop", "options": [["send STOP", "STOP"], ["allow repeated", "REPEATED"]]}], "output": "Bytes", "colour": 330, "tooltip": "#blk-i2c_readfrom_bytes_tooltip#", "helpUrl": ""}, {"type": "i2c_readfrom", "message0": "%1 #blk-i2c_readfrom_addr# %2 #blk-of_format# %3 #blk-and# %4", "args0": [{"type": "field_dropdown", "name": "id", "options": [["I2C0", "i2c0"], ["I2C1", "i2c1"], ["Soft I2C0", "softI2c0"], ["Soft I2C1", "softI2c1"]]}, {"type": "input_value", "name": "address", "check": "Number"}, {"type": "field_dropdown", "name": "format", "options": [["Int8", "b"], ["UInt8", "B"], ["Int16LE", "h"], ["UInt16BE", ">H"], ["Int32BE", ">i"], ["UInt32BE", ">I"], ["Float32BE", ">f"], ["Float64BE", ">d"]]}, {"type": "field_dropdown", "name": "stop", "options": [["send STOP", "STOP"], ["allow repeated", "REPEATED"]]}], "output": "Number", "colour": 330, "tooltip": "", "helpUrl": ""}, {"type": "i2c_scan", "message0": "#blk-i2c_scan# %1", "args0": [{"type": "field_dropdown", "name": "id", "options": [["I2C0", "i2c0"], ["I2C1", "i2c1"], ["Soft I2C0", "softI2c0"], ["Soft I2C1", "softI2c1"]]}], "output": "Array", "colour": 330, "tooltip": "", "helpUrl": ""}, {"type": "i2c_init_with_pins", "message0": "#blk-i2c_init# %1 #blk-on_pins# SCL %2 SDA %3 #blk-freq# %4", "args0": [{"type": "field_dropdown", "name": "id", "options": [["I2C0", "i2c0"], ["I2C1", "i2c1"], ["Soft I2C0", "softI2c0"], ["Soft I2C1", "softI2c1"]]}, {"type": "field_number", "name": "scl", "value": "18"}, {"type": "field_number", "name": "sda", "value": "19"}, {"type": "field_number", "name": "freq", "value": "100000"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 330, "tooltip": "#blk-i2c_init_with_pins_tooltip#", "helpUrl": ""}, {"type": "i2c_writeto_mem", "message0": "%1 #blk-i2c_writeto_addr# %2 #blk-at_register# %3 #blk-with_value# %4 #blk-of_format# %5", "args0": [{"type": "field_dropdown", "name": "id", "options": [["I2C0", "i2c0"], ["I2C1", "i2c1"], ["Soft I2C0", "softI2c0"], ["Soft I2C1", "softI2c1"]]}, {"type": "input_value", "name": "address", "check": "Number"}, {"type": "input_value", "name": "register", "check": "Number"}, {"type": "input_value", "name": "value", "check": "Number"}, {"type": "field_dropdown", "name": "format", "options": [["Int8", "b"], ["UInt8", "B"], ["Int16LE", "h"], ["UInt16BE", ">H"], ["Int32BE", ">i"], ["UInt32BE", ">I"], ["Float32BE", ">f"], ["Float64BE", ">d"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 330, "tooltip": "", "helpUrl": ""}, {"type": "i2c_readfrom_mem", "message0": "%1 #blk-i2c_readfrom_addr# %2 #blk-at_register# %3 #blk-of_format# %4", "args0": [{"type": "field_dropdown", "name": "id", "options": [["I2C0", "i2c0"], ["I2C1", "i2c1"], ["Soft I2C0", "softI2c0"], ["Soft I2C1", "softI2c1"]]}, {"type": "input_value", "name": "address", "check": "Number"}, {"type": "input_value", "name": "register", "check": "Number"}, {"type": "field_dropdown", "name": "format", "options": [["Int8", "b"], ["UInt8", "B"], ["Int16LE", "h"], ["UInt16BE", ">H"], ["Int32BE", ">i"], ["UInt32BE", ">I"], ["Float32BE", ">f"], ["Float64BE", ">d"]]}], "output": "Number", "colour": 330, "tooltip": "", "helpUrl": ""}, {"type": "i2c_init", "message0": "#blk-i2c_init# %1 #blk-freq# %2", "args0": [{"type": "field_dropdown", "name": "id", "options": [["I2C0 on pins 18 (scl), 19\u00a0(sda)", "0"], ["I2C1 on pins 25 (scl), 26\u00a0(sda)", "1"]]}, {"type": "field_number", "name": "freq", "value": "100000"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 330, "tooltip": "#blk-i2c_init_tooltip#", "helpUrl": ""}, {"type": "i2c_writeto", "message0": "%1 #blk-i2c_writeto_addr# %2 #blk-with_value# %3 #blk-of_format# %4 #blk-and# %5", "args0": [{"type": "field_dropdown", "name": "id", "options": [["I2C0", "i2c0"], ["I2C1", "i2c1"], ["Soft I2C0", "softI2c0"], ["Soft I2C1", "softI2c1"]]}, {"type": "input_value", "name": "address", "check": "Number"}, {"type": "input_value", "name": "value", "check": "Number"}, {"type": "field_dropdown", "name": "format", "options": [["Int8", "b"], ["UInt8", "B"], ["Int16LE", "h"], ["UInt16BE", ">H"], ["Int32BE", ">i"], ["UInt32BE", ">I"], ["Float32BE", ">f"], ["Float64BE", ">d"]]}, {"type": "field_dropdown", "name": "stop", "options": [["send STOP", "STOP"], ["allow repeated", "REPEATED"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 330, "tooltip": "", "helpUrl": ""}, {"type": "huskylens_results", "message0": "#blk-huskylens_results#", "args0": [], "output": "Array", "colour": 230, "tooltip": "#blk-huskylens_results_tooltip#", "helpUrl": ""}, {"type": "huskylens_learn", "message0": "#blk-huskylens_learn# %1", "args0": [{"type": "input_value", "name": "ID", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-huskylens_learn_tooltip#", "helpUrl": ""}, {"type": "huskylens_change_mode", "message0": "#blk-huskylens_change_mode# %1", "args0": [{"type": "field_dropdown", "name": "mode", "options": [["Object Tracking", "OBJECT_TRACKING"], ["Face Recognition", "FACE_RECOGNITION"], ["Object Recognition", "OBJECT_RECOGNITION"], ["Line Tracking", "LINE_TRACKING"], ["Color Recognition", "COLOR_RECOGNITION"], ["Tag Recognition", "TAG_RECOGNITION"], ["Object Classification", "OBJECT_CLASSIFICATION"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-huskylens_change_mode_tooltip#", "helpUrl": ""}, {"type": "huskylens_idInResults", "message0": "#blk-huskylens_idInResults# %1", "args0": [{"type": "input_value", "name": "ID", "check": "Number"}], "inputsInline": true, "output": "Boolean", "colour": 230, "tooltip": "#blk-huskylens_idInResults_tooltip#", "helpUrl": ""}, {"type": "huskylens_init_i2c", "message0": "#blk-huskylens_init_i2c# %1 #blk-with_address# %2", "args0": [{"type": "field_dropdown", "name": "id", "options": [["I2C0", "i2c0"], ["I2C1", "i2c1"], ["Soft I2C0", "softI2c0"], ["Soft I2C1", "softI2c1"]]}, {"type": "field_input", "name": "addr", "text": "50"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-huskylens_init_i2c_tooltip#", "helpUrl": ""}, {"type": "huskylens_closestBlockToCenter", "message0": "#blk-huskylens_get# %1 #blk-of_block_closest_to_center_of_screen_from_results#", "args0": [{"type": "field_dropdown", "name": "type", "options": [["Full result (as dictionary)", "ALL"], ["ID", "ID"], ["X center", "x"], ["Y center", "y"], ["Width", "width"], ["Height", "height"]]}], "output": null, "colour": 230, "tooltip": "#blk-huskylens_closestBlockToCenter_tooltip#", "helpUrl": ""}, {"type": "huskylens_request", "message0": "#blk-huskylens_request# %1", "args0": [{"type": "field_dropdown", "name": "type", "options": [["All", "requestAll"], ["Blocks Only", "blocks"], ["Arrows Only", "arrows"], ["Learned Only", "learned"], ["Learned Blocks Only", "learnedBlocks"], ["Learned Arrows Only", "learnedArrows"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-huskylens_request_tooltip#", "helpUrl": ""}, {"type": "huskylens_saveImage", "message0": "#blk-huskylens_saveImage# %1 #blk-and_save_to_sdcard#", "args0": [{"type": "field_dropdown", "name": "type", "options": [["Photo", "Picture"], ["Screenshot", "Screenshot"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-huskylens_saveImage_tooltip#", "helpUrl": ""}, {"type": "huskylens_get", "message0": "#blk-huskylens_get# %1", "args0": [{"type": "field_dropdown", "name": "type", "options": [["Count of all objects on screen", "count"], ["Number of learned objects", "learnedObjCount"], ["Frame number", "frameNumber"]]}], "output": "Number", "colour": 230, "tooltip": "#blk-huskylens_get_tooltip#", "helpUrl": ""}, {"type": "huskylens_saveLoadModel", "message0": "#blk-huskylens# %1 #blk-learned_models_on_slot# %2 #blk-of_sdcard#", "args0": [{"type": "field_dropdown", "name": "type", "options": [["Save", "save"], ["Load", "load"]]}, {"type": "input_value", "name": "slot", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-huskylens_saveLoadModel_tooltip#", "helpUrl": ""}, {"type": "huskylens_init_uart", "message0": "#blk-huskylens_init_uart# %1", "args0": [{"type": "field_dropdown", "name": "uart", "options": [["UART1", "1"], ["UART2", "2"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-huskylens_init_uart_tooltip#", "helpUrl": ""}, {"type": "huskylens_customText", "message0": "#blk-huskylens_customText# %1 #blk-at_position_x# %2 #blk-and_y# %3", "args0": [{"type": "input_value", "name": "text", "check": "String"}, {"type": "input_value", "name": "x", "check": "Number"}, {"type": "input_value", "name": "y", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-huskylens_customText_tooltip#", "helpUrl": ""}, {"type": "huskylens_clearText", "message0": "#blk-huskylens_clearText#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-huskylens_clearText_tooltip#", "helpUrl": ""}, {"type": "huskylens_requestByID", "message0": "#blk-huskylens_request# %1 #blk-and_ID# %2", "args0": [{"type": "field_dropdown", "name": "type", "options": [["Object", "getObjectByID"], ["Block", "getBlockByID"], ["Arrow", "getArrowByID"]]}, {"type": "input_value", "name": "ID", "check": "Number"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-huskylens_requestByID_tooltip#", "helpUrl": ""}, {"type": "huskylens_forget", "message0": "#blk-huskylens_forget#", "args0": [], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-huskylens_forget_tooltip#", "helpUrl": ""}, {"type": "huskylens_closestArrowToCenter", "message0": "#blk-huskylens_get# %1 #blk-of_arrow_closest_to_center_of_screen_from_results#", "args0": [{"type": "field_dropdown", "name": "type", "options": [["Full result (as dictionary)", "ALL"], ["ID", "ID"], ["X start", "xTail"], ["Y start", "yTail"], ["X end", "xHead"], ["Y end", "yHead"]]}], "output": null, "colour": 230, "tooltip": "#blk-huskylens_closestArrowToCenter_tooltip#", "helpUrl": ""}, {"type": "ucsv_close", "message0": "ucsv: #blk-close# %1", "args0": [{"type": "field_variable", "name": "variable", "variable": "csv1"}], "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-ucsv_close_tooltip#", "helpUrl": ""}, {"type": "ucsv_writerow", "message0": "ucsv: #blk-write_to# %1 #blk-with# %2", "args0": [{"type": "field_variable", "name": "variable", "variable": "csv1"}, {"type": "input_value", "name": "value", "check": "Array"}], "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-ucsv_writerow_tooltip#", "helpUrl": ""}, {"type": "ucsv_flush", "message0": "ucsv: #blk-flush# %1", "args0": [{"type": "field_variable", "name": "variable", "variable": "csv1"}], "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-ucsv_flush_tooltip#", "helpUrl": ""}, {"type": "ucsv_writer", "message0": "ucsv: #blk-set# %1 #blk-to_open# %2 #blk-for_writing# #blk-with_mode# %3 ", "args0": [{"type": "field_variable", "name": "variable", "variable": "csv1"}, {"type": "input_value", "name": "filename", "check": "String"}, {"type": "field_dropdown", "name": "mode", "options": [["write", "w"], ["append", "a"]]}], "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-ucsv_writer_tooltip#", "helpUrl": ""}, {"type": "ucsv_reader", "message0": "ucsv: #blk-set# %1 #blk-to_open# %2 #blk-for_reading#", "args0": [{"type": "field_variable", "name": "variable", "variable": "csv1"}, {"type": "input_value", "name": "filename", "check": "String"}], "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-ucsv_reader_tooltip#", "helpUrl": ""}, {"type": "ucsv_readrow", "message0": "ucsv: #blk-read_one_row_from# %1", "args0": [{"type": "field_variable", "name": "variable", "variable": "csv1"}], "output": "Array", "colour": 230, "tooltip": "#blk-ucsv_readrow_tooltip#", "helpUrl": ""}, {"type": "gps_init", "message0": "#blk-gps_init# %1", "args0": [{"type": "field_dropdown", "name": "uart", "options": [["UART1", "1"], ["UART2", "2"]]}], "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-gps_init_tooltip#", "helpUrl": ""}, {"type": "gps_lng", "message0": "#blk-gps_lng_as# %1", "args0": [{"type": "field_dropdown", "name": "type", "options": [["Decimal Degrees", "dd"], ["Degrees, Decimal Minutes", "ddm"]]}], "output": ["Number", "Array"], "colour": 230, "tooltip": "#blk-gps_lng_tooltip#", "helpUrl": ""}, {"type": "gps_time", "message0": "#blk-gps_time#", "args0": [], "output": "Array", "colour": 230, "tooltip": "#blk-gps_time_tooltip#", "helpUrl": ""}, {"type": "gps_lat", "message0": "#blk-gps_lat_as# %1", "args0": [{"type": "field_dropdown", "name": "type", "options": [["Decimal Degrees", "dd"], ["Degrees, Decimal Minutes", "ddm"]]}], "output": ["Number", "Array"], "colour": 230, "tooltip": "#blk-gps_lat_tooltip#", "helpUrl": ""}, {"type": "gps_cog", "message0": "#blk-gps_cog#", "args0": [], "output": "Number", "colour": 230, "tooltip": "#blk-gps_cog_tooltip#", "helpUrl": ""}, {"type": "gps_update", "message0": "#blk-gps_update#", "args0": [], "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "#blk-gps_update_tooltip#", "helpUrl": ""}, {"type": "gps_alt", "message0": "#blk-gps_alt#", "args0": [], "output": "Number", "colour": 230, "tooltip": "#blk-gps_alt_tooltip#", "helpUrl": ""}, {"type": "gps_datetime", "message0": "#blk-gps_datetime#", "args0": [], "output": "Array", "colour": 230, "tooltip": "#blk-gps_datetime_tooltip#", "helpUrl": ""}, {"type": "gps_date", "message0": "#blk-gps_date#", "args0": [], "output": "Array", "colour": 230, "tooltip": "#blk-gps_date_tooltip#", "helpUrl": ""}, {"type": "gps_sog", "message0": "#blk-gps_sog#", "args0": [], "output": "Number", "colour": 230, "tooltip": "#blk-gps_sog_tooltip#", "helpUrl": ""}, {"type": "spi_read", "message0": "#blk-read_from# %1 #blk-of_format# %2", "args0": [{"type": "field_dropdown", "name": "id", "options": [["SPI1", "spi1"], ["SPI2", "spi2"], ["Soft SPI1", "softSpi1"], ["Soft SPI2", "softSpi2"]]}, {"type": "field_dropdown", "name": "format", "options": [["Int8", "b"], ["UInt8", "B"], ["Int16LE", "h"], ["UInt16BE", ">H"], ["Int32BE", ">i"], ["UInt32BE", ">I"], ["Float32BE", ">f"], ["Float64BE", ">d"]]}], "output": "Number", "colour": 330, "tooltip": "#blk-spi_read_tooltip#", "helpUrl": ""}, {"type": "spi_init", "message0": "#blk-init# %1 #blk-at_baudrate# %2 #blk-with_sck# %3 #blk-mosi# %4 #blk-and_miso# %5", "args0": [{"type": "field_dropdown", "name": "id", "options": [["SPI1", "spi1"], ["SPI2", "spi2"], ["Soft SPI1", "softSpi1"], ["Soft SPI2", "softSpi2"]]}, {"type": "field_input", "name": "baudrate", "text": "1000000"}, {"type": "field_dropdown", "name": "sck", "options": [["4", "4"], ["5", "5"], ["12", "12"], ["13", "13"], ["14", "14"], ["15", "15"], ["16", "16"], ["17", "17"], ["18", "18"], ["19", "19"], ["21", "21"], ["22", "22"], ["23", "23"], ["25", "25"], ["26", "26"], ["27", "27"], ["32", "32"], ["33", "33"]]}, {"type": "field_dropdown", "name": "mosi", "options": [["4", "4"], ["5", "5"], ["12", "12"], ["13", "13"], ["14", "14"], ["15", "15"], ["16", "16"], ["17", "17"], ["18", "18"], ["19", "19"], ["21", "21"], ["22", "22"], ["23", "23"], ["25", "25"], ["26", "26"], ["27", "27"], ["32", "32"], ["33", "33"]]}, {"type": "field_dropdown", "name": "miso", "options": [["4", "4"], ["5", "5"], ["12", "12"], ["13", "13"], ["14", "14"], ["15", "15"], ["16", "16"], ["17", "17"], ["18", "18"], ["19", "19"], ["21", "21"], ["22", "22"], ["23", "23"], ["25", "25"], ["26", "26"], ["27", "27"], ["32", "32"], ["33", "33"], ["34", "34"], ["35", "35"], ["36", "36"], ["39", "39"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 330, "tooltip": "#blk-spi_init_tooltip#", "helpUrl": ""}, {"type": "spi_write", "message0": "#blk-to# %1 #blk-write# %2 #blk-of_format# %3", "args0": [{"type": "field_dropdown", "name": "id", "options": [["SPI1", "spi1"], ["SPI2", "spi2"], ["Soft SPI1", "softSpi1"], ["Soft SPI2", "softSpi2"]]}, {"type": "input_value", "name": "value", "check": "Number"}, {"type": "field_dropdown", "name": "format", "options": [["Int8", "b"], ["UInt8", "B"], ["Int16LE", "h"], ["UInt16BE", ">H"], ["Int32BE", ">i"], ["UInt32BE", ">I"], ["Float32BE", ">f"], ["Float64BE", ">d"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 330, "tooltip": "#blk-spi_write_tooltip#", "helpUrl": ""}, {"type": "ds3231_init", "message0": "#blk-ds3231_init# %1 #blk-with_address# %2", "args0": [{"type": "field_dropdown", "name": "id", "options": [["I2C0", "i2c0"], ["I2C1", "i2c1"], ["Soft I2C0", "softI2c0"], ["Soft I2C1", "softI2c1"]]}, {"type": "field_input", "name": "addr", "text": "104"}], "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-ds3231_init_tooltip#", "helpUrl": ""}, {"type": "ds3231_date_time_get", "message0": "#blk-ds3231_date_time_get#", "args0": [], "output": "Array", "colour": 65, "tooltip": "#blk-ds3231_date_time_get_tooltip#", "helpUrl": ""}, {"type": "ds3231_date_time_set", "message0": "#blk-ds3231_date_time_set# %1", "args0": [{"type": "input_value", "name": "dateTime", "check": "Array"}], "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-ds3231_date_time_set_tooltip#", "helpUrl": ""}, {"type": "date_time_set", "message0": "#blk-date_time_set# %1", "args0": [{"type": "input_value", "name": "dateTime", "check": "Array"}], "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-date_time_set_tooltip#", "helpUrl": ""}, {"type": "date_time_set_ntp", "message0": "#blk-date_time_set_ntp# %1", "args0": [{"type": "input_value", "name": "tz", "check": "Number"}], "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-date_time_set_ntp_tooltip#", "helpUrl": ""}, {"type": "date_time_get", "message0": "#blk-date_time_get#", "args0": [], "output": "Array", "colour": 65, "tooltip": "#blk-date_time_get_tooltip#", "helpUrl": ""}, {"type": "time", "message0": "#blk-time# %1", "args0": [{"type": "field_dropdown", "name": "units", "options": [["#blk-seconds#", "SECONDS"], ["#blk-milliseconds#", "MILLI"], ["#blk-microseconds#", "MICRO"]]}], "output": "Number", "colour": 65, "tooltip": "#blk-time_tooltip#", "helpUrl": ""}, {"type": "sleep", "message0": "#blk-sleep_for# %1 %2", "args0": [{"type": "input_value", "name": "duration", "check": "Number"}, {"type": "field_dropdown", "name": "units", "options": [["#blk-seconds#", "SECONDS"], ["#blk-milliseconds#", "MILLISECONDS"], ["#blk-microseconds#", "MICROSECONDS"]]}], "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-sleep_for_tooltip#", "helpUrl": ""}, {"type": "try_except", "message0": "#blk-try# %1 #blk-except# %2", "args0": [{"type": "input_statement", "name": "try"}, {"type": "input_statement", "name": "except"}], "previousStatement": null, "nextStatement": null, "colour": 65, "tooltip": "#blk-try_except_tooltip#", "helpUrl": ""}, {"type": "neopixel_fill", "message0": "#blk-neopixel_at_pin# %1 #blk-set_all_pixels# #blk-to_color# %2", "args0": [{"type": "field_dropdown", "name": "pin", "options": [["0 (Boot Button)", "0"], ["2 (Built-in LED)", "2"], ["4", "4"], ["5", "5"], ["12", "12"], ["13", "13"], ["14", "14"], ["15", "15"], ["16", "16"], ["17", "17"], ["18", "18"], ["19", "19"], ["21", "21"], ["22", "22"], ["23", "23"], ["25", "25"], ["26", "26"], ["27", "27"], ["32", "32"], ["33", "33"]]}, {"type": "input_value", "name": "color", "check": "Array"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "", "helpUrl": ""}, {"type": "neopixel_rgb", "message0": "#blk-red# %1 #blk-green# %2 #blk-blue# %3", "args0": [{"type": "input_value", "name": "red", "check": "Number"}, {"type": "input_value", "name": "green", "check": "Number"}, {"type": "input_value", "name": "blue", "check": "Number"}], "output": "Array", "inputsInline": true, "colour": 230, "tooltip": "", "helpUrl": ""}, {"type": "neopixel_rgbw", "message0": "#blk-red# %1 #blk-green# %2 #blk-blue# %3 #blk-white# %4", "args0": [{"type": "input_value", "name": "red", "check": "Number"}, {"type": "input_value", "name": "green", "check": "Number"}, {"type": "input_value", "name": "blue", "check": "Number"}, {"type": "input_value", "name": "white", "check": "Number"}], "output": "Array", "inputsInline": true, "colour": 230, "tooltip": "", "helpUrl": ""}, {"type": "neopixel_write", "message0": "#blk-write_neopixel# %1", "args0": [{"type": "field_dropdown", "name": "pin", "options": [["0 (Boot Button)", "0"], ["2 (Built-in LED)", "2"], ["4", "4"], ["5", "5"], ["12", "12"], ["13", "13"], ["14", "14"], ["15", "15"], ["16", "16"], ["17", "17"], ["18", "18"], ["19", "19"], ["21", "21"], ["22", "22"], ["23", "23"], ["25", "25"], ["26", "26"], ["27", "27"], ["32", "32"], ["33", "33"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "", "helpUrl": ""}, {"type": "neopixel_color", "message0": "%1", "args0": [{"type": "field_dropdown", "name": "color", "options": [["red", "(255, 0, 0)"], ["orange", "(255, 165, 0)"], ["yellow", "(255, 255, 0)"], ["green", "(0, 255, 0)"], ["blue", "(0, 0, 255)"], ["indigo", "(75, 0, 130)"], ["violet", "(138, 43, 226)"], ["purple", "(255, 0, 255)"], ["white", "(255, 255, 255)"], ["black (off)", "(0, 0, 0)"]]}], "output": "Array", "inputsInline": true, "colour": 230, "tooltip": "", "helpUrl": ""}, {"type": "neopixel_init", "message0": "#blk-neopixel_init# %1 #blk-with# %2 #blk-led_as# %3", "args0": [{"type": "field_dropdown", "name": "pin", "options": [["0 (Boot Button)", "0"], ["2 (Built-in LED)", "2"], ["4", "4"], ["5", "5"], ["12", "12"], ["13", "13"], ["14", "14"], ["15", "15"], ["16", "16"], ["17", "17"], ["18", "18"], ["19", "19"], ["21", "21"], ["22", "22"], ["23", "23"], ["25", "25"], ["26", "26"], ["27", "27"], ["32", "32"], ["33", "33"]]}, {"type": "input_value", "name": "pixels", "check": "Number"}, {"type": "field_dropdown", "name": "format", "options": [["RGB", "3"], ["RGB+W", "4"]]}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "", "helpUrl": ""}, {"type": "neopixel_set", "message0": "#blk-neopixel_at_pin# %1 #blk-set_pixel# %2 #blk-to_color# %3", "args0": [{"type": "field_dropdown", "name": "pin", "options": [["0 (Boot Button)", "0"], ["2 (Built-in LED)", "2"], ["4", "4"], ["5", "5"], ["12", "12"], ["13", "13"], ["14", "14"], ["15", "15"], ["16", "16"], ["17", "17"], ["18", "18"], ["19", "19"], ["21", "21"], ["22", "22"], ["23", "23"], ["25", "25"], ["26", "26"], ["27", "27"], ["32", "32"], ["33", "33"]]}, {"type": "input_value", "name": "pixel", "check": "Number"}, {"type": "input_value", "name": "color", "check": "Array"}], "inputsInline": true, "previousStatement": null, "nextStatement": null, "colour": 230, "tooltip": "", "helpUrl": ""}, {"type": "neopixel_hsv", "message0": "#blk-hue# %1 #blk-saturation# %2 #blk-value# %3", "args0": [{"type": "input_value", "name": "hue", "check": "Number"}, {"type": "input_value", "name": "saturation", "check": "Number"}, {"type": "input_value", "name": "value", "check": "Number"}], "output": "Array", "inputsInline": true, "colour": 230, "tooltip": "", "helpUrl": ""}] \ No newline at end of file diff --git a/public/customBlocks/data/bytearray.json b/public/customBlocks/data/bytearray.json new file mode 100644 index 0000000..9f4a8c3 --- /dev/null +++ b/public/customBlocks/data/bytearray.json @@ -0,0 +1,16 @@ +{ + "type": "bytearray", + "message0": "bytearray %1", + "args0": [ + { + "type": "field_input", + "name": "bytestring", + "text": "" + } + ], + "inputsInline": true, + "output": "Bytes", + "colour": 230, + "tooltip": "#blk-bytearray_tooltip#", + "helpUrl": "" +} \ No newline at end of file diff --git a/public/customBlocks/data/bytearray_by_size.json b/public/customBlocks/data/bytearray_by_size.json new file mode 100644 index 0000000..1c2fbe8 --- /dev/null +++ b/public/customBlocks/data/bytearray_by_size.json @@ -0,0 +1,16 @@ +{ + "type": "bytearray_by_size", + "message0": "bytearray #blk-of_size# %1", + "args0": [ + { + "type": "input_value", + "name": "size", + "check": "Number" + } + ], + "inputsInline": true, + "output": "Bytes", + "colour": 230, + "tooltip": "#blk-bytearray_by_size_tooltip#", + "helpUrl": "" +} \ No newline at end of file diff --git a/public/customBlocks/data/bytes.json b/public/customBlocks/data/bytes.json new file mode 100644 index 0000000..39657a0 --- /dev/null +++ b/public/customBlocks/data/bytes.json @@ -0,0 +1,16 @@ +{ + "type": "bytes", + "message0": "bytes %1", + "args0": [ + { + "type": "field_input", + "name": "bytestring", + "text": "" + } + ], + "inputsInline": true, + "output": "Bytes", + "colour": 230, + "tooltip": "#blk-bytes_tooltip#", + "helpUrl": "" +} \ No newline at end of file diff --git a/public/js/ioty_generator.js b/public/js/ioty_generator.js index 378a896..ce8cd9e 100644 --- a/public/js/ioty_generator.js +++ b/public/js/ioty_generator.js @@ -65,6 +65,9 @@ var ioty_generator = new function() { Blockly.Python['run_python_and_return'] = self.run_python_and_return; Blockly.Python['type_cast'] = self.type_cast; + Blockly.Python['bytes'] = self.bytes; + Blockly.Python['bytearray'] = self.bytearray; + Blockly.Python['bytearray_by_size'] = self.bytearray_by_size; Blockly.Python['decode'] = self.decode; Blockly.Python['encode'] = self.encode; Blockly.Python['unpack'] = self.unpack; @@ -1131,6 +1134,58 @@ var ioty_generator = new function() { return [code, Blockly.Python.ORDER_FUNCTION_CALL]; }; + this.bytes = function(block) { + const bytestring = block.getFieldValue('bytestring'); + + let outstring = ''; + let escaped = false; + for (c of bytestring) { + if (c == "'" && escaped == false) { + outstring += '\\'; + } + outstring += c; + if (c == '\\' && escaped == false) { + escaped = true; + } else { + escaped = false; + } + } + + let code = 'b\'' + outstring + '\''; + + return [code, Blockly.Python.ORDER_ATOMIC]; + }; + + this.bytearray = function(block) { + const bytestring = block.getFieldValue('bytestring'); + + let outstring = ''; + let escaped = false; + for (c of bytestring) { + if (c == "'" && escaped == false) { + outstring += '\\'; + } + outstring += c; + if (c == '\\' && escaped == false) { + escaped = true; + } else { + escaped = false; + } + } + + let code = 'bytearray(b\'' + outstring + '\')'; + + return [code, Blockly.Python.ORDER_ATOMIC]; + }; + + this.bytearray_by_size = function(block) { + var size = Blockly.Python.valueToCode(block, 'size', Blockly.Python.ORDER_ATOMIC); + + let code = 'bytearray(' + size + ')'; + + return [code, Blockly.Python.ORDER_ATOMIC]; + }; + this.decode = function(block) { var value = Blockly.Python.valueToCode(block, 'value', Blockly.Python.ORDER_ATOMIC); diff --git a/public/js/msg.js b/public/js/msg.js index 34f823a..8269b89 100644 --- a/public/js/msg.js +++ b/public/js/msg.js @@ -309,6 +309,18 @@ let MSGS = { '#blk-type_cast_tooltip#': { en: 'Convert from one data type into another.', }, + '#blk-bytes_tooltip#': { + en: 'Returns a bytes object. Bytes objects can be indexed like a list, but cannot be modified.', + }, + '#blk-bytearray_tooltip#': { + en: 'Returns a bytearray. Bytearray works just like a bytes object, but can be modified.', + }, + '#blk-of_size#': { + en: 'of size', + }, + '#blk-bytearray_by_size_tooltip#': { + en: 'Returns a bytearray of the specified size initialized to all 0.', + }, '#blk-neopixel_init#': { en: 'Initialize Neopixel at pin', }, diff --git a/public/toolbox.xml b/public/toolbox.xml index d1c269f..f287fa7 100644 --- a/public/toolbox.xml +++ b/public/toolbox.xml @@ -493,6 +493,15 @@ + + + + + + 0 + + +