Commit graph

1446 commits

Author SHA1 Message Date
Kristian Sloth Lauszus
7e96d9fb09 Expose API for controlling the left and right rumble individually 2021-05-02 22:34:49 +02:00
Kristian Sloth Lauszus
205009d2be
Merge pull request #617 from YuuichiAkagawa/pr_outnak_fix
Recover from OUT-NAK
2021-05-02 22:13:22 +02:00
Kristian Sloth Lauszus
2501f4c2e3 Can now control the LEDs and rumble on the Switch Pro controller 2021-05-02 22:03:05 +02:00
Kristian Sloth Lauszus
13b9047106 Added support for the Switch Pro controller via Bluetooth 2021-05-02 18:17:07 +02:00
Kristian Sloth Lauszus
e94343a49e Only print if the XboxCommand fails 2021-05-02 15:52:17 +02:00
Kristian Sloth Lauszus
3f61d9af2a Fixed reading the XBOX button on the Xbox One S controller via Bluetooth
This bug was introduced in #618
2021-05-02 15:46:03 +02:00
Kristian Sloth Lauszus
45bf971f3b
Merge pull request #618 from dmadison/enum-refactor
Make ButtonEnum values unique
2021-05-02 15:26:40 +02:00
Kristian Sloth Lauszus
4314c00683 Fixed link to amBX library 2021-05-02 15:26:05 +02:00
Kristian Sloth Lauszus
396820bdbe Ignore "initialization from incompatible pointer type" warning in the ESP32 core 2021-05-02 15:09:59 +02:00
Kristian Sloth Lauszus
0a924511df
Merge pull request #613 from AranVink/master
Add AMBX support
2021-05-02 15:02:49 +02:00
Aran Vink
e2a5cd9401 Update README 2021-03-28 00:46:39 +01:00
Aran Vink
425ae4584c Remove unneeded delays, rewrite main loop in example 2021-03-28 00:32:57 +01:00
David Madison
5d89999be8 ButtonEnum style order nitpicks
Aligning like-system identifiers for visual congruity. No functional change.
2021-03-27 15:05:16 -04:00
David Madison
33975cfca9 Modify XBOXOLD to catch previous button cases
Getting a bit ahead of myself and forgetting that the enum checks no longer work to maintain the previous aliases.
2021-03-27 14:32:01 -04:00
David Madison
2120adf283 Refactor button index function names
It's not really fair to refer to the main index function as "legacy" if it's actively being used. All controller-specific 'get' filtering functions are now appended with the name of the controller rather than having it in the middle.
2021-03-27 08:44:20 -04:00
David Madison
6e0748d097 Revert "Change button index 'get' functions to constexpr"
On second thought, reverting this so that in the case that the function is *not* evaluated at compile-time, the button values function is not called twice.
2021-03-27 08:37:15 -04:00
David Madison
89575639b1 Change button index 'get' functions to constexpr 2021-03-27 08:37:15 -04:00
David Madison
2fe5574e71 Change button values function to constexpr
Requires a chained ternary in place of a switch for compatibility with older compilers.
2021-03-27 08:37:01 -04:00
David Madison
57afaefd2c Check direct enum comparisons by index
To not break support for users who used the "wrong" control enumeration for that controller, but had their program work because the "wrong" enum used the same ID.
2021-03-27 07:31:37 -04:00
David Madison
f9a408204d Use signed index values for ButtonEnum 2021-03-27 06:51:01 -04:00
David Madison
5753cc661a Reorganized ButtonEnum list
Trying to form a more logical order based on how these are used.
2021-03-27 06:51:01 -04:00
David Madison
26c66f455e Remove shared identifiers in ButtonEnum
Move shared button identifiers from enum to an inline function, so formerly shared identifiers can be separately filtered and processed on a class-by-class basis.

Fixes #611.
2021-03-27 06:51:01 -04:00
Yuuichi Akagawa
82df4b990e Recover from OUT-NAK 2021-03-26 15:04:36 +09:00
Kristian Sloth Lauszus
a321ad36ab Release version 1.5.0 2021-03-25 19:06:34 +01:00
Kristian Sloth Lauszus
a7ba1aa15f
Merge pull request #615 from felis/adafruit_feather_nrf52840
The Adafruit Feather nRF52840 Express is now a supported board
2021-03-24 14:37:29 +01:00
Kristian Sloth Lauszus
0b4213319b Include <avr/dtostrf.h> for the Adafruit Feather nRF52840 Express manually 2021-03-24 13:41:18 +01:00
Kristian Sloth Lauszus
a121516eff Install adafruit-nrfutil, as it is needed for building the application even though it is only used for uploading 2021-03-24 13:07:15 +01:00
Kristian Sloth Lauszus
3be8da5ff6 Ignore 'unused-variable' warnings as well 2021-03-23 13:34:15 +01:00
Kristian Sloth Lauszus
f31bca66d5 Also ignore 'unused-function' warnings 2021-03-23 13:02:04 +01:00
Kristian Sloth Lauszus
4d20580b18 Workaround "warning: comparison between signed and unsigned integer expressions" in the Arduino core 2021-03-23 12:53:33 +01:00
Kristian Sloth Lauszus
10a17b4ae3 The Adafruit Feather nRF52840 Express is now a supported board 2021-03-23 12:46:31 +01:00
Kristian Sloth Lauszus
b435996557
Merge pull request #614 from josephduchesne/master
Added support for Adafruit NRF52840 Feather Express
2021-03-23 12:33:05 +01:00
Joseph Duchesne
e93c24df6f Fixed small typo 2021-03-22 09:31:54 -04:00
Joseph Duchesne
a56613ae66 Added support for Adafruit NRF52840 Feather Express
Added definitions for Adafruit NRF52840 Feather Express based on the
existing RBL_NRF51822 variant. The PS5 controller and USB_desc examples
have been tested and seem to work fine with a knockoff Duinofun USBmini
2.0 shield (after accounting for the mislabled pins on this hardware,
and cutting the USB VDD trace to wire it to 5V).
2021-03-22 09:28:22 -04:00
Aran Vink
4f74db45f0 Remove obsolete comment from example 2021-03-17 00:26:14 +01:00
Aran Vink
a23ba6d493 Correct example name in workflow CICD 2021-03-17 00:18:23 +01:00
Aran Vink
38dcb823d5 Add ambx to github workflow 2021-03-17 00:07:13 +01:00
Aran Vink
09fe72e754 Commit for AMBX support 2021-03-16 23:49:12 +01:00
Kristian Sloth Lauszus
37c7c5155a Fixed copyright year 2021-02-06 20:41:32 +01:00
Kristian Sloth Lauszus
47ba510d29
Merge pull request #599 from dennisfrett/master
Add support for MiniDSP 2x4HD
2021-02-06 20:40:15 +01:00
Dennis Frett
54e8728a30 Re-add deleted files. 2021-02-05 23:30:13 +01:00
Dennis Frett
dfe3b79bae Fix callbacks not being invoked. 2021-02-05 20:09:30 +01:00
Dennis Frett
0d57603adb Update copyright header + Arduino example indentation. 2021-02-05 11:49:23 +01:00
Dennis Frett
17cb44b5a2 Applied @xxxajk's formatting. 2021-02-05 10:43:02 +01:00
Dennis Frett
df0a711a3a Review comments. 2021-02-04 23:44:12 +01:00
Dennis Frett
a4e9521c4a Fix signed/unsigned comparison. 2021-02-04 19:39:55 +01:00
Dennis Frett
715fef691f Add support for MiniDSP 2x4HD. 2021-02-04 19:18:40 +01:00
Kristian Sloth Lauszus
e10f89da72
Merge pull request #596 from YuuichiAkagawa/pr_usbh_midi_fix#586
Fix for handling MIDI channels in the bidirectional converter example
2021-02-01 17:39:37 +01:00
Yuuichi Akagawa
ecce90052c add comment 2021-02-02 00:16:16 +09:00
Yuuichi Akagawa
e81b04519c Hub commented out 2021-01-29 07:33:17 +09:00