code: def type_to_string(t):
          
          if t == MemoryElement.TYPE_I2C:
              return 'I2C'
          if t == MemoryElement.TYPE_1W:
              return '1-wire'
          if t == MemoryElement.TYPE_DRIVER_LED:
              return 'LED driver'
          if t == MemoryElement.TYPE_LOCO:
              return 'Loco Positioning'
          if t == MemoryElement.TYPE_TRAJ:
              return 'Trajectory'
          if t == MemoryElement.TYPE_LOCO2:
              return 'Loco Positioning 2'
          return 'Unknown'
docs: Get string representation of memory type