temperature: added C sources and removed grove dependency

Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
Mihai Tudor Panu
2016-09-09 18:33:30 -07:00
committed by Noel Eck
parent af61f51e48
commit 67d01a9393
16 changed files with 472 additions and 10 deletions

View File

@ -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)

View File

@ -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