json: adding more JSON spec examples

JSON files for: bmp280, button, buzzer, led, mic, temperature.

Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
Mihai Tudor Panu
2017-07-05 14:54:17 -07:00
parent 9482d6bb74
commit 8a4e06d856
7 changed files with 262 additions and 1 deletions

32
src/button/button.json Normal file
View File

@ -0,0 +1,32 @@
{
"Library": "button",
"Description": "Generic library for buttons & switches",
"Sensor Class":
{
"Button":
{
"Name": "Button",
"Description": "Basic UPM module for buttons and switches. Allows attaching a callback function to state transitions.",
"Aliases": ["Grove - Button"],
"Categories": ["button"],
"Connections": ["gpio"],
"Project Type": ["prototyping", "industrial"],
"Manufacturers": ["seeed", "dfrobot", "sparkfun", "adafruit", "generic"],
"Kits": ["gsk"],
"Image": "button.jpg",
"Examples":
{
"Java": ["ButtonSample.java", "Button_intrSample.java"],
"Python": ["button.py"],
"Node.js": ["button.js"],
"C++": ["button.cxx"],
"C": ["button.c", "button-intr.c"]
},
"Urls" :
{
"Product Pages": ["http://wiki.seeed.cc/Grove-Button/"],
"Schematics": ["https://easyeda.com/Seeed/Grove_Button_v1_2-f0f9f212fcee460ebe3703dab813e5c4"]
}
}
}
}