   Serial.print(" ");
   Serial.println(Vm, 8);
   
+  // Updating the analogical output (using PWM)
+  analogWrite(outputPin, min(max(20,Vm*250),240) );
+  
   delay(30);
 }
 

  digitalWrite(ledPin_inputSPK, inCurrent);
  
  // Updating the input current
  double I = .3 + inCurrent*PulseAmplitude;
  
  // Updating the membrane potential
  if ( Not_Resting )

  pinMode(readInterrupt, INPUT);
  pinMode(ledPin_inputSPK, OUTPUT);
  pinMode(ledPin_spikesign, OUTPUT);
  pinMode(outputPin, OUTPUT);
}

void loop() 
