Home
last modified time | relevance | path

Searched refs:relay (Results 1 – 4 of 4) sorted by relevance

/hardware/bsp/intel/peripheral/libupm/examples/python/
Dgroverelay.py27 relay = grove.GroveRelay(0) variable
34 relay.on()
35 if relay.isOn():
36 print relay.name(), 'is on'
38 relay.off()
39 if relay.isOff():
40 print relay.name(), 'is off'
44 del relay
/hardware/bsp/intel/peripheral/libupm/examples/c++/
Dgroverelay.cxx36 upm::GroveRelay* relay = new upm::GroveRelay(0); in main() local
43 relay->on(); in main()
44 if ( relay->isOn() ) in main()
45 std::cout << relay->name() << " is on" << std::endl; in main()
47 relay->off(); in main()
48 if ( relay->isOff() ) in main()
49 std::cout << relay->name() << " is off" << std::endl; in main()
54 delete relay; in main()
/hardware/bsp/intel/peripheral/libupm/examples/javascript/
Dgroverelay.js29 var relay = new groveSensor.GroveRelay(0); variable
38 relay.on();
39 if ( relay.isOn() )
40 console.log(relay.name() + " is on");
42 relay.off();
43 if ( relay.isOff() )
44 console.log(relay.name() + " is off");
/hardware/bsp/intel/peripheral/libupm/examples/java/
DGroveRelaySample.java38 upm_grove.GroveRelay relay = new upm_grove.GroveRelay(5); in main() local
41 relay.on(); in main()
42 if (relay.isOn()) in main()
46 relay.off(); in main()
47 if (relay.isOff()) in main()