Web Tutorial fails.

General suggestions or questions about the SparkFun Electronics website

Moderators: phalanx, CS Paul

Post Reply
SerialBuilder
Posts: 3
Joined: Mon Aug 08, 2016 10:49 pm

Web Tutorial fails.

Post by SerialBuilder » Wed Aug 17, 2016 8:42 pm

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.

CaseyD-SFE
Posts: 44
Joined: Thu Nov 14, 2013 9:27 am

Re: Web Tutorial fails.

Post by CaseyD-SFE » Thu Aug 18, 2016 8:36 am

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

User avatar
SFE-TS-Bobby
SFE Guru
Posts: 5
Joined: Wed Nov 07, 2012 8:47 am

Re: Web Tutorial fails.

Post by SFE-TS-Bobby » Thu Aug 18, 2016 9:43 am

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); 
    }
--------------------------------------------------

Post Reply