Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions Arduino_USBHIDHost.h

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ The library has two main classes:
- **examples/Mouse** – Demonstrates receiving mouse events via a callback.
- **examples/Keyboard** – Demonstrates receiving keyboard events via both callbacks and the Stream interface.
- **examples/MouseAndKeyboard** – Demonstrates simultaneous support for both mouse and keyboard devices.
- **examples/Barcode** - Uses tthe HID Host implementation to read 13-digit EAN codes from a USB based barcode reader.
- **examples/Barcode** - Uses the HID Host implementation to read 13-digit EAN codes from a USB based barcode reader.

## Usage

Expand Down
2 changes: 1 addition & 1 deletion examples/Barcode/Barcode.ino
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <Arduino.h>
#include "Keyboard.h"
#include <Arduino_USBHIDHost.h>

USBHIDKeyboard keyboard;

Expand Down
2 changes: 1 addition & 1 deletion examples/Keyboard/Keyboard.ino
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <Arduino.h>
#include "Keyboard.h"
#include <Arduino_USBHIDHost.h>

USBHIDKeyboard kb;

Expand Down
9 changes: 4 additions & 5 deletions examples/KeyboardAndMouse/KeyboardAndMouse.ino
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#include <Arduino.h>
#include "Keyboard.h"
#include "Mouse.h"
#include <Arduino_USBHIDHost.h>

// Global device instances
USBHIDKeyboard kb;
Expand All @@ -27,11 +26,11 @@ void onMouseEvent(const HIDMouseEvent &event) {
Serial.print("Mouse event (callback) - Buttons: ");
Serial.print(event.buttons);
Serial.print(", x: ");
Serial.print(event.x);
Serial.print(event.xMovement);
Serial.print(", y: ");
Serial.print(event.y);
Serial.print(event.yMovement);
Serial.print(", wheel: ");
Serial.println(event.wheel);
Serial.println(event.wheelMovement);
}

void setup() {
Expand Down
2 changes: 1 addition & 1 deletion examples/Mouse/Mouse.ino
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <Arduino.h>
#include "Mouse.h"
#include <Arduino_USBHIDHost.h>

// Create a global mouse instance.
USBHIDMouse ms;
Expand Down
2 changes: 2 additions & 0 deletions src/Arduino_USBHIDHost.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#include "Mouse.h"
#include "Keyboard.h"