mirror of
https://github.com/eclipse/upm.git
synced 2025-10-29 14:15:33 +03:00
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:
@@ -1,37 +1,37 @@
|
||||
{
|
||||
"Library": "hx711",
|
||||
"Description": "API for the HX711 Analog-to-Digital Converter",
|
||||
"Sensor Class":
|
||||
{
|
||||
"HX711":
|
||||
{
|
||||
"Name": "24-bit Analog-to-digital Converter",
|
||||
"Description": "HX711 is a precision 24-bit analog-to-digital converter (ADC) designed for weight scales and industrial control applications to interface directly with a bridge sensor. This module was tested on the Intel(R) Galileo Gen 2 board.",
|
||||
"Aliases": ["hx711"],
|
||||
"Categories": ["adc"],
|
||||
"Connections": ["gpio"],
|
||||
"Project Type": ["prototyping"],
|
||||
"Manufacturers": ["generic"],
|
||||
"Kits": [],
|
||||
"Examples":
|
||||
{
|
||||
"Java": [],
|
||||
"Python": [],
|
||||
"Node.js": ["hx711.js"],
|
||||
"C++": ["hx711.cxx"],
|
||||
"C": []
|
||||
},
|
||||
"Specifications":
|
||||
{
|
||||
"Operating Voltage": {"unit": "V", "low": 2.7, "high": 5.5},
|
||||
"Operating Current": {"unit": "mA", "max": 1.4}
|
||||
},
|
||||
"Urls" :
|
||||
{
|
||||
"Product Pages": [],
|
||||
"Datasheets": ["http://image.dfrobot.com/image/data/SEN0160/hx711_english.pdf"],
|
||||
"Schematics": []
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
{
|
||||
"Library": "hx711",
|
||||
"Description": "API for the HX711 Analog-to-Digital Converter",
|
||||
"Sensor Class":
|
||||
{
|
||||
"HX711":
|
||||
{
|
||||
"Name": "24-bit Analog-to-digital Converter",
|
||||
"Description": "HX711 is a precision 24-bit analog-to-digital converter (ADC) designed for weight scales and industrial control applications to interface directly with a bridge sensor. This module was tested on the Intel(R) Galileo Gen 2 board.",
|
||||
"Aliases": ["hx711"],
|
||||
"Categories": ["adc"],
|
||||
"Connections": ["gpio"],
|
||||
"Project Type": ["prototyping"],
|
||||
"Manufacturers": ["generic"],
|
||||
"Kits": [],
|
||||
"Examples":
|
||||
{
|
||||
"Java": [],
|
||||
"Python": [],
|
||||
"Node.js": ["hx711.js"],
|
||||
"C++": ["hx711.cxx"],
|
||||
"C": []
|
||||
},
|
||||
"Specifications":
|
||||
{
|
||||
"Operating Voltage": {"unit": "V", "low": 2.7, "high": 5.5},
|
||||
"Operating Current": {"unit": "mA", "max": 1.4}
|
||||
},
|
||||
"Urls" :
|
||||
{
|
||||
"Product Pages": [],
|
||||
"Datasheets": ["http://image.dfrobot.com/image/data/SEN0160/hx711_english.pdf"],
|
||||
"Schematics": []
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user