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,37 +1,37 @@
{
"Library": "lcm1602",
"Description": "API for the LCM1602 I2C controller for HD44780-based displays",
"Sensor Class":
{
"Lcm1602":
{
"Name": "LCD Display Driver for the LCM1602 Controller for HD44780-based Displays",
"Description": "UPM module for the ear-clip heart rate sensor. It is used to measure your heart rate.",
"Aliases": ["lcm1602"],
"Categories": ["display"],
"Connections": ["gpio"],
"Project Type": ["display", "prototyping"],
"Manufacturers": ["adafruit", "sparkfun", "seeed"],
"Kits": [],
"Examples":
{
"Java": ["Lcm1602_i2cSample.java", "Lcm1602_parallelSample.java"],
"Python": [],
"Node.js": [],
"C++": ["lcm1602-i2c.cxx", "lcm1602-parallel.cxx"],
"C": ["lcm1602-i2c.c", "lcm1602-parallel.c"]
},
"Specifications":
{
"Operating Voltage": {"unit": "V", "low": 4.8, "typ": 5, "high": 5.2},
"Operating Current": {"unit": "mA", "max": 150}
},
"Urls" :
{
"Product Pages": [],
"Datasheets": ["https://www.adafruit.com/datasheets/TC1602A-01T.pdf"],
"Schematics": []
}
}
}
}
{
"Library": "lcm1602",
"Description": "API for the LCM1602 I2C controller for HD44780-based displays",
"Sensor Class":
{
"Lcm1602":
{
"Name": "LCD Display Driver for the LCM1602 Controller for HD44780-based Displays",
"Description": "UPM module for the ear-clip heart rate sensor. It is used to measure your heart rate.",
"Aliases": ["lcm1602"],
"Categories": ["display"],
"Connections": ["gpio"],
"Project Type": ["display", "prototyping"],
"Manufacturers": ["adafruit", "sparkfun", "seeed"],
"Kits": [],
"Examples":
{
"Java": ["Lcm1602_i2c_Example.java", "Lcm1602_parallel_Example.java"],
"Python": [],
"Node.js": [],
"C++": ["lcm1602-i2c.cxx", "lcm1602-parallel.cxx"],
"C": ["lcm1602-i2c.c", "lcm1602-parallel.c"]
},
"Specifications":
{
"Operating Voltage": {"unit": "V", "low": 4.8, "typ": 5, "high": 5.2},
"Operating Current": {"unit": "mA", "max": 150}
},
"Urls" :
{
"Product Pages": [],
"Datasheets": ["https://www.adafruit.com/datasheets/TC1602A-01T.pdf"],
"Schematics": []
}
}
}
}