mirror of
https://github.com/eclipse/upm.git
synced 2025-10-29 14:15:33 +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": "grovecollision",
|
||||
"Description": "API for the Grove Collision Sensor",
|
||||
"Sensor Class":
|
||||
{
|
||||
"GroveCollision":
|
||||
{
|
||||
"Name": "Grove Collision Sensor",
|
||||
"Description": "The Grove Collision Sensor can detect whether any collision movement or vibration happens. It outputs a low pulse signal when vibration is detected.",
|
||||
"Aliases": ["grovecollision"],
|
||||
"Categories": ["collision", "deprecated"],
|
||||
"Connections": ["gpio"],
|
||||
"Project Type": ["prototyping", "robotics"],
|
||||
"Manufacturers": ["seeed"],
|
||||
"Kits": [],
|
||||
"Image": "grovecollision.jpg",
|
||||
"Examples":
|
||||
{
|
||||
"Java": ["GroveCollision.java"],
|
||||
"Python": ["grovecollision.py"],
|
||||
"Node.js": ["grovecollision.js"],
|
||||
"C++": ["grovecollision.cxx"],
|
||||
"C": []
|
||||
},
|
||||
"Specifications":
|
||||
{
|
||||
"Operating Voltage": {"unit": "V", "low": 3.3, "high": 5},
|
||||
"Operating Current": {"unit": "mA", "max": 2},
|
||||
"Reaction Point": {"unit": "mg", "typ": 50},
|
||||
"Off Resistance": {"unit": "MOhms", "min": 30},
|
||||
"On Resistance": {"unit": "Ohms", "max": 100}
|
||||
},
|
||||
"Urls" :
|
||||
{
|
||||
"Product Pages": ["https://www.seeedstudio.com/Grove-Collision-Sensor-p-1132.html"],
|
||||
"Datasheets": ["https://raw.githubusercontent.com/SeeedDocument/Grove-Collision_Sensor/master/res/DataSheet-MVS0608_02-v2_1.pdf", "http://wiki.seeed.cc/Grove-Collision_Sensor/"],
|
||||
"Schematics": []
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
{
|
||||
"Library": "grovecollision",
|
||||
"Description": "API for the Grove Collision Sensor",
|
||||
"Sensor Class":
|
||||
{
|
||||
"GroveCollision":
|
||||
{
|
||||
"Name": "Grove Collision Sensor",
|
||||
"Description": "The Grove Collision Sensor can detect whether any collision movement or vibration happens. It outputs a low pulse signal when vibration is detected.",
|
||||
"Aliases": ["grovecollision"],
|
||||
"Categories": ["collision", "deprecated"],
|
||||
"Connections": ["gpio"],
|
||||
"Project Type": ["prototyping", "robotics"],
|
||||
"Manufacturers": ["seeed"],
|
||||
"Kits": [],
|
||||
"Image": "grovecollision.jpg",
|
||||
"Examples":
|
||||
{
|
||||
"Java": ["GroveCollision_Example.java"],
|
||||
"Python": ["grovecollision.py"],
|
||||
"Node.js": ["grovecollision.js"],
|
||||
"C++": ["grovecollision.cxx"],
|
||||
"C": []
|
||||
},
|
||||
"Specifications":
|
||||
{
|
||||
"Operating Voltage": {"unit": "V", "low": 3.3, "high": 5},
|
||||
"Operating Current": {"unit": "mA", "max": 2},
|
||||
"Reaction Point": {"unit": "mg", "typ": 50},
|
||||
"Off Resistance": {"unit": "MOhms", "min": 30},
|
||||
"On Resistance": {"unit": "Ohms", "max": 100}
|
||||
},
|
||||
"Urls" :
|
||||
{
|
||||
"Product Pages": ["https://www.seeedstudio.com/Grove-Collision-Sensor-p-1132.html"],
|
||||
"Datasheets": ["https://raw.githubusercontent.com/SeeedDocument/Grove-Collision_Sensor/master/res/DataSheet-MVS0608_02-v2_1.pdf", "http://wiki.seeed.cc/Grove-Collision_Sensor/"],
|
||||
"Schematics": []
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user