我想结合使用MAX31855热电偶和继电器。当热电偶读取高于用户输入的温度时,它将通过继电器初始化一组风扇。 “ Now Heating ...”和“ Now Cooling ...”显示了我想要的方式(结合热电偶读数的更改),但是当包含heating()和cooling()时,我得到一个错误
class User implements UserInterface, \Serializable
{
//...
/** @see \Serializable::serialize() */
public function serialize()
{
return serialize(array(
$this->id,
$this->username,
$this->password,
//$this->roles //(optional)
));
}
/** @see \Serializable::unserialize() */
public function unserialize($serialized)
{
list (
$this->id,
$this->username,
$this->password,
//$this->roles //(optional)
) = unserialize($serialized, array('allowed_classes' => false));
}
}
在Raspberry Pi 3 B上运行脚本时,出现错误:RuntimeError:请使用GPIO.setmode(GPIO.BOARD)或GPIO.setmode(GPIO.BCM)设置引脚编号模式
[错误消息] https://imgur.com/a/6ku2O7y