< >
Home » Arduino内置教程 » Arduino内置教程-USB

Arduino内置教程-USB

USB

键盘和鼠标的例子对于Leonardo,微计算机和Due是唯一的。他们示范了怎样使用对应开发板的库。

键盘

  • 键盘注销:利用按键命令注销当前使用者
  • 键盘发消息:当一个按键被按下,发送一个文本字符串。
  • 键盘再编译:在Arduino IDE上打开一个新窗口,用简单的跑马灯程序重新编译Leonardo
  • 键盘串口:从串口里读取一个字节,然后返回一个键值。
  • 键盘鼠标控制:在一个程序里示范鼠标和键盘命令

鼠标

The Keyboard and Mouse examples are unique to the Leonardo, Micro and Due. They demonstrate the use of libraries that are unique to the board.
KEYBOARD
Keyboard Logout: Logs out the current user with key commands.
Keyboard Message: Sends a text string when a button is pressed.
Keyboard Reprogram: Opens a new window in the Arduino IDE and reprograms the Leonardo with a simple blink program.
Keyboard Serial: Reads a byte from the serial port, and sends back a keystroke.
Keyboard Mouse Control: Demonstrates the Mouse and Keyboard commands in one program.
MOUSE
Button Mouse Control: Control cursor movement with 5 pushbuttons.
Joystick Mouse Contol: Controls a computer's cursor movement with a Joystick when a button is pressed.

纠错,疑问,交流: 请进入讨论区点击加入Q群

获取最新文章: 扫一扫右上角的二维码加入“创客智造”公众号


标签: arduino内置教程, arduino usb