upm/src/flex/flex.json
Noel Eck c54d6de054 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>
2018-02-27 15:28:48 -08:00

40 lines
1.4 KiB
JSON

{
"Library": "flex",
"Description": "API for the Spectra Symbol Flex Sensor",
"Sensor Class":
{
"Flex":
{
"Name": "Resistive Flex Sensor",
"Description": "A simple flex sensor. The resistance across the sensor increases when flexed. Patented technology by Spectra Symbol, these sensors were used in the original Nintendo* Power Glove.",
"Aliases": ["flex"],
"Categories": ["flex sensors"],
"Connections": ["analog"],
"Project Type": ["prototyping", "industrial"],
"Manufacturers": ["sparkfun"],
"Kits": [],
"Image": "flex.jpg",
"Examples":
{
"Java": ["FlexSensor_Example.java"],
"Python": [],
"Node.js": ["flex.js"],
"C++": ["flex.cxx"],
"C": []
},
"Specifications":
{
"Flat Resistance": {"unit": "KOhms", "typ": 10},
"Bend Resistance": {"unit": "KOhms", "low": 60, "high": 110},
"Temperature Range": {"unit": "degC", "low": -35, "high": 80}
},
"Urls" :
{
"Product Pages": ["https://www.sparkfun.com/products/8606"],
"Datasheets": ["https://cdn.sparkfun.com/datasheets/Sensors/ForceFlex/FLEXSENSORREVA1.pdf"],
"Schematics": []
}
}
}
}