Hello!
I made the circuit from this schematic: http://arduino.cc/forum/index.php?topic=92518.0
When i want to display the microseconds of each bit, the arduino seems to crash.
Here is the code that i use:
unsigned long time = 0;
void setup()
{
attachInterrupt(0, blink, LOW);
Serial.begin(9600);
}
void loop()
{
}
void blink()
{
time = micros();
Serial.println(time);
time = 0;
}
Any ideas?
Thank you!