mirror of
https://github.com/eclipse/upm.git
synced 2025-10-30 06:34:58 +03:00
JAVA: Unified Java Example names
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>
This commit is contained in:
@@ -1,40 +1,40 @@
|
||||
{
|
||||
"Library": "grovespeaker",
|
||||
"Description": "API for the Grove Speaker",
|
||||
"Sensor Class":
|
||||
{
|
||||
"GroveSpeaker":
|
||||
{
|
||||
"Name": "Grove Speaker Module",
|
||||
"Description": "UPM module for the Grove Speaker. This sensor can generate different tones and sounds depending on the frequency of the input signal.",
|
||||
"Aliases": ["grovespeaker"],
|
||||
"Categories": ["sound", "deprecated"],
|
||||
"Connections": ["gpio"],
|
||||
"Project Type": ["sound", "prototyping"],
|
||||
"Manufacturers": ["seeed"],
|
||||
"Kits": ["hak"],
|
||||
"Image": "grovespeaker.jpg",
|
||||
"Examples":
|
||||
{
|
||||
"Java": ["GroveSpeakerSample.java"],
|
||||
"Python": ["grovespeaker.py"],
|
||||
"Node.js": ["grovespeaker.js"],
|
||||
"C++": ["grovespeaker.cxx"],
|
||||
"C": []
|
||||
},
|
||||
"Specifications":
|
||||
{
|
||||
"Operating Voltage": {"unit": "V", "low": 4, "high": 5.5},
|
||||
"Voltage Gain": {"unit": "dB", "typ": 46},
|
||||
"Bandwidth": {"unit": "KHz", "min": 20}
|
||||
|
||||
},
|
||||
"Urls" :
|
||||
{
|
||||
"Product Pages": ["https://www.seeedstudio.com/Grove-Speaker-p-1445.html"],
|
||||
"Datasheets": ["http://wiki.seeed.cc/Grove-Speaker/", "https://raw.githubusercontent.com/SeeedDocument/Grove-Speaker/master/res/LM386_Low_Voltage_Audio_Power_Amplifier_Datasheet.pdf"],
|
||||
"Schematics": ["https://raw.githubusercontent.com/SeeedDocument/Grove-Speaker/master/res/Grove-Speaker_v1.0_sch.pdf"]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
{
|
||||
"Library": "grovespeaker",
|
||||
"Description": "API for the Grove Speaker",
|
||||
"Sensor Class":
|
||||
{
|
||||
"GroveSpeaker":
|
||||
{
|
||||
"Name": "Grove Speaker Module",
|
||||
"Description": "UPM module for the Grove Speaker. This sensor can generate different tones and sounds depending on the frequency of the input signal.",
|
||||
"Aliases": ["grovespeaker"],
|
||||
"Categories": ["sound", "deprecated"],
|
||||
"Connections": ["gpio"],
|
||||
"Project Type": ["sound", "prototyping"],
|
||||
"Manufacturers": ["seeed"],
|
||||
"Kits": ["hak"],
|
||||
"Image": "grovespeaker.jpg",
|
||||
"Examples":
|
||||
{
|
||||
"Java": ["GroveSpeaker_Example.java"],
|
||||
"Python": ["grovespeaker.py"],
|
||||
"Node.js": ["grovespeaker.js"],
|
||||
"C++": ["grovespeaker.cxx"],
|
||||
"C": []
|
||||
},
|
||||
"Specifications":
|
||||
{
|
||||
"Operating Voltage": {"unit": "V", "low": 4, "high": 5.5},
|
||||
"Voltage Gain": {"unit": "dB", "typ": 46},
|
||||
"Bandwidth": {"unit": "KHz", "min": 20}
|
||||
|
||||
},
|
||||
"Urls" :
|
||||
{
|
||||
"Product Pages": ["https://www.seeedstudio.com/Grove-Speaker-p-1445.html"],
|
||||
"Datasheets": ["http://wiki.seeed.cc/Grove-Speaker/", "https://raw.githubusercontent.com/SeeedDocument/Grove-Speaker/master/res/LM386_Low_Voltage_Audio_Power_Amplifier_Datasheet.pdf"],
|
||||
"Schematics": ["https://raw.githubusercontent.com/SeeedDocument/Grove-Speaker/master/res/Grove-Speaker_v1.0_sch.pdf"]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user