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,40 +1,40 @@
{
"Library": "enc03r",
"Description": "ENC03R Single Axis Gyro Library",
"Sensor Class":
{
"ENC03R":
{
"Name": "Single-axis Analog Gyro Module",
"Description": "UPM module for the ENC03R single axis analog gyro. This gyroscope measures x-axis angular velocity, that is how fast the sensor is rotating around the x-axis. Calibration of the sensor is necessary for accurate readings.",
"Aliases": ["enc03r"],
"Categories": ["gyroscope", "IMU", "Discontinued"],
"Connections": ["analog"],
"Project Type": ["prototyping"],
"Manufacturers": ["murata", "seeed"],
"Kits": ["robok"],
"Image": "enc03r.jpg",
"Examples":
{
"Java": ["ENC03RSample.java"],
"Python": ["enc03r.py"],
"Node.js": ["enc03r.js"],
"C++": ["enc03r.cxx"],
"C": ["enc03r.c"]
},
"Specifications":
{
"Operating Voltage": {"unit": "V", "low": 2.7, "high": 5.25},
"Response Time": {"unit": "Hz", "typ": 50},
"Operating Temperature": {"unit": "decC", "low": -5, "high": 75}
},
"Urls" :
{
"Product Pages": ["https://www.seeedstudio.com/Grove-Single-Axis-Analog-Gyro-p-1451.html"],
"Datasheets": ["http://www.seeedstudio.com/wiki/File:Analog_Gyro_datasheet.pdf", "http://wiki.seeedstudio.com/wiki/Grove_-_Single_Axis_Analog_Gyro"],
"Schematics": []
}
}
}
}
{
"Library": "enc03r",
"Description": "ENC03R Single Axis Gyro Library",
"Sensor Class":
{
"ENC03R":
{
"Name": "Single-axis Analog Gyro Module",
"Description": "UPM module for the ENC03R single axis analog gyro. This gyroscope measures x-axis angular velocity, that is how fast the sensor is rotating around the x-axis. Calibration of the sensor is necessary for accurate readings.",
"Aliases": ["enc03r"],
"Categories": ["gyroscope", "IMU", "Discontinued"],
"Connections": ["analog"],
"Project Type": ["prototyping"],
"Manufacturers": ["murata", "seeed"],
"Kits": ["robok"],
"Image": "enc03r.jpg",
"Examples":
{
"Java": ["ENC03R_Example.java"],
"Python": ["enc03r.py"],
"Node.js": ["enc03r.js"],
"C++": ["enc03r.cxx"],
"C": ["enc03r.c"]
},
"Specifications":
{
"Operating Voltage": {"unit": "V", "low": 2.7, "high": 5.25},
"Response Time": {"unit": "Hz", "typ": 50},
"Operating Temperature": {"unit": "decC", "low": -5, "high": 75}
},
"Urls" :
{
"Product Pages": ["https://www.seeedstudio.com/Grove-Single-Axis-Analog-Gyro-p-1451.html"],
"Datasheets": ["http://www.seeedstudio.com/wiki/File:Analog_Gyro_datasheet.pdf", "http://wiki.seeedstudio.com/wiki/Grove_-_Single_Axis_Analog_Gyro"],
"Schematics": []
}
}
}
}