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:
Noel Eck
2018-02-27 12:12:09 -08:00
parent 86e8471cad
commit c54d6de054
315 changed files with 5209 additions and 5168 deletions

View File

@ -1,38 +1,38 @@
{
"Library": "hdc1000",
"Description": "API for the HDC1000 Temperature & Humidity Sensor",
"Sensor Class":
{
"HDC1000":
{
"Name": "HDC1000 Temperature and Humidity Sensor",
"Description": "The HDC1000 is a digital humidity sensor with integrated temperature sensor that provides excellent measurement accuracy at very low power. The device measures humidity based on a novel capacitive sensor. The humidity and temperature sensors are factory calibrated. The innovative WLCSP (Wafer Level Chip Scale Package) simplifies board design with the use of an ultra-compact package. The sensing element of the HDC1000 is placed on the bottom part of the device, which makes the HDC1000 more robust against dirt, dust, and other environmental contaminants. The HDC1000 is functional within the full -40 to +125 [degC] temperature range.",
"Aliases": ["hdc1000"],
"Categories": ["temperature", "humidity"],
"Connections": ["i2c"],
"Project Type": ["environmental", "", "prototyping"],
"Manufacturers": ["ti"],
"Kits": [],
"Examples":
{
"Java": [],
"Python": ["hdc1000.py"],
"Node.js": [],
"C++": ["hdc1000.cxx"],
"C": []
},
"Specifications":
{
"Operating Voltage": {"unit": "V", "low": 3, "high": 5},
"Operating Current": {"unit": "uA", "low": 0.82, "high": 1.2},
"Operating Temperature": {"unit": "degC", "low": -40, "high": 125}
},
"Urls" :
{
"Product Pages": ["http://www.ti.com/product/HDC1000/description"],
"Datasheets": ["http://www.ti.com/lit/ds/symlink/hdc1000.pdf"],
"Schematics": []
}
}
}
}
{
"Library": "hdc1000",
"Description": "API for the HDC1000 Temperature & Humidity Sensor",
"Sensor Class":
{
"HDC1000":
{
"Name": "HDC1000 Temperature and Humidity Sensor",
"Description": "The HDC1000 is a digital humidity sensor with integrated temperature sensor that provides excellent measurement accuracy at very low power. The device measures humidity based on a novel capacitive sensor. The humidity and temperature sensors are factory calibrated. The innovative WLCSP (Wafer Level Chip Scale Package) simplifies board design with the use of an ultra-compact package. The sensing element of the HDC1000 is placed on the bottom part of the device, which makes the HDC1000 more robust against dirt, dust, and other environmental contaminants. The HDC1000 is functional within the full -40 to +125 [degC] temperature range.",
"Aliases": ["hdc1000"],
"Categories": ["temperature", "humidity"],
"Connections": ["i2c"],
"Project Type": ["environmental", "", "prototyping"],
"Manufacturers": ["ti"],
"Kits": [],
"Examples":
{
"Java": [],
"Python": ["hdc1000.py"],
"Node.js": [],
"C++": ["hdc1000.cxx"],
"C": []
},
"Specifications":
{
"Operating Voltage": {"unit": "V", "low": 3, "high": 5},
"Operating Current": {"unit": "uA", "low": 0.82, "high": 1.2},
"Operating Temperature": {"unit": "degC", "low": -40, "high": 125}
},
"Urls" :
{
"Product Pages": ["http://www.ti.com/product/HDC1000/description"],
"Datasheets": ["http://www.ti.com/lit/ds/symlink/hdc1000.pdf"],
"Schematics": []
}
}
}
}