Skip to content

Commit

Permalink
Merge pull request #99 from adafruit/update-gamepad
Browse files Browse the repository at this point in the history
update gamepad example sketch
  • Loading branch information
hathach authored Jun 20, 2021
2 parents d7eadba + 5eeabd6 commit 39d6187
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
17 changes: 17 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
# Adafruit TinyUSB Arduino Library Changelog

## 1.1.0 - 2021.06.21

- Add support for multiple CDC ports (need to modify tusb_config.h)
- fix #86 when calling midi API when device is not fully enumerated
- fix Serial connection issue with nrf52 on windows
- Update device driver of rp2040 to match tinyusb upstream
- Added feather rp2040 to ci build (skipped the external flash example for now due to SdFat compilation error)
- Add optional debug log for stack with Serial1 on samd core (will expand later to other core).
- lost more bug fixes to the stack

## 1.0.3 - 2021.05.26

- Update tinyusb stack to latest
- Added HID Gamepad example with Dhat support
- Fix warnings with -Wall -Wextra
- Fix warnings with cast function type for nrf

## 1.0.1 - 2021.05.21

Warn user to select TinyUSB via menu on ports where it is optional e.g SAMD and RP2040
Expand Down
8 changes: 4 additions & 4 deletions examples/HID/hid_gamepad/hid_gamepad.ino
Original file line number Diff line number Diff line change
Expand Up @@ -241,11 +241,11 @@ void loop()
delay(2000);


// Test buttons
for (int i=0; i<=15; ++i)
// Test buttons (up to 32 buttons)
for (int i=0; i<32; ++i)
{
Serial.print("Pressing button "); Serial.println(i+1);
gp.buttons = (0x00 | TU_BIT(i));
Serial.print("Pressing button "); Serial.println(i);
gp.buttons = (1U << i);
usb_hid.sendReport(0, &gp, sizeof(gp));
delay(1000);
}
Expand Down

0 comments on commit 39d6187

Please sign in to comment.