Hi,
I'll explain my project and my problem: I'm seeding data from a sensor to the console, I take back the console by using PuTTy ('telnet localhost 6571) and I store those data on a .log file. Finally I plot them with matplotlib on Python.
Just a simple code to understand my problem:
#include <Bridge.h>
int pin = 1;
int value;
void setup() {
- Bridge.begin();*
- Console.begin();*
}
void loop() { - value = analogRead(pin);*
- Console.println(value);*
}
Problem is the Console.print is really slow, on a 5 secondsacquisition I've got ~350/380 samples, that mean like 60 samples for 1 second .print. For slow sensor it's not a problem, but for my application it's not a good deal.
Do you have tips to increase the speed of the Console.print?
Sam'