mirror of
https://github.com/eclipse/upm.git
synced 2025-07-02 09:51:14 +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,39 +1,39 @@
|
||||
{
|
||||
"Library": "ims",
|
||||
"Description": "API for the Catnip Electronics I2C Moisture Sensor",
|
||||
"Sensor Class":
|
||||
{
|
||||
"IMS":
|
||||
{
|
||||
"Name": "I2C Moisture Sensor",
|
||||
"Description": "I2C Sensor which can be used to read moisture, light, and temperature which must run at 100kHz.",
|
||||
"Aliases": ["ims"],
|
||||
"Categories": ["moisture"],
|
||||
"Connections": ["i2c"],
|
||||
"Project Type": ["environmental", "prototyping"],
|
||||
"Manufacturers": ["catnip"],
|
||||
"Kits": [],
|
||||
"Examples":
|
||||
{
|
||||
"Java": ["IMS_Example.java"],
|
||||
"Python": ["ims.py"],
|
||||
"Node.js": ["ims.js"],
|
||||
"C++": ["ims.cxx"],
|
||||
"C": ["ims.c"]
|
||||
},
|
||||
"Specifications":
|
||||
{
|
||||
"Operating Voltage": {"unit": "V", "low": 3.3, "high": 5},
|
||||
"Operating Current": {"unit": "mA", "low": 0.7, "high": 14},
|
||||
"Operating Temperature": {"unit": "degC", "low": 0, "high": 85}
|
||||
|
||||
},
|
||||
"Urls" :
|
||||
{
|
||||
"Product Pages": ["https://www.tindie.com/products/miceuz/i2c-soil-moisture-sensor/"],
|
||||
"Datasheets": [],
|
||||
"Schematics": []
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
{
|
||||
"Library": "ims",
|
||||
"Description": "API for the Catnip Electronics I2C Moisture Sensor",
|
||||
"Sensor Class":
|
||||
{
|
||||
"IMS":
|
||||
{
|
||||
"Name": "I2C Moisture Sensor",
|
||||
"Description": "I2C Sensor which can be used to read moisture, light, and temperature which must run at 100kHz.",
|
||||
"Aliases": ["ims"],
|
||||
"Categories": ["moisture"],
|
||||
"Connections": ["i2c"],
|
||||
"Project Type": ["environmental", "prototyping"],
|
||||
"Manufacturers": ["catnip"],
|
||||
"Kits": [],
|
||||
"Examples":
|
||||
{
|
||||
"Java": ["IMS_Example.java"],
|
||||
"Python": ["ims.py"],
|
||||
"Node.js": ["ims.js"],
|
||||
"C++": ["ims.cxx"],
|
||||
"C": ["ims.c"]
|
||||
},
|
||||
"Specifications":
|
||||
{
|
||||
"Operating Voltage": {"unit": "V", "low": 3.3, "high": 5},
|
||||
"Operating Current": {"unit": "mA", "low": 0.7, "high": 14},
|
||||
"Operating Temperature": {"unit": "degC", "low": 0, "high": 85}
|
||||
|
||||
},
|
||||
"Urls" :
|
||||
{
|
||||
"Product Pages": ["https://www.tindie.com/products/miceuz/i2c-soil-moisture-sensor/"],
|
||||
"Datasheets": [],
|
||||
"Schematics": []
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user