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

View File

@ -48,7 +48,7 @@ namespace upm {
* @type sound
* @man seeed
* @web http://www.seeedstudio.com/wiki/Grove_-_Sound_Sensor
* @con pwm
* @con analog
* @kit gsk
*
* @brief API for the Analog Microphone

31
src/mic/mic.json Normal file
View File

@ -0,0 +1,31 @@
{
"Library": "mic",
"Description": "Generic analog microphone library",
"Sensor Class":
{
"Microphone":
{
"Name": "Analog Microphone",
"Description": "This module defines the Analog Microphone sensor.",
"Aliases": ["Grove - Sound Sensor"],
"Categories": ["sound"],
"Connections": ["analog"],
"Project Type": ["prototyping", "industrial"],
"Manufacturers": ["seeed", "dfrobot", "sparkfun", "adafruit", "generic"],
"Kits": ["gsk"],
"Image": "mic.jpg",
"Examples":
{
"Java": ["MicrophoneSample.java"],
"Python": ["mic.py"],
"Node.js": ["mic.js"],
"C++": ["mic.cxx"]
},
"Urls" :
{
"Product Pages": ["http://www.seeedstudio.com/wiki/Grove_-_Sound_Sensor"],
"Schematics": ["https://github.com/SeeedDocument/Grove_Sound_Sensor/raw/master/res/Grove%20-%20Sound%20Sensor%20v1.6%20Schematic.pdf"]
}
}
}
}