How to make and use my own arduino libraries? [message #1745379] |
Sun, 09 October 2016 09:24  |
Eclipse User |
|
|
|
Hi all!
As the topic reads, how do i create and use my own libraries when using CDT to program arduino boards. Its easy to download and use the libraries found under "Arduino download manager" but how do i make my own?
|
|
|
|
|
Re: How to make and use my own arduino libraries? [message #1749999 is a reply to message #1749917] |
Wed, 14 December 2016 20:25   |
Eclipse User |
|
|
|
Oddly enough, the following block that was added to the library_index.json file disappeared from the system apparently due to an Eclipse update on 11/23/2016.
See annotations in the following: mu == made up; new == derived from source; copied == copied from an existing block just to get the sytax correct
{
"name": "genieArduino", mu
"version": "06-10-2015", new, source git-hub
"author": "4D-Laboratories", mu
"maintainer": "4D-Laboratories", mu
"sentence": "Arduino Library for Visi-Genie", mu
"paragraph": "Supports 4D-Laboratories Picasso based lcd displays", mu
"website": "https://github.com/4dsystems/ViSi-Genie-Arduino-Library", new, source github.com searched for the library name I was looking for
"category": "Sensors", mu, probably not the best choice but didn't find one for displays
"architectures": [ copied from an existing block
"*"
],
"types": [ copied from an existing block
"Contributed"
],
"url": "https://github.com/4dsystems/ViSi-Genie-Arduino-Library", new, source github
"archiveFileName": "genieArduino-016-06-2015.zip", mu
"size": 26113, can't remember
"checksum": "SHA-256:d03c355588958ede15822a3ea25ca4387c5a154a44209766212b74636bd9338f" new, source github
}
]
}
hope this helps
|
|
|
Re: How to make and use my own arduino libraries? [message #1750000 is a reply to message #1749999] |
Wed, 14 December 2016 20:35   |
Eclipse User |
|
|
|
It does! But I am fairly new With eclipse, I think I am doing something wrong... Here is what I added at the end of my file.
{
"name": "FAB_LED",
"version": "0.1.0",
"author": "SonyHome",
"maintainer": "SonyHome",
"sentence": "Fast Arduino Bitbang (FAB) LED library.",
"paragraph": "This library is meant to be a very compact, fast library to drive your addressable LEDs.",
"website": "https://github.com/sonyhome/FAB_LED",
"category": "Display",
"architectures": [
"*"
],
"types": [
"Recommended"
],
"url": "https://github.com/sonyhome/FAB_LED/archive/master.zip",
"archiveFileName": "FAB_LED-master.zip",
"size": 264693,
"checksum": "SHA-1:e9437a33f7b77f4b52da1854582a01dc058c58c0"
}
How did you get the checksum? Is it provided by github? After refreshing the index I still don't see it. Any ideas? Thank you for your reply.
D.
|
|
|
|
|
|
|
|
|
Re: How to make and use my own arduino libraries? [message #1752744 is a reply to message #1752738] |
Thu, 26 January 2017 15:11  |
Eclipse User |
|
|
|
Hello Dario,
Yes, I created a 'dummy' one myself. and put it in the local library folder. It is a simple text file with the library properties. You can look at other library root folders for some examples.
In addition, it is not a bad idea also to drop the creator/author a request to create an 'official' file and have it added to the repository also.
YMMV -> "Your Mileage May Vary"
It just means that your results / experience may be different from mine.
|
|
|
Powered by
FUDForum. Page generated in 0.11127 seconds