Speedy78
0
- Joined
- Dec 17, 2012
- Messages
- 2,081
- Points
- 63
I looked at some of it but I have no idea what any of it is haha.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
ControlP5 2.0.4 infos, comments, questions at http://www.sojamo.de/libraries/controlP5
Exception in thread "Animation Thread" java.lang.NullPointerException
at processing.core.PApplet.handleDraw(PApplet.java:2297)
at processing.core.PGraphicsJava2D.requestDraw(PGraphicsJava2D.java:243)
at processing.core.PApplet.run(PApplet.java:2140)
at java.lang.Thread.run(Thread.java:662)
Exception in thread "Animation Thread" java.lang.NullPointerException
at processing.core.PApplet.handleDraw(PApplet.java:2297)
at processing.core.PGraphicsJava2D.requestDraw(PGraphicsJava2D.java:243)
at processing.core.PApplet.run(PApplet.java:2140)
at java.lang.Thread.run(Thread.java:662)
Stable Library
=========================================
Native lib Version = RXTX-2.1-7
Java lib Version = RXTX-2.1-7
if(maxData <= 1)
{
maximum = 1.0;
}
else
{
float magnitude = pow(10, floor(log(maxData) / 2.3025850929940456840179914546844));
maximum = ceil(maxData / magnitude) * magnitude;
}
* IMPORTANT INFO FOR ANYONE HAVING PROBLEMS*
using Trevor's Peregrine on MacOSX
I can now say that right now I am running Peregrine on MacOSX 10.8.2
I now figured out why Peregrine failed to see the incoming serial data before.
Any application built around Processing is NOT independent of the Processing serial library.
IF you intend to run Peregrine you must first download Processing and then install the Serial library.
After doing this final step, only then will the serial data be visible to Peregrine.
I now will prove that Trevors hard work is finally working!:beer::beer:
Sorry to bump this up again but is the serial library a separate download? I downloaded Processing but I don't see an option to install the serial library.
Sorry to bump this up again but is the serial library a separate download? I downloaded Processing but I don't see an option to install the serial library.
import processing.serial.*;
Serial serial;
int baudrate = 9600;
void setup() {
serial = new Serial(this, Serial.list()[0], baudrate);
//change the 0 if arduino is not your first com port
}
Yes the library was a separate download but according to processing forums is now included.
Give it a go. If you get an error you'll need to either re-install processing or download the serial library via Ardunio.cc .:thinking:
Hm... downloading the Arduino IDE shouldn't be necessary. At least I would hope not.
If anything, you'd need to just download RXTX - but I'd start with running those shell commands.
EDIT: Oop, S_l edited his post. What's the source code for exactly?
Trevor
Figured out my problem. After posting last night I got thinking I bet I need a driver for the RS323->USB controller in my LB and sure enough as soon as I installed a pl-2303 driver the serial port showed up and everything works great. I'm currently using 10.6.8 on this machine FWIW.
Trevor, did you get some time to test my changes?
Glad it's working! How do you like it?
Trevor