1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-11-29 10:24:12 +01:00

Modified project14 for compatibility to Processing 3

This commit is contained in:
Arturo Guadalupi 2015-10-22 12:38:01 +02:00
parent 22dd1cbb99
commit d56e3848b4

View File

@ -51,14 +51,16 @@ void loop() {
int bgcolor = 0; int bgcolor = 0;
void setup() { void setup() {
size(1, 1);
surface.setResizable(true);
// set the color mode to Hue/Saturation/Brightness // set the color mode to Hue/Saturation/Brightness
colorMode(HSB, 255); colorMode(HSB, 255);
// load the Arduino logo into the PImage instance // load the Arduino logo into the PImage instance
logo = loadImage("http://www.arduino.cc/en/pub/skins/arduinoWide/img/logo.png"); logo = loadImage("http://www.arduino.cc/arduino_logo.png");
// make the window the same size as the image // make the window the same size as the image
size(logo.width, logo.height); surface.setSize(logo.width, logo.height);
// print a list of available serial ports to the // print a list of available serial ports to the
// Processing staus window // Processing staus window
@ -76,7 +78,6 @@ void loop() {
// If you know the name of the port used by the Arduino board, you // If you know the name of the port used by the Arduino board, you
// can specify it directly like this. // can specify it directly like this.
// port = new Serial(this, "COM1", 9600); // port = new Serial(this, "COM1", 9600);
} }
void draw() { void draw() {
@ -98,7 +99,4 @@ void loop() {
// draw the Arduino logo // draw the Arduino logo
image(logo, 0, 0); image(logo, 0, 0);
} }
*/ */