-
Notifications
You must be signed in to change notification settings - Fork 422
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
F1/F2 Brightness for iOS #23
Comments
Can you check if your keys are recognized in any way? https://www.keyboardtester.com/tester.html |
Thanks for the pointer - I looked over #3 and tested something out - I found the needed Hex for the Brightness Adjustment Link Here For Brightness Up - ESP32-BLE-Keyboard/BleKeyboard.cpp Line 77 in 63e08b7
with
For Brightness Down - ESP32-BLE-Keyboard/BleKeyboard.cpp Line 78 in 63e08b7
with
For Brightness Up - ESP32-BLE-Keyboard/BleKeyboard.h Line 68 in 63e08b7
with
For Brightness Down - ESP32-BLE-Keyboard/BleKeyboard.h Line 69 in 63e08b7
with
Once I added This is all new to me so I don't know how to help added this to as a new media key in the library instead of stealing the volume entries but I would be happy to test for you if needed. |
I can't quite remember, but I think there was a reason why I only implemented a few media keys. Maybe it was a limitation in the hid descriptor or some kind of compatibility issue with the official Arduino USB keyboard library. If it was easy, I would of course have added way more, if not all media keys. |
@balsman225 @T-vK Hello !, first of all nice work, I've found your solution while browsing for brightness control using BLe devices, I followed the changes u made in both files to basically swap the volume control with brightness control but so far when I swaped the values I only get volume control on iOS (iphone) but it behaves correctly on OSX (MacbookPro).
The hexadecimal needs to be edited somewhere else in order to trigger brightness? |
Hi balsman. You are on the right way USAGE(1), 0x006F, // USAGE (Bright Increment) ; bit 5: 32 You need just need unpair (forget device on your iphone bluetoot menu) and again pair your bluetooth device on your iphone. I treid %100 working birightness on my iphone and ipad. If you din't refresh pair still stick working just volume up and down. |
@balsman225 sorry for off top question - is it possible to switch off the iOS screen with ESP32 keyboard? or to lock the iPad? |
…com/espressif/arduino-esp32/releases/tag/3.0.0-alpha3 replaced volume up/down with brightness as per T-vK#23
I am trying to use an ESP32 to control a wall mounted iPad screen brightness (plan on pairing this library with MQTT).
On a normal Apple Bluetooth keyboard you can used F1 and F2 to adjust the brightness.
I have looked over Keyboard Modifier
I tried several combination without success
bleKeyboard.press(KEY_F1)
bleKeyboard.write(KEY_F1)
bleKeyboard.press(194)
bleKeyboard.write(194)
bleKeyboard.write(0xC2)
When testing with the "SendKeyStrokes" sketch I am able to get all other tests to work.
KEY_MEDIA_VOLUME_UP and KEY_MEDIA_VOLUME_DOWN work fine as well.
I'm curious if I need to create a custom "KEY_MEDIA" for brightness since iOS does not seem to be responding to F1/F2 keys
Thank you for the assistance
Also - Thank you for the great library
The text was updated successfully, but these errors were encountered: