//BLINK LED AT RATE FROM SERIALMONITOR
int j=1;
//default
void setup() {
// put
// your setup code here, to run once:
pinMode(8,OUTPUT);
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
if(Serial.available()){
char c;
c=Serial.read();
if(c>='0' && c<='9'){
j=c-'0';
}
}
digitalWrite(8,HIGH);
delay(j*100);
digitalWrite(8,LOW);
delay(j*100);
}