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": "l298",
"Description": "API for the L298 Dual H-Bridge Motor Driver",
"Sensor Class":
{
"L298":
{
"Name": "Dual H-bridge Motor Driver",
"Description": "It was developed using the RobotBase Dual H-Bridge module. This module can support 2 DC motors, or one 2-phase stepper motor. It requires 3 pins per DC motor (or H-bridge), or 4 pins for the stepper motor (uses both H-bridges).",
"Aliases": ["l298"],
"Categories": ["motors"],
"Connections": ["gpio", "pwm"],
"Project Type": ["robotics", "prototyping"],
"Manufacturers": ["seeed", "sparkfun"],
"Kits": [],
"Image": "l298.jpg",
"Examples":
{
"Java": [],
"Python": ["l298.py", "l298-stepper.py"],
"Node.js": ["l298.js", "l298-stepper.js"],
"C++": ["l298.cxx", "l298-stepper.cxx"],
"C": []
},
"Specifications":
{
"Motor Supply Voltage": {"unit": "V", "low": 6, "high": 35},
"Motor Supply Current": {"unit": "A", "typ": 2}
},
"Urls" :
{
"Product Pages": ["https://www.sparkfun.com/products/9670"],
"Datasheets": [],
"Schematics": []
}
}
}
}
{
"Library": "l298",
"Description": "API for the L298 Dual H-Bridge Motor Driver",
"Sensor Class":
{
"L298":
{
"Name": "Dual H-bridge Motor Driver",
"Description": "It was developed using the RobotBase Dual H-Bridge module. This module can support 2 DC motors, or one 2-phase stepper motor. It requires 3 pins per DC motor (or H-bridge), or 4 pins for the stepper motor (uses both H-bridges).",
"Aliases": ["l298"],
"Categories": ["motors"],
"Connections": ["gpio", "pwm"],
"Project Type": ["robotics", "prototyping"],
"Manufacturers": ["seeed", "sparkfun"],
"Kits": [],
"Image": "l298.jpg",
"Examples":
{
"Java": [],
"Python": ["l298.py", "l298-stepper.py"],
"Node.js": ["l298.js", "l298-stepper.js"],
"C++": ["l298.cxx", "l298-stepper.cxx"],
"C": []
},
"Specifications":
{
"Motor Supply Voltage": {"unit": "V", "low": 6, "high": 35},
"Motor Supply Current": {"unit": "A", "typ": 2}
},
"Urls" :
{
"Product Pages": ["https://www.sparkfun.com/products/9670"],
"Datasheets": [],
"Schematics": []
}
}
}
}