keybrd library is an open source library for creating custom-keyboard firmware.
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
Это архивный репозиторий. Вы можете его клонировать или просматривать файлы, но не вносить изменения или открывать задачи/запросы на слияние.

tutorial_8b_sharing_your_keybrd_extension_library.md 4.4KB

7 лет назад
8 лет назад
7 лет назад
8 лет назад
7 лет назад
7 лет назад
7 лет назад
7 лет назад
7 лет назад
7 лет назад
7 лет назад
8 лет назад
7 лет назад
7 лет назад
8 лет назад
7 лет назад
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. Tutorial 8b - sharing your keybrd extension library
  2. ===================================================
  3. Publishing and listing your keybrd extension library allows others to find and install your library.
  4. The keybrd extension library name should start with "keybrd_" so that it is easy for other people to find.
  5. There are two ways to publish and list an Arduino library.
  6. Publish anywhere and list on Arduino Playground
  7. -----------------------------------------------
  8. Publishing your keybrd extension library with the following directory structure makes it easy for others to understand.
  9. keybrd_MyKeyboard/
  10. doc/
  11. keybrd_MyKeyboard_guide
  12. examples/
  13. keybrd_MyKeyboard1/
  14. keybrd_MyKeyboard1.ino
  15. keybrd_MyKeyboard2/
  16. keybrd_MyKeyboard2.ino
  17. class1.cpp
  18. class1.h
  19. class2.cpp
  20. class2.h
  21. ..
  22. instantiations_codes.h
  23. instantiations_rows.h
  24. When your ready to list your keybrd extension library,
  25. add a link and short description of your keybrd extension library to the [Arduino Playground keybrd page](http://playground.arduino.cc/Main/keybrd) under "keybrd extension libraries".
  26. Arduino playground is a wiki.
  27. Links on how to edit the wiki are on the bottom left under "Participate".
  28. Publish on GitHub and list on Arduino Library-Manager and Arduino Playground
  29. ----------------------------------------------------------------------------
  30. The advantage of using GitHub is that users can submit pull requests.
  31. The advantage of using Arduino Library-Manager is that users can easily find and install your library through the Arduino IDE.
  32. Arduino Library-Manager is particular about the directory structures it accepts.
  33. A library.properties file and a src folder need to be placed in your keybrd extension library like this:
  34. keybrd_MyKeyboard/
  35. library.properties
  36. doc/
  37. keybrd_MyKeyboard_guide
  38. examples/
  39. keybrd_MyKeyboard1/
  40. keybrd_MyKeyboard1.ino
  41. keybrd_MyKeyboard2/
  42. keybrd_MyKeyboard2.ino
  43. src/
  44. class1.cpp
  45. class1.h
  46. class2.cpp
  47. class2.h
  48. ..
  49. instantiations_codes.h
  50. instantiations_rows.h
  51. The library.properties file is described in
  52. https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5:-Library-specification
  53. Example library.properties file:
  54. ```
  55. name=keybrd_MyKeyboard
  56. version=1.2.3
  57. author=Me
  58. maintainer=Me
  59. sentence=An extension to the keybrd library for the MyKeyboard.
  60. paragraph=This library demonstrates my feature.
  61. category=Device Control
  62. url= (instert your MyKeyboard github repo URL here)
  63. architectures=*
  64. ```
  65. Instructions for listing a library on Arduino Library Manager are at:
  66. https://github.com/arduino/Arduino/wiki/Library-Manager-FAQ
  67. After it has been accepted into the Arduino IDE Library Manager,
  68. add a link and short description of your keybrd extension library to the [Arduino Playground keybrd page](http://playground.arduino.cc/Main/keybrd) under "keybrd extension libraries".
  69. Arduino playground is a wiki.
  70. Links on how to edit the wiki are on the bottom left under "Participate".
  71. To publish a new release of a library that is already listed on Arduino Library Manager
  72. 1. Update the version in your library.properties file:
  73. version=0.5.0
  74. 2. Commit
  75. 3. Create an annotated tag with the version number:
  76. $ git tag -a v0.5.0 -m "version 0.5.0"
  77. 4. Push:
  78. $ git push -u --tags origin master
  79. Arduino will eventually publish your new release.
  80. <br>
  81. <a rel="license" href="https://creativecommons.org/licenses/by/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://licensebuttons.net/l/by/4.0/88x31.png" /></a><br /><span xmlns:dct="http://purl.org/dc/terms/" property="dct:title">keybrd tutorial</span> by <a xmlns:cc="https://creativecommons.org/ns" href="https://github.com/wolfv6/keybrd" property="cc:attributionName" rel="cc:attributionURL">Wolfram Volpi</a> is licensed under a <a rel="license" href="https://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a>.<br />Permissions beyond the scope of this license may be available at <a xmlns:cc="https://creativecommons.org/ns" href="https://github.com/wolfv6/keybrd/issues/new" rel="cc:morePermissions">https://github.com/wolfv6/keybrd/issues/new</a>.