我正在使用MATLAB控制一个新像素的LED条,我得到了一些奇怪的行为,我不确定是什么问题。我有以下两个函数:
function flicker(neostrip, ledNum, sec)
if any(neostrip.readColor(ledNum))
writeColor(neostrip, ledNum, [1 1 1]);
delay(sec);
else
writeColor(neostrip, ledNum, [0 0 0]);
delay(sec);
end
end
function