Relay: Added C source

Signed-off-by: Sisinty Sasmita Patra <sisinty.s.patra@intel.com>
This commit is contained in:
Sisinty Sasmita Patra
2016-09-12 09:27:24 -07:00
committed by Noel Eck
parent af417d3ae1
commit b266f87450
21 changed files with 320 additions and 37 deletions

View File

@ -88,7 +88,7 @@ link_directories (${MRAA_LIBDIR})
# grove* will use module grove
add_example (hmc5883l)
add_example (groveled)
add_example (groverelay)
add_example (relay)
add_example (light)
add_example (temperature)
add_example (grovebutton)

View File

@ -33,7 +33,7 @@ main(int argc, char **argv)
//! [Interesting]
// Create the relay switch object using GPIO pin 0
upm::GroveRelay* relay = new upm::GroveRelay(0);
upm::Relay* relay = new upm::Relay(0);
// Close and then open the relay switch 3 times,
// waiting one second each time. The LED on the relay switch