joypad

Last Modified: 2024-04-09 08:17:35

Created On: 2023-12-10 15:58:46

Owned By: evezor

Created By: anfro

Contributors: anfro, evezor

Public: True


Executable


        
# --------------------------------------
#   joypad
#   65f697220dbb025fcanv
__canvas_id__ = '65f697220dbb025f'
# __version__ = TODO: add this
# --------------------------------------
from floe import FP

from NeoPixel import NeoPixel
from ColorChase import ColorChase
from ESP32Core import ESP32Core
from HbtLed import HbtLed
from Rainbow import Rainbow
from CANBus import CANBus
from AnalogInput import AnalogInput
from DigitalInput import DigitalInput
from Variable import Variable
from DigitalOutput import DigitalOutput
def setup(iris):
  AnalogInput(name='LX', pid=32956, pin=35, ring_size=10, noise_reduction=100, delay=50, datatype="float", debug=False, active=True, bcast=True, iris=iris)
  AnalogInput(name='LY', pid=3608, pin=32, ring_size=10, noise_reduction=100, delay=50, datatype="float", debug=False, active=True, bcast=True, iris=iris)
  AnalogInput(name='RX', pid=33726, pin=34, ring_size=10, noise_reduction=100, delay=50, datatype="float", debug=False, active=True, bcast=True, iris=iris)
  AnalogInput(name='RY', pid=27251, pin=39, ring_size=10, noise_reduction=100, delay=50, datatype="float", debug=False, active=True, bcast=True, iris=iris)
  CANBus(name='CANBus', pid=6545, rx=16, tx=4, adr=15, bus=0, baud=250000, rx_queue=25, terminal_debug=False, debug=False, active=True, bcast=False, iris=iris)
  ColorChase(name='ColorChase', pid=28857, dot_color=None, fill_color=None, datatype="rgb", debug=False, active=True, bcast=False, iris=iris)
  DigitalInput(name='L_push', pid=6017, pin=18, pullup='pullup', debounce=200, invert=True, initial_value=False, datatype="bool", debug=False, active=True, bcast=True, iris=iris)
  DigitalInput(name='R_push', pid=19116, pin=14, pullup='pullup', debounce=200, invert=True, initial_value=False, datatype="bool", debug=False, active=True, bcast=True, iris=iris)
  DigitalInput(name='blue', pid=64240, pin=27, pullup='pullup', debounce=200, invert=True, initial_value=False, datatype="bool", debug=False, active=True, bcast=True, iris=iris)
  DigitalInput(name='down', pid=12955, pin=23, pullup='pullup', debounce=200, invert=True, initial_value=False, datatype="bool", debug=False, active=True, bcast=True, iris=iris)
  DigitalInput(name='function_button', pid=2276, pin=36, pullup='None', debounce=200, invert=True, initial_value=False, datatype="bool", debug=False, active=True, bcast=True, iris=iris)
  DigitalInput(name='green', pid=41059, pin=25, pullup='None', debounce=200, invert=True, initial_value=False, datatype="bool", debug=False, active=True, bcast=True, iris=iris)
  DigitalInput(name='left', pid=12806, pin=19, pullup='pullup', debounce=200, invert=True, initial_value=False, datatype="bool", debug=False, active=True, bcast=True, iris=iris)
  DigitalInput(name='red', pid=44174, pin=33, pullup='pullup', debounce=200, invert=True, initial_value=False, datatype="bool", debug=False, active=True, bcast=True, iris=iris)
  DigitalInput(name='right', pid=4163, pin=22, pullup='pullup', debounce=200, invert=True, initial_value=False, datatype="bool", debug=False, active=True, bcast=True, iris=iris)
  DigitalInput(name='select', pid=42196, pin=15, pullup='pullup', debounce=200, invert=True, initial_value=False, datatype="bool", debug=False, active=True, bcast=True, iris=iris)
  DigitalInput(name='start', pid=25480, pin=13, pullup='pullup', debounce=200, invert=True, initial_value=False, datatype="bool", debug=False, active=True, bcast=True, iris=iris)
  DigitalInput(name='up', pid=1666, pin=21, pullup='pullup', debounce=200, invert=True, initial_value=False, datatype="bool", debug=False, active=True, bcast=True, iris=iris)
  DigitalInput(name='yellow', pid=45435, pin=26, pullup='None', debounce=200, invert=True, initial_value=False, datatype="bool", debug=False, active=True, bcast=True, iris=iris)
  DigitalOutput(name='can_slp', pid=56302, pin=2, invert=True, initial_value=True, datatype="bool", debug=False, active=True, bcast=False, iris=iris)
  ESP32Core(name='ESP32Core', pid=6074, wifi=False, hbt_led=FP(55894), neo_status=FP(47403), function_button=FP(2276), bus=FP(6545), zorg=None, webserver=None, debug=False, active=True, bcast=False, iris=iris)
  HbtLed(name='hbt_led', pid=55894, pin=5, delay=1000, datatype="int", debug=False, active=True, bcast=False, iris=iris)
  NeoPixel(name='neo_bar', pid=33490, pin=12, number_of_pixels=5, animation=FP(29150), delay=FP(51105), animations=[FP(23302), FP(28857)], datatype="rgb", debug=False, active=True, bcast=False, iris=iris)
  NeoPixel(name='neo_status', pid=47403, pin=17, number_of_pixels=1, animation=0, delay=200, animations=None, datatype="rgb", debug=False, active=True, bcast=False, iris=iris)
  Rainbow(name='Rainbow', pid=23302, datatype="rgb", debug=False, active=True, bcast=False, iris=iris)
  Variable(name='animation', pid=29150, state=0, datatype="int", constant=False, debug=False, active=True, bcast=True, iris=iris)
  Variable(name='delay', pid=51105, state=200, datatype="int", constant=False, debug=False, active=True, bcast=True, iris=iris)
  iris.add_hots({})


      

Canvas View:


Dependencies:


["NeoPixel", "ColorChase", "ESP32Core", "HbtLed", "Parameter", "FileReceiver", "Rainbow", "CANBus", "AnalogInput", "DigitalInput", "Variable", "DigitalOutput"]
    

Uppie code:

this code is used as the constructor in this canvas is dropped on a canvas above

{
  "canvas_id": "65f697220dbb025fcanv",
  "zorg": false,
  "busses": {
    "CANBus": "15"
  },
  "ports": [
    {
      "name": "up",
      "reference_id": "14ebbd38-779e-55a6-9269-cc6e5ee4d743",
      "pid": "1666",
      "type": "output",
      "datatype": "bool",
      "parameter_type": "DigitalInput"
    },
    {
      "name": "down",
      "reference_id": "7dca15d9-7cf6-7d94-e192-93e98eaf7de8",
      "pid": 12955,
      "type": "output",
      "datatype": "bool",
      "parameter_type": "DigitalInput"
    },
    {
      "name": "left",
      "reference_id": "4f5432db-959c-12f4-10ca-f832fb26d900",
      "pid": 12806,
      "type": "output",
      "datatype": "bool",
      "parameter_type": "DigitalInput"
    },
    {
      "name": "right",
      "reference_id": "4284ad30-ea08-623b-3135-bee6999da0ee",
      "pid": 4163,
      "type": "output",
      "datatype": "bool",
      "parameter_type": "DigitalInput"
    },
    {
      "name": "start",
      "reference_id": "35fee00b-8baa-8d2a-c4b7-ed5bed070cc4",
      "pid": 25480,
      "type": "output",
      "datatype": "bool",
      "parameter_type": "DigitalInput"
    },
    {
      "name": "select",
      "reference_id": "867f93d4-7018-9ba0-c500-dfee11c579e6",
      "pid": 42196,
      "type": "output",
      "datatype": "bool",
      "parameter_type": "DigitalInput"
    },
    {
      "name": "L_push",
      "reference_id": "c007e7e2-11b3-3cec-8f8e-30dfcc04704f",
      "pid": 6017,
      "type": "output",
      "datatype": "bool",
      "parameter_type": "DigitalInput"
    },
    {
      "name": "LX",
      "reference_id": "f0ec377e-cf8e-29df-1720-54be2868555d",
      "pid": 32956,
      "type": "output",
      "datatype": "float",
      "parameter_type": "AnalogInput"
    },
    {
      "name": "LY",
      "reference_id": "3528336c-8938-c613-9300-f297af726c7b",
      "pid": 3608,
      "type": "output",
      "datatype": "float",
      "parameter_type": "AnalogInput"
    },
    {
      "name": "R_push",
      "reference_id": "f5c4e000-4277-65b4-77fa-673ff153edc3",
      "pid": 19116,
      "type": "output",
      "datatype": "bool",
      "parameter_type": "DigitalInput"
    },
    {
      "name": "RX",
      "reference_id": "d2088545-42af-fc14-1228-2ec5543d6a24",
      "pid": 33726,
      "type": "output",
      "datatype": "float",
      "parameter_type": "AnalogInput"
    },
    {
      "name": "RY",
      "reference_id": "76b83f1f-6588-7795-e91d-b919444d9c46",
      "pid": 27251,
      "type": "output",
      "datatype": "float",
      "parameter_type": "AnalogInput"
    },
    {
      "name": "red",
      "reference_id": "6435b7b5-77ef-1798-86ea-ec9d613074f7",
      "pid": 44174,
      "type": "output",
      "datatype": "bool",
      "parameter_type": "DigitalInput"
    },
    {
      "name": "blue",
      "reference_id": "3a6ff4b3-2152-8097-7c3f-6cf6374f8d89",
      "pid": 64240,
      "type": "output",
      "datatype": "bool",
      "parameter_type": "DigitalInput"
    },
    {
      "name": "green",
      "reference_id": "1717c5e9-be61-fae8-5af0-43e2311c22a7",
      "pid": 41059,
      "type": "output",
      "datatype": "bool",
      "parameter_type": "DigitalInput"
    },
    {
      "name": "yellow",
      "reference_id": "a9514f78-4591-efd1-1a7d-b17b4c36121a",
      "pid": 45435,
      "type": "output",
      "datatype": "bool",
      "parameter_type": "DigitalInput"
    },
    {
      "name": "animation",
      "reference_id": "3af20f1f-3f2a-30bd-01e3-b06eb85f40b9",
      "pid": 29150,
      "type": "input",
      "datatype": "int",
      "parameter_type": "Variable"
    },
    {
      "name": "delay",
      "reference_id": "10792d98-179c-a09c-f05a-7bb303187b47",
      "pid": 51105,
      "type": "input",
      "datatype": "int",
      "parameter_type": "Variable"
    }
  ]
}
    

Uppie subs:


{}
    

Canvas code:


[
  {
    "type": "CanvasID",
    "id": "65f697220dbb025fcanv",
    "x": 20.684962597656295,
    "y": 21.162223539733887,
    "selectable": false,
    "draggable": true,
    "text": "",
    "canvas_type": "core"
  },
  {
    "type": "Parameter",
    "name": "ESP32Core",
    "id": "9e65d461-88ea-d923-2508-c70738045031",
    "ParameterType": "ESP32Core",
    "datatype": null,
    "pid": "6074",
    "x": 2357.5652,
    "y": 490.86811298828115,
    "width": 98,
    "height": 125,
    "constants": {
      "wifi": false
    },
    "up_data": {
      "can_go_up": false,
      "up": false
    },
    "debug": false,
    "active": true,
    "broadcast": false
  },
  {
    "type": "Parameter",
    "name": "function_button",
    "id": "755f08c5-a527-574e-94c4-ec22787d7c83",
    "ParameterType": "DigitalInput",
    "datatype": "bool",
    "pid": 2276,
    "x": 2071.6035,
    "y": 507.23569999999995,
    "width": 100,
    "height": 51,
    "constants": {
      "pin": "36",
      "pullup": "None",
      "debounce": 200
    },
    "up_data": {
      "can_go_up": true,
      "type": "output",
      "order": 999,
      "up": false
    },
    "debug": false,
    "active": true,
    "broadcast": true
  },
  {
    "type": "Parameter",
    "name": "neo_status",
    "id": "c02b1b9a-83a0-4dc8-6c78-b233f6794e97",
    "ParameterType": "NeoPixel",
    "datatype": "rgb",
    "pid": 47403,
    "x": 2097.1035,
    "y": 412.82899999999995,
    "width": 73,
    "height": 40,
    "constants": {
      "pin": "17",
      "number_of_pixels": 1
    },
    "up_data": {
      "can_go_up": true,
      "type": "input",
      "order": 999,
      "up": false
    },
    "debug": false,
    "active": true,
    "broadcast": false
  },
  {
    "type": "Parameter",
    "name": "hbt_led",
    "id": "edadcf26-7123-6f65-aacc-531f07f49da0",
    "ParameterType": "HbtLed",
    "datatype": "int",
    "pid": "55894",
    "x": 2100.6035,
    "y": 330.03552824707026,
    "width": 66,
    "height": 30,
    "constants": {
      "pin": "5"
    },
    "up_data": {
      "can_go_up": false,
      "up": false
    },
    "debug": false,
    "active": true,
    "broadcast": false
  },
  {
    "type": "Parameter",
    "name": "CANBus",
    "id": "094dfcb9-7772-56e1-d37f-10f852b3fd3e",
    "ParameterType": "CANBus",
    "datatype": null,
    "pid": 6545,
    "x": 2095.6035,
    "y": 608.2213999999999,
    "width": 76,
    "height": 38,
    "constants": {
      "rx": "16",
      "tx": "4",
      "adr": "15",
      "bus": "0",
      "baud": 250000,
      "rx_queue": 25
    },
    "up_data": {
      "can_go_up": false,
      "up": false
    },
    "debug": false,
    "active": true,
    "broadcast": false
  },
  {
    "type": "NotePad",
    "id": "d62904e5-41be-2090-31f2-f67f776f676e",
    "x": 2218.0592,
    "y": 275.33861298828117,
    "width": 218,
    "height": 25,
    "ports": [],
    "text": "Core Components"
  },
  {
    "type": "Parameter",
    "name": "up",
    "id": "14ebbd38-779e-55a6-9269-cc6e5ee4d743",
    "ParameterType": "DigitalInput",
    "datatype": "bool",
    "pid": "1666",
    "x": 144.70209999999992,
    "y": 233.45781298828126,
    "width": 95,
    "height": 95,
    "constants": {
      "pin": "21",
      "pullup": "pullup",
      "debounce": 200
    },
    "up_data": {
      "can_go_up": true,
      "type": "output",
      "order": 999,
      "up": true
    },
    "debug": false,
    "active": true,
    "broadcast": true
  },
  {
    "type": "Parameter",
    "name": "down",
    "id": "7dca15d9-7cf6-7d94-e192-93e98eaf7de8",
    "ParameterType": "DigitalInput",
    "datatype": "bool",
    "pid": 12955,
    "x": 144.70209999999992,
    "y": 390.95781298828115,
    "width": 95,
    "height": 95,
    "constants": {
      "pin": "23",
      "pullup": "pullup",
      "debounce": 200
    },
    "up_data": {
      "can_go_up": true,
      "type": "output",
      "order": 999,
      "up": true
    },
    "debug": false,
    "active": true,
    "broadcast": true
  },
  {
    "type": "Parameter",
    "name": "left",
    "id": "4f5432db-959c-12f4-10ca-f832fb26d900",
    "ParameterType": "DigitalInput",
    "datatype": "bool",
    "pid": 12806,
    "x": 144.70209999999992,
    "y": 548.4665,
    "width": 95,
    "height": 95,
    "constants": {
      "pin": "19",
      "pullup": "pullup",
      "debounce": 200
    },
    "up_data": {
      "can_go_up": true,
      "type": "output",
      "order": 999,
      "up": true
    },
    "debug": false,
    "active": true,
    "broadcast": true
  },
  {
    "type": "Parameter",
    "name": "right",
    "id": "4284ad30-ea08-623b-3135-bee6999da0ee",
    "ParameterType": "DigitalInput",
    "datatype": "bool",
    "pid": 4163,
    "x": 144.70209999999992,
    "y": 707.4578129882811,
    "width": 95,
    "height": 95,
    "constants": {
      "pin": "22",
      "pullup": "pullup",
      "debounce": 200
    },
    "up_data": {
      "can_go_up": true,
      "type": "output",
      "order": 999,
      "up": true
    },
    "debug": false,
    "active": true,
    "broadcast": true
  },
  {
    "type": "NotePad",
    "id": "7dbfd6b8-29aa-4d1d-d477-c0a2ead80677",
    "x": 149.70209999999992,
    "y": 164.95781298828126,
    "width": 218,
    "height": 25,
    "ports": [],
    "text": "Dpad"
  },
  {
    "type": "Parameter",
    "name": "start",
    "id": "35fee00b-8baa-8d2a-c4b7-ed5bed070cc4",
    "ParameterType": "DigitalInput",
    "datatype": "bool",
    "pid": 25480,
    "x": 461.03499772949215,
    "y": 232.80421298828117,
    "width": 95,
    "height": 95,
    "constants": {
      "pin": "13",
      "pullup": "pullup",
      "debounce": 200
    },
    "up_data": {
      "can_go_up": true,
      "type": "output",
      "order": 999,
      "up": true
    },
    "debug": false,
    "active": true,
    "broadcast": true
  },
  {
    "type": "Parameter",
    "name": "select",
    "id": "867f93d4-7018-9ba0-c500-dfee11c579e6",
    "ParameterType": "DigitalInput",
    "datatype": "bool",
    "pid": 42196,
    "x": 461.03499772949215,
    "y": 402.30421298828105,
    "width": 95,
    "height": 95,
    "constants": {
      "pin": 15,
      "pullup": "pullup",
      "debounce": 200
    },
    "up_data": {
      "can_go_up": true,
      "type": "output",
      "order": 999,
      "up": true
    },
    "debug": false,
    "active": true,
    "broadcast": true
  },
  {
    "type": "NotePad",
    "id": "f0808185-dd7b-f788-8c47-34297f59a573",
    "x": 452.03499772949215,
    "y": 169.30421298828117,
    "width": 206.1666717529297,
    "height": 25,
    "ports": [],
    "text": "Start/Select"
  },
  {
    "type": "Parameter",
    "name": "L_push",
    "id": "c007e7e2-11b3-3cec-8f8e-30dfcc04704f",
    "ParameterType": "DigitalInput",
    "datatype": "bool",
    "pid": 6017,
    "x": 804.928597729492,
    "y": 246.79117175292959,
    "width": 95,
    "height": 95,
    "constants": {
      "pin": "18",
      "pullup": "pullup",
      "debounce": 200
    },
    "up_data": {
      "can_go_up": true,
      "type": "output",
      "order": 999,
      "up": true
    },
    "debug": false,
    "active": true,
    "broadcast": true
  },
  {
    "type": "Parameter",
    "name": "LX",
    "id": "f0ec377e-cf8e-29df-1720-54be2868555d",
    "ParameterType": "AnalogInput",
    "datatype": "float",
    "pid": 32956,
    "x": 808.977397729492,
    "y": 417.39277175292955,
    "width": 95,
    "height": 65,
    "constants": {
      "pin": "35",
      "ring_size": 10,
      "noise_reduction": 100
    },
    "up_data": {
      "can_go_up": true,
      "type": "output",
      "order": 999,
      "up": true
    },
    "debug": false,
    "active": true,
    "broadcast": true
  },
  {
    "type": "Parameter",
    "name": "LY",
    "id": "3528336c-8938-c613-9300-f297af726c7b",
    "ParameterType": "AnalogInput",
    "datatype": "float",
    "pid": 3608,
    "x": 808.977397729492,
    "y": 566.3927717529295,
    "width": 95,
    "height": 65,
    "constants": {
      "pin": "32",
      "ring_size": 10,
      "noise_reduction": 100
    },
    "up_data": {
      "can_go_up": true,
      "type": "output",
      "order": 999,
      "up": true
    },
    "debug": false,
    "active": true,
    "broadcast": true
  },
  {
    "type": "Parameter",
    "name": "R_push",
    "id": "f5c4e000-4277-65b4-77fa-673ff153edc3",
    "ParameterType": "DigitalInput",
    "datatype": "bool",
    "pid": 19116,
    "x": 1116.9365977294924,
    "y": 241.39277175292955,
    "width": 95,
    "height": 95,
    "constants": {
      "pin": "14",
      "pullup": "pullup",
      "debounce": 200
    },
    "up_data": {
      "can_go_up": true,
      "type": "output",
      "order": 999,
      "up": true
    },
    "debug": false,
    "active": true,
    "broadcast": true
  },
  {
    "type": "Parameter",
    "name": "RX",
    "id": "d2088545-42af-fc14-1228-2ec5543d6a24",
    "ParameterType": "AnalogInput",
    "datatype": "float",
    "pid": 33726,
    "x": 1116.9365977294924,
    "y": 414.25612353973384,
    "width": 95,
    "height": 65,
    "constants": {
      "pin": "34",
      "ring_size": 10,
      "noise_reduction": 100
    },
    "up_data": {
      "can_go_up": true,
      "type": "output",
      "order": 999,
      "up": true
    },
    "debug": false,
    "active": true,
    "broadcast": true
  },
  {
    "type": "Parameter",
    "name": "RY",
    "id": "76b83f1f-6588-7795-e91d-b919444d9c46",
    "ParameterType": "AnalogInput",
    "datatype": "float",
    "pid": 27251,
    "x": 1116.9365977294924,
    "y": 566.3927717529295,
    "width": 95,
    "height": 65,
    "constants": {
      "pin": "39",
      "ring_size": 10,
      "noise_reduction": 100
    },
    "up_data": {
      "can_go_up": true,
      "type": "output",
      "order": 999,
      "up": true
    },
    "debug": false,
    "active": true,
    "broadcast": true
  },
  {
    "type": "Parameter",
    "name": "red",
    "id": "6435b7b5-77ef-1798-86ea-ec9d613074f7",
    "ParameterType": "DigitalInput",
    "datatype": "bool",
    "pid": 44174,
    "x": 1387.7333495162968,
    "y": 245.2418282470702,
    "width": 95,
    "height": 95,
    "constants": {
      "pin": "33",
      "pullup": "pullup",
      "debounce": 200
    },
    "up_data": {
      "can_go_up": true,
      "type": "output",
      "order": 999,
      "up": true
    },
    "debug": false,
    "active": true,
    "broadcast": true
  },
  {
    "type": "Parameter",
    "name": "blue",
    "id": "3a6ff4b3-2152-8097-7c3f-6cf6374f8d89",
    "ParameterType": "DigitalInput",
    "datatype": "bool",
    "pid": 64240,
    "x": 1387.7333495162968,
    "y": 399.25612353973384,
    "width": 95,
    "height": 95,
    "constants": {
      "pin": "27",
      "pullup": "pullup",
      "debounce": 200
    },
    "up_data": {
      "can_go_up": true,
      "type": "output",
      "order": 999,
      "up": true
    },
    "debug": false,
    "active": true,
    "broadcast": true
  },
  {
    "type": "Parameter",
    "name": "green",
    "id": "1717c5e9-be61-fae8-5af0-43e2311c22a7",
    "ParameterType": "DigitalInput",
    "datatype": "bool",
    "pid": 41059,
    "x": 1387.7333495162968,
    "y": 558.4121235397338,
    "width": 95,
    "height": 95,
    "constants": {
      "pin": "25",
      "pullup": "None",
      "debounce": 200
    },
    "up_data": {
      "can_go_up": true,
      "type": "output",
      "order": 999,
      "up": true
    },
    "debug": false,
    "active": true,
    "broadcast": true
  },
  {
    "type": "Parameter",
    "name": "yellow",
    "id": "a9514f78-4591-efd1-1a7d-b17b4c36121a",
    "ParameterType": "DigitalInput",
    "datatype": "bool",
    "pid": 45435,
    "x": 1387.7333495162968,
    "y": 730.0272235397338,
    "width": 95,
    "height": 95,
    "constants": {
      "pin": "26",
      "pullup": "None",
      "debounce": 200
    },
    "up_data": {
      "can_go_up": true,
      "type": "output",
      "order": 999,
      "up": true
    },
    "debug": false,
    "active": true,
    "broadcast": true
  },
  {
    "type": "NotePad",
    "id": "ec4f7c75-265f-9326-cee8-18da8763dc6d",
    "x": 796.9035962036131,
    "y": 158.84482353973385,
    "width": 200.8582000732422,
    "height": 25,
    "ports": [],
    "text": "Left Joystick"
  },
  {
    "type": "NotePad",
    "id": "a592495b-4ba8-cdc2-585f-d2d16a835c64",
    "x": 1100.91344251709,
    "y": 158.84482353973385,
    "width": 200.8582000732422,
    "height": 25,
    "ports": [],
    "text": "Right Joystick"
  },
  {
    "type": "NotePad",
    "id": "e19cbcbb-23f8-9abc-ad9b-bad8e6428deb",
    "x": 1397.7000166915898,
    "y": 151.99174695739725,
    "width": 200.8582000732422,
    "height": 35.66666793823242,
    "ports": [],
    "text": "Colored\nButtons"
  },
  {
    "type": "Parameter",
    "name": "neo_bar",
    "id": "099c8f10-c07f-6681-ad14-d40fa3d11014",
    "ParameterType": "NeoPixel",
    "datatype": "rgb",
    "pid": 33490,
    "x": 521.6204007812499,
    "y": 985.5419235397335,
    "width": 85,
    "height": 40,
    "constants": {
      "pin": "12",
      "number_of_pixels": "5"
    },
    "up_data": {
      "can_go_up": true,
      "type": "input",
      "order": 999,
      "up": false
    },
    "debug": false,
    "active": true,
    "broadcast": false
  },
  {
    "type": "Parameter",
    "name": "can_slp",
    "id": "dde6b1cf-de90-b947-e254-353db8f4986d",
    "ParameterType": "DigitalOutput",
    "datatype": "bool",
    "pid": 56302,
    "x": 2319.7359,
    "y": 667.1335038726806,
    "width": 95,
    "height": 50,
    "constants": {
      "pin": "2"
    },
    "up_data": {
      "can_go_up": true,
      "type": "input",
      "order": 999,
      "up": false
    },
    "debug": false,
    "active": true,
    "broadcast": false
  },
  {
    "type": "Boolean",
    "id": "4af6e73d-4538-d155-9161-5a2699ec6761",
    "state": "True",
    "x": 2185.183368701172,
    "y": 667.1335038726806,
    "width": 65,
    "height": 20
  },
  {
    "type": "Variable",
    "id": "3af20f1f-3f2a-30bd-01e3-b06eb85f40b9",
    "name": "animation",
    "class": "Int",
    "datatype": "int",
    "state": "0",
    "pid": 29150,
    "up_data": {
      "type": "input",
      "order": 999,
      "up": true
    },
    "constant": false,
    "x": 313.53499772949215,
    "y": 940.8333129882812,
    "width": 38,
    "height": 31,
    "debug": false,
    "active": true,
    "broadcast": true
  },
  {
    "type": "Variable",
    "id": "10792d98-179c-a09c-f05a-7bb303187b47",
    "name": "delay",
    "class": "Int",
    "datatype": "int",
    "state": "200",
    "pid": 51105,
    "up_data": {
      "type": "input",
      "order": 999,
      "up": true
    },
    "constant": false,
    "x": 292.53499772949215,
    "y": 1026.5419235397335,
    "width": 50,
    "height": 34,
    "debug": false,
    "active": true,
    "broadcast": true
  },
  {
    "type": "Parameter",
    "name": "ColorChase",
    "id": "cec3485a-bdbc-c867-0a94-65a5dfe302ff",
    "ParameterType": "ColorChase",
    "datatype": "rgb",
    "pid": 28857,
    "x": 249.5,
    "y": 1194.8333129882812,
    "width": 92,
    "height": 22,
    "up_data": {
      "can_go_up": false,
      "type": "input",
      "order": 999,
      "up": false
    },
    "debug": false,
    "active": true,
    "broadcast": false
  },
  {
    "type": "Parameter",
    "name": "Rainbow",
    "id": "f82474a9-6f2f-9a28-668c-986364b0d8fd",
    "ParameterType": "Rainbow",
    "datatype": "rgb",
    "pid": 23302,
    "x": 265.5,
    "y": 1119.8333129882812,
    "width": 76,
    "height": 24,
    "up_data": {
      "can_go_up": false,
      "type": "input",
      "order": 999,
      "up": false
    },
    "debug": false,
    "active": true,
    "broadcast": false
  },
  {
    "type": "HoverConnection",
    "id": "2b775f03-5aa3-3fe4-bb75-ac541beaf49c",
    "bus": "local",
    "vertex": [
      {
        "x": 2170.1035,
        "y": 439.49566666666664
      },
      {
        "x": 2254.5652,
        "y": 439.49566666666664
      },
      {
        "x": 2254.5652,
        "y": 526.5823987025668
      },
      {
        "x": 2357.5652,
        "y": 526.5823987025668
      }
    ],
    "source": {
      "node": "c02b1b9a-83a0-4dc8-6c78-b233f6794e97",
      "port": "self"
    },
    "target": {
      "node": "9e65d461-88ea-d923-2508-c70738045031",
      "port": "neo_status"
    }
  },
  {
    "type": "HoverConnection",
    "id": "81ccaff8-45df-2bae-17f8-729bdb4f03db",
    "bus": "local",
    "vertex": [
      {
        "x": 2166.6035,
        "y": 345.03552824707026
      },
      {
        "x": 2279.5652,
        "y": 345.03552824707026
      },
      {
        "x": 2279.5652,
        "y": 508.725255845424
      },
      {
        "x": 2357.5652,
        "y": 508.725255845424
      }
    ],
    "source": {
      "node": "edadcf26-7123-6f65-aacc-531f07f49da0",
      "port": "self"
    },
    "target": {
      "node": "9e65d461-88ea-d923-2508-c70738045031",
      "port": "hbt_led"
    }
  },
  {
    "type": "HoverConnection",
    "id": "b96a0f4c-f506-aa60-d22f-c7a525790c6b",
    "bus": "local",
    "vertex": [
      {
        "x": 351.53499772949215,
        "y": 956.3333129882812
      },
      {
        "x": 426.57769925537104,
        "y": 956.3333129882812
      },
      {
        "x": 426.57769925537104,
        "y": 1004.5419235397335
      },
      {
        "x": 521.6204007812499,
        "y": 1001.5419235397335
      }
    ],
    "source": {
      "node": "3af20f1f-3f2a-30bd-01e3-b06eb85f40b9",
      "port": "output0"
    },
    "target": {
      "node": "099c8f10-c07f-6681-ad14-d40fa3d11014",
      "port": "animation"
    }
  },
  {
    "type": "HoverConnection",
    "id": "3f658083-625d-614a-c703-d4270120db8f",
    "bus": "local",
    "vertex": [
      {
        "x": 2171.6035,
        "y": 627.2213999999999
      },
      {
        "x": 2269.0652,
        "y": 627.2213999999999
      },
      {
        "x": 2269.0652,
        "y": 562.2966844168526
      },
      {
        "x": 2357.5652,
        "y": 562.2966844168526
      }
    ],
    "source": {
      "node": "094dfcb9-7772-56e1-d37f-10f852b3fd3e",
      "port": "self"
    },
    "target": {
      "node": "9e65d461-88ea-d923-2508-c70738045031",
      "port": "bus"
    }
  },
  {
    "type": "HoverConnection",
    "id": "888b1da6-521d-41d4-cf21-85be61ee9d65",
    "bus": "local",
    "vertex": [
      {
        "x": 2171.6035,
        "y": 524.2357
      },
      {
        "x": 2237.6370000000006,
        "y": 524.2357
      },
      {
        "x": 2237.6370000000006,
        "y": 544.4395415597097
      },
      {
        "x": 2357.5652,
        "y": 544.4395415597097
      }
    ],
    "source": {
      "node": "755f08c5-a527-574e-94c4-ec22787d7c83",
      "port": "event"
    },
    "target": {
      "node": "9e65d461-88ea-d923-2508-c70738045031",
      "port": "function_button"
    }
  },
  {
    "type": "HoverConnection",
    "id": "1bbd1a41-e764-4b10-7323-3d79baf93ba8",
    "bus": "local",
    "vertex": [
      {
        "x": 342.53499772949215,
        "y": 1043.5419235397335
      },
      {
        "x": 405.07769925537104,
        "y": 1043.5419235397335
      },
      {
        "x": 405.07769925537104,
        "y": 1009.5419235397335
      },
      {
        "x": 521.6204007812499,
        "y": 1009.5419235397335
      }
    ],
    "source": {
      "node": "10792d98-179c-a09c-f05a-7bb303187b47",
      "port": "output0"
    },
    "target": {
      "node": "099c8f10-c07f-6681-ad14-d40fa3d11014",
      "port": "delay"
    }
  },
  {
    "type": "HoverConnection",
    "id": "b75072ea-765c-2393-6102-16eee70e7af1",
    "bus": "local",
    "vertex": [
      {
        "x": 341.5,
        "y": 1131.8333129882812
      },
      {
        "x": 416.0602003906249,
        "y": 1131.8333129882812
      },
      {
        "x": 416.0602003906249,
        "y": 1017.5419235397335
      },
      {
        "x": 521.6204007812499,
        "y": 1017.5419235397335
      }
    ],
    "source": {
      "node": "f82474a9-6f2f-9a28-668c-986364b0d8fd",
      "port": "self"
    },
    "target": {
      "node": "099c8f10-c07f-6681-ad14-d40fa3d11014",
      "port": "animations"
    }
  },
  {
    "type": "HoverConnection",
    "id": "1b1fbbea-5636-ef36-2209-a8b7abf1b228",
    "bus": "local",
    "vertex": [
      {
        "x": 341.5,
        "y": 1205.8333129882812
      },
      {
        "x": 430.0602003906249,
        "y": 1205.8333129882812
      },
      {
        "x": 430.0602003906249,
        "y": 1017.5419235397335
      },
      {
        "x": 521.6204007812499,
        "y": 1017.5419235397335
      }
    ],
    "source": {
      "node": "cec3485a-bdbc-c867-0a94-65a5dfe302ff",
      "port": "self"
    },
    "target": {
      "node": "099c8f10-c07f-6681-ad14-d40fa3d11014",
      "port": "animations"
    }
  },
  {
    "type": "HoverConnection",
    "id": "173da2ce-5894-d6b6-1ef5-fdfc3ec9e718",
    "bus": "local",
    "vertex": [
      {
        "x": 2250.183368701172,
        "y": 677.1335038726806
      },
      {
        "x": 2270.183368701172,
        "y": 677.1335038726806
      },
      {
        "x": 2270.183368701172,
        "y": 692.1335038726806
      },
      {
        "x": 2319.7359,
        "y": 692.1335038726806
      }
    ],
    "source": {
      "node": "4af6e73d-4538-d155-9161-5a2699ec6761",
      "port": "output0"
    },
    "target": {
      "node": "dde6b1cf-de90-b947-e254-353db8f4986d",
      "port": "invert"
    }
  },
  {
    "type": "HoverConnection",
    "id": "ec707d73-60ec-cf9f-a83a-698d6fcdd53a",
    "bus": "local",
    "vertex": [
      {
        "x": 2250.183368701172,
        "y": 677.1335038726806
      },
      {
        "x": 2270.183368701172,
        "y": 677.1335038726806
      },
      {
        "x": 2270.183368701172,
        "y": 704.6335038726806
      },
      {
        "x": 2319.7359,
        "y": 704.6335038726806
      }
    ],
    "source": {
      "node": "4af6e73d-4538-d155-9161-5a2699ec6761",
      "port": "output0"
    },
    "target": {
      "node": "dde6b1cf-de90-b947-e254-353db8f4986d",
      "port": "initial_value"
    }
  }
]