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,41 +1,41 @@
|
||||
{
|
||||
"Library": "electromagnet",
|
||||
"Description": "Electromagnet Library",
|
||||
"Sensor Class":
|
||||
{
|
||||
"Electromagnet":
|
||||
{
|
||||
"Name": "API for the Electromagnet",
|
||||
"Description": "The Electromagnet can hold up to 1 kg (approximately 2.2 lbs)",
|
||||
"Aliases": ["electromagnet"],
|
||||
"Categories": ["electric", "magnetic"],
|
||||
"Connections": ["gpio"],
|
||||
"Project Type": ["prototyping"],
|
||||
"Manufacturers": ["seeed"],
|
||||
"Kits": [],
|
||||
"Image": "electromagnet.jpg",
|
||||
"Examples":
|
||||
{
|
||||
"Java": [],
|
||||
"Python": ["electromagnet.py"],
|
||||
"Node.js": ["electromagnet.js"],
|
||||
"C++": ["electromagnet.cxx"],
|
||||
"C": []
|
||||
},
|
||||
"Specifications":
|
||||
{
|
||||
"Operating Voltage": {"unit": "V", "typ": 5},
|
||||
"Operating Current": {"unit": "mA", "typ": 400},
|
||||
"Standby Current": {"unit": "uA", "typ": 200},
|
||||
"Max Load Weight": {"unit": "kgs", "typ": 1}
|
||||
|
||||
},
|
||||
"Urls" :
|
||||
{
|
||||
"Product Pages": ["https://www.seeedstudio.com/Grove-Electromagnet-p-1820.html"],
|
||||
"Datasheets": ["https://raw.githubusercontent.com/SeeedDocument/Grove-Electromagnet/master/res/ZYE1-P20-15.pdf", "http://wiki.seeed.cc/Grove-Electromagnet/"],
|
||||
"Schematics": []
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
{
|
||||
"Library": "electromagnet",
|
||||
"Description": "Electromagnet Library",
|
||||
"Sensor Class":
|
||||
{
|
||||
"Electromagnet":
|
||||
{
|
||||
"Name": "API for the Electromagnet",
|
||||
"Description": "The Electromagnet can hold up to 1 kg (approximately 2.2 lbs)",
|
||||
"Aliases": ["electromagnet"],
|
||||
"Categories": ["electric", "magnetic"],
|
||||
"Connections": ["gpio"],
|
||||
"Project Type": ["prototyping"],
|
||||
"Manufacturers": ["seeed"],
|
||||
"Kits": [],
|
||||
"Image": "electromagnet.jpg",
|
||||
"Examples":
|
||||
{
|
||||
"Java": [],
|
||||
"Python": ["electromagnet.py"],
|
||||
"Node.js": ["electromagnet.js"],
|
||||
"C++": ["electromagnet.cxx"],
|
||||
"C": []
|
||||
},
|
||||
"Specifications":
|
||||
{
|
||||
"Operating Voltage": {"unit": "V", "typ": 5},
|
||||
"Operating Current": {"unit": "mA", "typ": 400},
|
||||
"Standby Current": {"unit": "uA", "typ": 200},
|
||||
"Max Load Weight": {"unit": "kgs", "typ": 1}
|
||||
|
||||
},
|
||||
"Urls" :
|
||||
{
|
||||
"Product Pages": ["https://www.seeedstudio.com/Grove-Electromagnet-p-1820.html"],
|
||||
"Datasheets": ["https://raw.githubusercontent.com/SeeedDocument/Grove-Electromagnet/master/res/ZYE1-P20-15.pdf", "http://wiki.seeed.cc/Grove-Electromagnet/"],
|
||||
"Schematics": []
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user