sanjayseshan / spikeprime-vscode

Extension to interact with LEGO SPIKE PRIME in VS Code
59 stars 8 forks source link

Wiki: image creation #2

Closed koldolrobotikas closed 4 years ago

koldolrobotikas commented 4 years ago

The format to create a new image doesn't work:

>>> imagen = hub.Image("99999/n00000/n99999/n00000/n99999")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: unexpected character in Image definition

The right one is

imagen = hub.Image('90009:90009:99999:09990:00900')

sanjayseshan commented 4 years ago

You have to use backslashes with the \n - i.e.

imagen = hub.Image("99999\n00000\n99999\n00000\n99999")

I will add that one to the list also.