Skip to content

Commit 09e861f

Browse files
authored
Merge pull request #10 from bcmi-labs/comment_clean_up
Comment clean up + introduction of CHANGELOG.md
2 parents 37ccfe5 + fd55804 commit 09e861f

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

examples/KeyboardAndMouse/KeyboardAndMouse.ino

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
/*
22
* This simple example demonstrates how to read mouse and keyboard data, by connecting these devices at the same time to the Portenta, via a USB hub
3-
*
4-
* In order to use two (or more) HID devices connected via a USB hub to your Portenta C33 board, please open "tusb_config.h" below (right click -> Go To Definition)
5-
* and make sure that "CFG_TUH_HUB" is set to value 1, and that "CFG_TUH_HID" is set to the number of HID devices you intend to connect to your Arduino (2 in this example).
6-
* Please also keep in mind that some keyboards and mice which include advanced illumination features might draw more power than the Arduino is able to provide on its
3+
*
4+
* Please keep in mind that some keyboards and mice which include advanced illumination features might draw more power than the Arduino is able to provide on its
75
* USB-A port and might therefore lead to a reset or failure to be enumerated by the board. Ideally, use basic USB keyboards and mice, these should work best.
86
*
97
* Instructions:
10-
* 1. Connect your Arduino Portenta C33 to a mid-carrier board;
8+
* 1. Connect your Arduino Portenta C33 to a mid-carrier board, then attach to the USB port a USB hub, through which you can then connect both a keyboard and a mouse simultaneously;
119
* 2. Upload this sketch to the Portenta;
1210
* 3. Open the Serial Monitor and chose the same baud rate as used in the sketch;
1311
* 4. Connect a USB hub to the USB-A connector on the mid-carrier board;
@@ -16,7 +14,6 @@
1614

1715
#include <Arduino.h>
1816
#include <Arduino_USBHIDHost.h>
19-
#include <tusb_config.h>
2017

2118
// Global device instances
2219
USBHIDKeyboard kb;

0 commit comments

Comments
 (0)