Skip to content

"Select serial port" dropdown can be misleading when used with p5 web editor #14

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

Open
kaganjd opened this issue Oct 3, 2017 · 1 comment

Comments

@kaganjd
Copy link
Contributor

kaganjd commented Oct 3, 2017

Using the serial control app alone, without the p5 web editor, you have to follow these steps to get data in the app's serial console:

  1. select the serial port from the dropdown in the app that's connected to your Arduino, and
  2. check the "Serial Console Enabled" box

If you're using the web editor, you can:

  1. open the app
  2. check the "Serial Console Enabled" box
  3. connect to the app in your p5 sketch
  4. "play" your sketch

You never have to select your serial port from the dropdown. Since you set the portName in the p5 sketch, you're getting data from the Arduino, but the serial port dropdown will show the first option in the dropdown, which may not be the port you're actually getting data from.

One fix would be to figure out how to get the serial control app to display the port that's actually being read from, in cases where it's set from a p5 sketch instead of the dropdown menu.

@vanevery
Copy link
Member

I agree, it would be nice for the serial control app to display the currently open port.

One of the issues is that the selected port in the drop down gets reset is that the sketch calls a "serial.list()" which repopulates the drop down.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants