我正在为 Arduino 编写一个简单的程序,它将接受 2 个按钮的输入并输出模拟按键,以在 Clone Hero 中使用 2 个不同的功能。
Arduino编辑器(在线版和本地版)吐出来
'Keyboard' was not declared in this scope
Run Code Online (Sandbox Code Playgroud)
离线编辑器询问是否包含 Keyboard.h...显然是。
有什么想法吗?
'Keyboard' was not declared in this scope
Run Code Online (Sandbox Code Playgroud)
这是一个典型的错误——您可能正在为非 Leonardo 板进行编译,例如 Uno。不包含 Keyboard.h 库,因为您正在编译的主板不存在该库。
我拿了你的代码并为 Leonardo 编译了它——没有问题。对于 Uno,我得到了和你一样的错误......
| 归档时间: |
|
| 查看次数: |
10637 次 |
| 最近记录: |