Searched refs:relay (Results 1 – 4 of 4) sorted by relevance
27 relay = grove.GroveRelay(0) variable34 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
36 upm::GroveRelay* relay = new upm::GroveRelay(0); in main() local43 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()
29 var relay = new groveSensor.GroveRelay(0); variable38 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");
38 upm_grove.GroveRelay relay = new upm_grove.GroveRelay(5); in main() local41 relay.on(); in main()42 if (relay.isOn()) in main()46 relay.off(); in main()47 if (relay.isOff()) in main()