mirror of
https://github.com/eclipse/upm.git
synced 2025-07-01 09:21:12 +03:00
temperature: added C sources and removed grove dependency
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:

committed by
Noel Eck

parent
af61f51e48
commit
67d01a9393
@ -90,7 +90,7 @@ add_example (hmc5883l)
|
||||
add_example (groveled)
|
||||
add_example (groverelay)
|
||||
add_example (light)
|
||||
add_example (grovetemp)
|
||||
add_example (temperature)
|
||||
add_example (grovebutton)
|
||||
add_example (groverotary)
|
||||
add_example (slide)
|
||||
|
@ -34,7 +34,7 @@ main(int argc, char **argv)
|
||||
//! [Interesting]
|
||||
|
||||
// Create the temperature sensor object using AIO pin 0
|
||||
upm::GroveTemp* temp = new upm::GroveTemp(0);
|
||||
upm::Temperature* temp = new upm::Temperature(0);
|
||||
std::cout << temp->name() << std::endl;
|
||||
|
||||
// Read the temperature ten times, printing both the Celsius and
|
Reference in New Issue
Block a user