上传到卡住的Arduino Leonardo

时间:2017-11-08 07:12:15

标签: arduino

由于编码不好,我不小心上传了一个效果与此相同的脚本:

#include "Keyboard.h"

void setup() {
  Keyboard.begin();
}

void loop() {
  Keyboard.print("hello world");
}

我意外地在void loop中调用了一个我没有完全检查的功能,现在我无法清除它,因为它不会停止在屏幕上打印字符。

到目前为止,我已经尝试在上传时按下重置并在上传时保持重置,但都没有工作。我甚至尝试通过ICSP上传,我得到的只是红色文字,说不能与董事会沟通。

我有一个正在运行的Arduino Uno,如果需要修复Leonardo,可以使用。

我没有足够的编码能力来自行解决这个问题。请帮忙。

1 个答案:

答案 0 :(得分:0)

I managed too clear the Arduino in the end by just luck. There is a few milliseconds on startup, where the board is on, but no code is running. If you are lucky enough that your programmer begins its upload then, assuming your code is short, it can overwrite the faulty code.

void setup() {}
void loop() {}
相关问题