upm/src/slide/slide.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

64 lines
2.3 KiB
JSON

{
"Library": "slide",
"Description": "Seeed Slide Sensor library",
"Sensor Class": {
"Slide": {
"Name": "API for the Seeed Slide Potentiometer",
"Description": "This is the UPM Module for the Seeed Slide Potentiometer. Basic UPM module for the slide potentiometer on analog that returns either a raw value or a scaled voltage value.",
"Aliases": ["slide", "Grove - Slide Potentiometer"],
"Categories": ["ainput"],
"Connections": ["analog"],
"Project Type": ["prototyping", "robotics"],
"Manufacturers": ["Seeed"],
"Image": "slide.jpg",
"Examples": {
"Java" : ["Slide_Example.java"],
"Python": ["slide.py"],
"Node.js": ["slide.js"],
"C++": ["slide.cxx"],
"C": ["slide.c"]
},
"Specifications": {
"Vsource": {
"unit": "V",
"min": 3.3,
"max": 30.0
},
"Supply Current": {
"unit": "mA",
"max" : 30
},
"Operating Temperature": {
"unit": "°C",
"min": -40,
"max": 85
},
"Operational Life": {
"unit": "cycles",
"typ" : ">15,000"
},
"Stroke Length": {
"unit": "mm",
"length": 30
},
"Total Resistance": {
"unit": "Kohm",
"resistance": 10
}
},
"Platforms": {
"Intel Edison": {
"Notes": ["Might need Grove base shield"]
},
"Arduino 101": {
"Notes": ["Might need Grove base shield"]
}
},
"Urls": {
"Product Pages": ["https://www.seeedstudio.com/Grove-Slide-Potentiometer-p-1196.html", "http://wiki.seeed.cc/Grove-Slide_Potentiometer/"],
"Datasheets": ["https://raw.githubusercontent.com/SeeedDocument/Grove-Slide_Potentiometer/master/res/Sliding_potentiometer_datasheet.pdf"]
}
}
}
}