esp-cpp / espp

C++ components for ESP
https://esp-cpp.github.io/espp/
MIT License
30 stars 9 forks source link

feat(hid-rp): update gamepad to use `unit::degree()` for hat switch #234

Closed finger563 closed 4 months ago

finger563 commented 4 months ago

Description

Motivation and Context

Makes the code easier to understand and provides a better example for using hid-rp library rather than hard-coding the 0x0014 constant (0th nibble = system, 4 = english rotation; 1st nibble = length exponent, 1 = degrees).

How has this been tested?

Building and running the hid_service/example on a QtPy ESP32s3 and testing with iOS and Android.

Screenshots (if appropriate, e.g. schematic, board, console logs, lab pictures):

Types of changes

Checklist:

Software

github-actions[bot] commented 4 months ago

:white_check_mark:Static analysis result - no issues found! :white_check_mark: