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,46 +1,46 @@
{
"Library": "adxl345",
"Description": "3-axis, +/- 2/4/8/16 g Digital Accelerometer",
"Sensor Class":
{
"Adxl345":
{
"Name": "API for the ADXL345 3-Axis Digital Accelerometer",
"Description": "ADXL345 is a 3-axis digital accelerometer. The sensor has configurable resolutions to measure +/- 2g, +/- 4g, +/- 8g, or +/- 16g.",
"Aliases": ["adxl335"],
"Categories": ["imu", "accelerometers"],
"Connections": ["i2c"],
"Project Type": ["prototyping", "industrial"],
"Manufacturers": ["seeed"],
"Kits": [],
"Image": "adxl335.jpg",
"Examples":
{
"Java": [],
"Python": ["adxl345.py"],
"Node.js": ["adxl345.js"],
"C++": ["adxl345.cxx"],
"C": []
},
"Specifications":
{
"Working Voltage": {"unit": "v", "low": 2, "high": 3.6},
"Working Current": {"unit": "uA", "low": 30, "high": 140}
},
"Platforms":
{
"Intel Edison":
{
"Notes": ["The Grove* version of the sensor is incompatible with and not detected on the I2C bus by the Intel(R) Edison using an Arduino* breakout board at 5V (3V works fine)."],
"Images": [""]
}
},
"Urls" :
{
"Product Pages": ["http://www.analog.com/en/products/mems/accelerometers/adxl345.html"],
"Datasheets": ["http://www.seeedstudio.com/wiki/images/2/2c/ADXL345_datasheet.pdf", "http://www.analog.com/media/en/technical-documentation/data-sheets/ADXL345.pdf"],
"Schematics": []
}
}
}
}
{
"Library": "adxl345",
"Description": "3-axis, +/- 2/4/8/16 g Digital Accelerometer",
"Sensor Class":
{
"Adxl345":
{
"Name": "API for the ADXL345 3-Axis Digital Accelerometer",
"Description": "ADXL345 is a 3-axis digital accelerometer. The sensor has configurable resolutions to measure +/- 2g, +/- 4g, +/- 8g, or +/- 16g.",
"Aliases": ["adxl335"],
"Categories": ["imu", "accelerometers"],
"Connections": ["i2c"],
"Project Type": ["prototyping", "industrial"],
"Manufacturers": ["seeed"],
"Kits": [],
"Image": "adxl335.jpg",
"Examples":
{
"Java": [],
"Python": ["adxl345.py"],
"Node.js": ["adxl345.js"],
"C++": ["adxl345.cxx"],
"C": []
},
"Specifications":
{
"Working Voltage": {"unit": "v", "low": 2, "high": 3.6},
"Working Current": {"unit": "uA", "low": 30, "high": 140}
},
"Platforms":
{
"Intel Edison":
{
"Notes": ["The Grove* version of the sensor is incompatible with and not detected on the I2C bus by the Intel(R) Edison using an Arduino* breakout board at 5V (3V works fine)."],
"Images": [""]
}
},
"Urls" :
{
"Product Pages": ["http://www.analog.com/en/products/mems/accelerometers/adxl345.html"],
"Datasheets": ["http://www.seeedstudio.com/wiki/images/2/2c/ADXL345_datasheet.pdf", "http://www.analog.com/media/en/technical-documentation/data-sheets/ADXL345.pdf"],
"Schematics": []
}
}
}
}