Unified all Java examples to *match* <LIBRARY>[_otherstuf]_Example.java.
Note, a handful of the examples have a pseudo-random string for the
first component (see FlexSensor_Example.java, ideally this would be
Flex_Example.java).
This commit allows for quick development on a single sensor library
since a -DMODULE_LIST=mysensorlib now works with Java examples
(previously Java examples would fail generation when using
MODULE_LIST).
* Renamed examples
* Updated class names
* Updated library descriptor .json files
* Updated sample mapping file
TODO: Make this work like the C/C++ examples - grab the target library
name from the filename and grab all dependencies from that target
library. Fix the handful of example names which don't conform.
Signed-off-by: Noel Eck <noel.eck@intel.com>
32 lines
1.1 KiB
JSON
32 lines
1.1 KiB
JSON
{
|
|
"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": ["Microphone_Example.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"]
|
|
}
|
|
}
|
|
}
|
|
}
|