Page 48 - Programming the Photon Getting Started With the Internet of Things
P. 48
Adding a library to the IDE requires an open-source Github repository where your
code will live on the servers. Github is a Web-based hosting service that offers distributed
revision control as well as source code management for users. Github is at the very heart
of the open-source community and thrives on users creating software to share. At a
minimum this repository requires a spark.json file, some documentation, some example
firmware files, and some Arduino/C++ files. The import and validation process is
designed to be easy to interpret—you can see an example in Figure 2.8. Just follow the
IDE step by step, and it will guide you through what is required to get your library set up
and accessible.