It worked ok, but when I loaded sketch below It stopped to receve new sketches.
When I open port monitor I see that board works (it sends data to serial port)!
But when I try to load new sketch arduino blinks leds 2 times, I hear sound on my computer (like usb device off)
then it waits for a long time saying loading…
I tried to use another computer - the same.
I disconnected all the wires from arduino (external sensors) - the same.
I installed 1.5 4 - the same.
My arduino program sees the port. And as I said before I can minitor the port and it works.
Does anybody know how to fix the problem?
#define DEPTH 1000
for (int i=1;i<DEPTH;i++)
x = x[i-1];
x = analogRead(A2);*
double xsum = 0;*
for (int i=0;i<DEPTH;i++)*
_ xsum += x*;_
* xsum = (double) xsum / DEPTH;*