我在 arduino 上运行了这段代码,现在我不能再上传代码或连接到我认为它卡在循环中的板子了?我的电脑接了它,但我无法连接(已经在使用错误)我拔掉并重新插入现在没有错误但仍然无法连接......他们是要恢复的跳线还是???
//no delay... how bad is it??
void setup(){
//start serial connection
Serial.begin(9600);
pinMode(8, OUTPUT);
pinMode(9, OUTPUT);
pinMode(11, INPUT);
//no delay... how bad is it??
};
int count =0;
void loop(){
//no delay... how bad is it??
digitalWrite(8,LOW);
digitalWrite(9,HIGH);
int Data = digitalRead(11);
if (Data==0){
//no delay... how bad is it??
while (count!=16){
Serial.print(digitalRead(11));
count =count+1 ;
}
Serial.println("");
count=0;
}
//no delay... how bad is it??
};