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": "ili9341",
"Description": "API for the ILI9342 LCD",
"Sensor Class":
{
"ILI9341":
{
"Name": "SPI Based LCD",
"Description": "This module defines the interface for the ILI9341 display library.",
"Aliases": ["ili9341"],
"Categories": ["display"],
"Connections": ["spi"],
"Project Type": ["graphics", "prototyping"],
"Manufacturers": ["adafruit"],
"Kits": [],
"Image": "ili9341.jpg",
"Examples":
{
"Java": [],
"Python": ["ili9341.py"],
"Node.js": ["ili9341.js"],
"C++": ["ili9341.cxx"],
"C": []
},
"Specifications":
{
"Operating Voltage": {"unit": "V", "low": 3, "high": 5}
},
"Urls" :
{
"Product Pages": ["https://www.adafruit.com/product/2090"],
"Datasheets": ["http://www.adafruit.com/datasheets/ILI9341.pdf"],
"Schematics": ["https://cdn-learn.adafruit.com/assets/assets/000/015/463/medium800/adafruit_products_schem.png?1395173896"]
}
}
}
}
{
"Library": "ili9341",
"Description": "API for the ILI9342 LCD",
"Sensor Class":
{
"ILI9341":
{
"Name": "SPI Based LCD",
"Description": "This module defines the interface for the ILI9341 display library.",
"Aliases": ["ili9341"],
"Categories": ["display"],
"Connections": ["spi"],
"Project Type": ["graphics", "prototyping"],
"Manufacturers": ["adafruit"],
"Kits": [],
"Image": "ili9341.jpg",
"Examples":
{
"Java": [],
"Python": ["ili9341.py"],
"Node.js": ["ili9341.js"],
"C++": ["ili9341.cxx"],
"C": []
},
"Specifications":
{
"Operating Voltage": {"unit": "V", "low": 3, "high": 5}
},
"Urls" :
{
"Product Pages": ["https://www.adafruit.com/product/2090"],
"Datasheets": ["http://www.adafruit.com/datasheets/ILI9341.pdf"],
"Schematics": ["https://cdn-learn.adafruit.com/assets/assets/000/015/463/medium800/adafruit_products_schem.png?1395173896"]
}
}
}
}