Sample code generated does not work
tigoe opened this issue · 2 comments
tigoe commented
Here's the process for testing:
- open p5.serialcontrol
- scan for ports
- open a port
- Copy serial code as generated
- paste into a new sketch at https://editor.p5js.org
- add CDN link after line 6 of index.html: <script language="javascript" type="text/javascript" src="https://cdn.jsdelivr.net/npm/p5.serialserver@0.0.28/lib/p5.serialport.js">
- Save
- Close serial port in serialcontrol app.
- Click Run
Result: sketch does not run.
tigoe commented
Solution: the CDN link mentioned on the main readme page needs a closing </script> tag.
js6450 commented
Added closing tag in the readme file!