mirror of
https://github.com/eclipse/upm.git
synced 2025-06-10 07:10:22 +03:00

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>
59 lines
2.3 KiB
JSON
59 lines
2.3 KiB
JSON
{
|
|
"Library": "rotaryencoder",
|
|
"Description": "Grove Rotary Encoder library",
|
|
"Sensor Class": {
|
|
"RotaryEncoder": {
|
|
"Name": "API for the Grove Rotary Encoder",
|
|
"Description": "This is the UPM Module for the Grove Rotary Encoder. This rotary encoder encodes a rotation signal into electronic pulses that can be used to measure rotation and direction. It is useful in cases where a rotary knob is required, but using a potentiometer is not desirable. A rotary encoder can turn a full 360 degrees without a stop and does not place a resistive load on the circuit, as is the case with a potentiometer.",
|
|
"Aliases": ["rotaryencoder", "Rotary Encoder", "Grove - Encoder"],
|
|
"Categories": ["other"],
|
|
"Connections": ["gpio"],
|
|
"Project Type": ["prototyping", "commercial"],
|
|
"Manufacturers": ["Seeed"],
|
|
"Kits": ["hak"],
|
|
"Image": "rotaryencoder.jpg",
|
|
"Examples": {
|
|
"Java": ["RotaryEncoder_Example.java"],
|
|
"Python": ["rotaryencoder.py"],
|
|
"Node.js": ["rotaryencoder.js"],
|
|
"C++": ["rotaryencoder.cxx"],
|
|
"C": ["rotaryencoder.c"]
|
|
},
|
|
"Specifications": {
|
|
"Vsource": {
|
|
"unit": "V",
|
|
"min": 4.5,
|
|
"max": 5.5
|
|
},
|
|
"Supply Current": {
|
|
"unit": "mA",
|
|
"min": 10,
|
|
"max": 30
|
|
},
|
|
"Operating Temperature": {
|
|
"unit": "°C",
|
|
"min": -40,
|
|
"max": 85
|
|
},
|
|
"Rotary Angle": {
|
|
"unit": "°",
|
|
"min": 0,
|
|
"max": 360
|
|
}
|
|
},
|
|
"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-Encoder-p-1352.html"],
|
|
"Datasheets": ["http://wiki.seeed.cc/Grove-Encoder/"]
|
|
}
|
|
}
|
|
}
|
|
}
|