arduino-libraries / Keyboard

GNU Lesser General Public License v3.0
225 stars 158 forks source link

Refer to HID to improve the code #35

Closed MRNIU closed 2 years ago

MRNIU commented 4 years ago

Hey guys, I tried replace current code with HID's keyboard control code. Now we support more keys, and US/DE layout. Please point out any mistakes. Thanks!

PaulStoffregen commented 4 years ago

Many of the source files say "See the readme for credit to other people". But this PR appears to not have that readme file.

Before this code is merged, at the very least that readme file should be included somehow, or the info about authors and contributors should be included in the source.

MRNIU commented 4 years ago

@per1234 My fault

MRNIU commented 4 years ago

Do we have any test case?

MRNIU commented 4 years ago

I do not currently have an Arduino Leonardo available, and I will solve this problem in the next few days.

PaulStoffregen commented 4 years ago

The header files still say "See the readme for credit to other people", but do not include this information. Please find and put this information into the header files.

If any of my code from Teensy was used (I strongly suspect it was - especially the keyboard layouts), I do NOT approve of it being published in this manner, without attribution, and with the header claiming the copyright is only to NicoHood.

MRNIU commented 4 years ago

I apologize if any infringement, but I had add the README file here.

About keyboard layouts, they are copy from NicoHood/HID with few changes, not from Teensy.

per1234 commented 4 years ago

I believe the statement in the headers:

Copyright (c) 2014-2015 NicoHood See the readme for credit to other people.

was written before the documentation was moved to the repository's wiki, and never updated after the move: https://github.com/NicoHood/HID#wiki

All documentation moved to the wiki page.

The "Useful Links/Credit" page of the wiki has a lot of credits, including one for Paul Stoffregen's Teensy Core: https://github.com/NicoHood/HID/wiki/Useful-Links-Credits

So I don't think the readme you added that only gives credit to NicoHood and you is sufficient.

MRNIU commented 4 years ago

I am so sorry for that, please excuse my carelessness.

I have added those information and submitted an issue for update the credits info.

Apologize to you again @PaulStoffregen

PaulStoffregen commented 4 years ago

Yes, that readme file confirms some of this code came from my work.

Please remove the portions with came from the Teensy core library.

MRNIU commented 4 years ago

@PaulStoffregen Already remove those codes. @per1234 I will rewrite the keymap, which will take a few days, Thank you.

MRNIU commented 4 years ago

@per1234 , Hi, I thought about it for a few days, checked the code of NicoHood/HID, and found that moving it here does not seem to make much sense. So I just refactored the code. Hope this is useful.

NicoHood commented 4 years ago

Ouuuf. That's a very old statement. I have mainly three ideas about this:

CLAassistant commented 3 years ago

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.