mirror of
https://github.com/eclipse/upm.git
synced 2025-07-01 17:31:13 +03:00
Relay: Added C source
Signed-off-by: Sisinty Sasmita Patra <sisinty.s.patra@intel.com>
This commit is contained in:

committed by
Noel Eck

parent
af417d3ae1
commit
b266f87450
@ -26,7 +26,7 @@
|
||||
var groveSensor = require('jsupm_grove');
|
||||
|
||||
// Create the relay switch object using GPIO pin 0
|
||||
var relay = new groveSensor.GroveRelay(0);
|
||||
var relay = new groveSensor.Relay(0);
|
||||
|
||||
// Close and then open the relay switch 3 times,
|
||||
// waiting one second each time. The LED on the relay switch
|
Reference in New Issue
Block a user