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,36 +1,36 @@
{
"Library": "lsm303dlh",
"Description": "API for the LSM303DLH Accelerometer & Compass",
"Sensor Class":
{
"LSM303DLH":
{
"Name": "Triaxial Accelerometer/magnetometer",
"Description": "This module defines the LSM303DLH 3-axis magnetometer/3-axis accelerometer. This module was tested with the Seeed Studio* Grove 6-Axis Accelerometer & Compass module used over I2C. The magnetometer and acceleromter are accessed at two seperate I2C addresses.",
"Aliases": ["lsm303dlh"],
"Categories": ["compass", "accelerometer"],
"Connections": ["i2c"],
"Project Type": ["imu", "prototyping"],
"Manufacturers": ["seeed", "adafruit", "stmicro"],
"Kits": [],
"Examples":
{
"Java": ["LSM303DLHSample.java"],
"Python": ["lsm303dlh.py"],
"Node.js": ["lsm303dhl.js"],
"C++": ["lsm303dlh.cxx"],
"C": []
},
"Specifications":
{
"Operating Voltage": {"unit": "V", "typ": 3.3}
},
"Urls" :
{
"Product Pages": ["https://www.seeedstudio.com/grove-6axis-accelerometercompass-p-1448.html?cPath=144_146"],
"Datasheets": ["http://wiki.seeedstudio.com/wiki/Grove_-_6-Axis_Accelerometer%26Compass_V1.0"],
"Schematics": []
}
}
}
}
{
"Library": "lsm303dlh",
"Description": "API for the LSM303DLH Accelerometer & Compass",
"Sensor Class":
{
"LSM303DLH":
{
"Name": "Triaxial Accelerometer/magnetometer",
"Description": "This module defines the LSM303DLH 3-axis magnetometer/3-axis accelerometer. This module was tested with the Seeed Studio* Grove 6-Axis Accelerometer & Compass module used over I2C. The magnetometer and acceleromter are accessed at two seperate I2C addresses.",
"Aliases": ["lsm303dlh"],
"Categories": ["compass", "accelerometer"],
"Connections": ["i2c"],
"Project Type": ["imu", "prototyping"],
"Manufacturers": ["seeed", "adafruit", "stmicro"],
"Kits": [],
"Examples":
{
"Java": ["LSM303DLH_Example.java"],
"Python": ["lsm303dlh.py"],
"Node.js": ["lsm303dhl.js"],
"C++": ["lsm303dlh.cxx"],
"C": []
},
"Specifications":
{
"Operating Voltage": {"unit": "V", "typ": 3.3}
},
"Urls" :
{
"Product Pages": ["https://www.seeedstudio.com/grove-6axis-accelerometercompass-p-1448.html?cPath=144_146"],
"Datasheets": ["http://wiki.seeedstudio.com/wiki/Grove_-_6-Axis_Accelerometer%26Compass_V1.0"],
"Schematics": []
}
}
}
}