-
Notifications
You must be signed in to change notification settings - Fork 414
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
Fix for #115 #117
Fix for #115 #117
Conversation
Sorry for letting you wait for so long. I'm currently thinking about creating some sort of beta branch that I can use to accept PRs faster and then also create beta releases for those PRs. This way we can have new (beta) releases without testing them on all platforms. And those beta releases can then be turned into a stable release once they have been tested for all platforms. |
Apology accepted ;) The idea sounds good. |
I'm not sure yet. My initial idea was that I simply add a branch called beta and then you could merge your branch into that beta branch via PR. But maybe it would be a better idea to simply say that the master by itself is not stable and if you want a stable version of the source code, you have to checkout a release tag. |
I think that's the usual way. The master is the "development environment" and stable versions are tagged. Afaik both the ArduinoIDE Library Manager and PlatformIO use the release labels. |
Okay let's do it that way then. I've merged the PR and created a beta tag and a beta release for it now. You seem to be quite interested in this project. I would like to add you as a collaborator, so you don't have to create PRs all the time and wait for me. What do you think? |
Thank you for the offer. It sounds interesting. I'm in. :) I would also be interested in direct contact (WhatsApp / Telegram) - What do you think? |
BTW: I'm still trying to figure out the HID stuff. I would also be very interested in sending special characters. I am from Germany and I am missing the "Umlaute" (äöüß). |
I'm not comfortable sharing my phone number, but you can hit me up on [email protected] if you want. At the moment the layout is hardcoded here: ESP32-BLE-Keyboard/BleKeyboard.cpp Lines 215 to 349 in 4d93a04
and potentially also here: ESP32-BLE-Keyboard/BleKeyboard.h Lines 29 to 76 in 4d93a04
(I'm not sure if those keys actually differ in different layouts though.) |
Yes, I know those lines. I am still not quite clear about the conversion of ascii codes to HID codes. My idea would be to work with a std::vector instead of a static array. Alternatively, we could use a pointer to an array internally (which points to the fixed ascii table by default), but which can be changed to a custom table by the user. |
I think the name of the variable |
The name is suitable. The array maps the Ascii code to the corresponding scan code. So ascii codes > 128 are not possible at all. But exactly there are the umlauts and characters of other languages. |
Ok, i think begin to get a feeling for this. |
Thank's for the images! I am thinking about using a std::map instead of a fixed array. Edit: |
I think i've found a solution - check the new branch Layout (still in my repository)
|
Nice, I like it. Maybe it can be improved further in a way that the user doesn't have to worry about the layout code. Something like this maybe:
|
Sure, this can be outsourced to individual header files. |
I think so far no one has asked me for layouts other than DE and FR. So that would probably already be pretty valueable for the community. Other layouts could be added in the future. I don't think it would be necessary to add all layouts now. |
This fixes #115