Hello!
I am a beginner starting out with the Arduino Starter Kit. While doing project 14, Tweak the Logo, there has been a programing error that I am having trouble fixing. This is my program:
void loop() {
Serial.write(analogRead(A0)/4);
delay(1);
}
import processing.serial.*;
Serial myPort;
PImage logo;
int bgcolor = 0; // change bg colour of the image
void setup() {
colorMode(HSB, 255); // maximum value related to HSB
logo = loadImage("http://arduino.cc/logo.png"); // download image
size(logo.width, logo.height);
println("Arduino serial ports");
println(Serial.list());
myPort =
new Serial(this, Serial.list()[1411], 9600);
}
void draw() {
if myPort.available() > 0) {
bgcolor) = myPort.read();
println(bgcolor);
}
background(bgcolour, 255, 255);
image(logo, 0, 0,);
}
On the line "import processing.serial.*;", the app is saying import does not name a type. This is the error message: "'import' does not name a type; did you mean 'qsort'?"
Any help on this would be truly appreciated!
Thankyou!