Page 1 of 1

Web Tutorial fails.

Posted: Wed Aug 17, 2016 8:42 pm
by SerialBuilder
https://learn.sparkfun.com/tutorials/co ... processing

First step does not work.

Processing fails to compile.

Missing void setup instructions ... shown in little snapshot .. not in code.

Re: Web Tutorial fails.

Posted: Thu Aug 18, 2016 8:36 am
by CaseyD-SFE
Hello!

I wanted to let you know that we've seen your post and someone from our Tech Support team will be responding back to you soon. :)

Thanks!

-Casey

Re: Web Tutorial fails.

Posted: Thu Aug 18, 2016 9:43 am
by SFE-TS-Bobby
Hi,

Sorry about the confusion. In order to be consistent with the rest of the tutorial, I have modified the tutorial’s code in the section “…to Processing” [ https://learn.sparkfun.com/tutorials/co ... processing ] to include void setup(){}

I changed this part of the tutorial:

--------------------------------------------------
For our `setup()` method in Processing, we're going to find the serial port our Arduino is connected to and set up our Serial object to listen to that port.

Code: Select all

    // I know that the first port in the serial list on my mac
    // is Serial.list()[0].
    // On Windows machines, this generally opens COM1.
    // Open whatever port is the one you're using.
    String portName = Serial.list()[0]; //change the 0 to a 1 or 2 etc. to match your port
    myPort = new Serial(this, portName, 9600); 
--------------------------------------------------

to:

--------------------------------------------------
For our `setup()` method in Processing, we're going to find the serial port our Arduino is connected to and set up our Serial object to listen to that port.

Code: Select all

    void setup()
    {
      // I know that the first port in the serial list on my mac
      // is Serial.list()[0].
      // On Windows machines, this generally opens COM1.
      // Open whatever port is the one you're using.
      String portName = Serial.list()[0]; //change the 0 to a 1 or 2 etc. to match your port
      myPort = new Serial(this, portName, 9600); 
    }
--------------------------------------------------