Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

diagram.json - can't cut, then paste, a component #616

Closed
alto777 opened this issue Jul 9, 2023 · 1 comment
Closed

diagram.json - can't cut, then paste, a component #616

alto777 opened this issue Jul 9, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@alto777
Copy link

alto777 commented Jul 9, 2023

I am unable to get a neopixel matrix into the diagram.json dexcription file.

I have a text file with some things that aren't on the pop-up menu of components. I cut from the file, after adjusting the "id", and paste into diagram.json. A bit inconvenient but It has worked for a long time.

Now when I paste the component into a new sketch *.json file, the schematic window goes black, offers "RETRY", and does never recover.

In desperation (!), I took an existing project

this one

and cut this from diagram.json:

{
  "type": "wokwi-neopixel-matrix",
  "id": "neopixels1",
  "top": 15.72,
  "left": -415.48,
  "attrs": { "pixleate": "1", "rows": "1", "cols": "25" }
},

(strip disappears, good)

and immediately pasted it back, having not budged the cursor, which should make the strip come back. As doing with a new project did up until now.

It does not. It behaves identically to adding the same thing to a basically blank project. Diagram window goes black, "RETRY", no joy.

Mac OS 10.14.5
Chrome Version 114.0.5735.198 (Official Build) (x86_64)

and Firefox 114.02

Safari does not work very well with wokwi, or didn't, so I don't use it anymore for that.

Did the neopixel matrix descriptor change? Where can I find all the neopixel parts?

a7

@alto777 alto777 added the bug Something isn't working label Jul 9, 2023
@urish urish self-assigned this Jul 9, 2023
@urish
Copy link
Contributor

urish commented Jul 9, 2023

Thanks for reporting, should be fixed now!

Neopixel matrices / strips are still kind of hacky at the moment, should be fixed once we get an opportunity to work on #240 (and then we'll also add proper documentation).

@urish urish closed this as completed Jul 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants