Cinder USBRelay 机器人电子USB继电器的煤渣块 http
#Cinder-USBRelay这是用于机器人电子USB继电器的Cinder-Block,该库已经过测试,但它应该适用于所有USB型号。有关USB继电器文档,请参阅在你打开任何东西之前,请确保你知道你在做什么,220V伤害!如何使用它// include the header #include "USBRelay.h" .. // create the device passing the serial device name and the number of outputs for the relay mUSBRelay = USBRelay::create( "tty.usbmodem00015481", 2 ); .. // set the output( output/relay 0 == ON ) mUSBRelay->setOutput( 0,
用户评论