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": "lis2ds12",
"Description": "API for the LIS2DS12 3-axis Accelerometer",
"Sensor Class":
{
"LIS2DS12":
{
"Name": "Digital 3-axis Accelerometer",
"Description": "The LIS2DS12 is an ultra-low-power high performance three-axis linear accelerometer belonging to the \"pico\" family which leverages on the robust and mature manufacturing processes already used for the production of micromachined accelerometers. The LIS2DS12 has user-selectable full scales of 2g/4g/8g/16g and is capable of measuring accelerations with output data rates from 1 Hz to 6400 Hz. Not all functionality of this chip has been implemented in this driver, however all the pieces are present to add any desired functionality. This driver supports both I2C (default) and SPI operation.",
"Aliases": ["lis2ds12"],
"Categories": ["accelerometer"],
"Connections": ["i2c", "spi", "gpio"],
"Project Type": ["imu", "prototyping"],
"Manufacturers": ["stmicro"],
"Kits": [],
"Examples":
{
"Java": ["LIS2DS12_Example.java"],
"Python": ["lis2ds12.py"],
"Node.js": ["lis2ds12.js"],
"C++": ["lis2ds12.cxx"],
"C": ["lis2ds12.c"]
},
"Specifications":
{
"Operating Voltage": {"unit": "V", "low": 1.62, "high": 1.98},
"Operating Current": {"unit": "uA", "low": 0.7, "high": 150},
"Operating Temperature": {"unit": "degC", "low": -40, "high": 85}
},
"Urls" :
{
"Product Pages": ["http://www.st.com/en/mems-and-sensors/lis2ds12.html"],
"Datasheets": ["http://www.st.com/content/ccc/resource/technical/document/datasheet/ce/32/55/ac/e1/87/46/84/DM00177048.pdf/files/DM00177048.pdf/jcr:content/translations/en.DM00177048.pdf"],
"Schematics": []
}
}
}
}
{
"Library": "lis2ds12",
"Description": "API for the LIS2DS12 3-axis Accelerometer",
"Sensor Class":
{
"LIS2DS12":
{
"Name": "Digital 3-axis Accelerometer",
"Description": "The LIS2DS12 is an ultra-low-power high performance three-axis linear accelerometer belonging to the \"pico\" family which leverages on the robust and mature manufacturing processes already used for the production of micromachined accelerometers. The LIS2DS12 has user-selectable full scales of 2g/4g/8g/16g and is capable of measuring accelerations with output data rates from 1 Hz to 6400 Hz. Not all functionality of this chip has been implemented in this driver, however all the pieces are present to add any desired functionality. This driver supports both I2C (default) and SPI operation.",
"Aliases": ["lis2ds12"],
"Categories": ["accelerometer"],
"Connections": ["i2c", "spi", "gpio"],
"Project Type": ["imu", "prototyping"],
"Manufacturers": ["stmicro"],
"Kits": [],
"Examples":
{
"Java": ["LIS2DS12_Example.java"],
"Python": ["lis2ds12.py"],
"Node.js": ["lis2ds12.js"],
"C++": ["lis2ds12.cxx"],
"C": ["lis2ds12.c"]
},
"Specifications":
{
"Operating Voltage": {"unit": "V", "low": 1.62, "high": 1.98},
"Operating Current": {"unit": "uA", "low": 0.7, "high": 150},
"Operating Temperature": {"unit": "degC", "low": -40, "high": 85}
},
"Urls" :
{
"Product Pages": ["http://www.st.com/en/mems-and-sensors/lis2ds12.html"],
"Datasheets": ["http://www.st.com/content/ccc/resource/technical/document/datasheet/ce/32/55/ac/e1/87/46/84/DM00177048.pdf/files/DM00177048.pdf/jcr:content/translations/en.DM00177048.pdf"],
"Schematics": []
}
}
}
}