I am a newbie, in fact I've started to use/learn Processing just yesterday. I my trying to build a hot-tub DINO- so an anrduino mega is sending serial data to my pc then processing is used for displaying gauages an so on. This is what is all about.
Here is the problem, I'm stuck with this OUTOFMEMORYERROR after some minutes.Tried to increase memory as suggested by processing. It took some more time to crash but it did it again. Data input seems to be high to handle.
Is there something I can do like flushing the old data while using the incoming so to keep it to a minimum?
Any help appreciated. I thinking of dumping all and use another language but processing seems to the one with simple graphical contents I need.
THANKS
below is the arduino code:
#include <OneWire.h>
#include <DallasTemperature.h>
#define ONE_WIRE_BUS 3// Data wire is plugged into pin 3 on the Arduino
// Setup a oneWire instance to communicate with any OneWire devices
OneWire oneWire(ONE_WIRE_BUS);
// Pass our oneWire reference to Dallas Temperature.
DallasTemperature sensors(&oneWire);
// Assign the addresses of your 1-Wire temp sensors.