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

'import' does not name a type #20

Open
Teeblackgold97 opened this issue Jan 9, 2019 · 5 comments
Open

'import' does not name a type #20

Teeblackgold97 opened this issue Jan 9, 2019 · 5 comments

Comments

@Teeblackgold97
Copy link

There is an error in this line of code:
import processing.serial.*; // serial library lets us talk to Arduino

Also, when I open the sketchbook it straight prompted me to new Arduino IDE window not the visualizer window.

@biomurph
Copy link
Contributor

biomurph commented Jan 9, 2019

@Teeblackgold97
Can you give us more information to help troubleshoot?
What OS are you running? What version of Processing are you running?
Can you copy paste the error code that you're getting?

@steniente
Copy link

I was having the same "error" and trouble following instructions too. Probably because I'm also a new Arduino and IDE user too.
Console Error: exit status 1
'import' does not name a type

image

This project requires 2 programs Arduino IDE to load the 1st example sketch to the board and then use the Processing software to run the visualization sketch.
I'm using:
OS: Windows 10
Arduino 1.8.8
Processing: 3.4
( I didn't know I had to install a processing software called Processing. This explains copying the downloaded folder to the correct location in step 2 of the installation . (As a newbie I was placing the folder in the Arduino Sketch folder. : /

@biomurph
Copy link
Contributor

biomurph commented Jan 9, 2019

@Teeblackgold97
You can't run the Processing sketch in the Arduino IDE.
You have to use Processing (www.processing.org)
First, program the Arduino with example sketch from the PulseSensor Playground library using the Arduino IDE
Then, run the Processing Visualizer from the Processing IDE.

@biomurph
Copy link
Contributor

@Teeblackgold97
I was notified that you commented on this issue with another error. From the looks of it, you did not have all of the code loaded into the Processing IDE. That's a common trap for young players ;)
The Processing code has multiple tabs that all need to be inside the sketch folder. Make sure that you have downloaded the entire repo and then you should be good to go.

@steniente
Copy link

I loaded the PulseSensorAmpd_Processing_Visualizer folder into this folder: C:\Users\STeniente.THM\Documents\Processing

What next??

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

3 participants