未验证 提交 be177a67 编写于 作者: G Gabriele 提交者: GitHub

FT232H: SetDataBitsLowByte requires value before direction (#1996) (#2001)

上级 0321a59e
......@@ -489,8 +489,8 @@ namespace Iot.Device.Ft232H
toSend[idx++] = (byte)FtOpcode.SetDataBitsLowByte;
GpioLowDir = (byte)(I2cDirSDAoutSCLout | (GpioLowDir & 0xF8));
GpioLowData = (byte)(I2cDataSDAhiSCLlo | (GpioLowData & 0xF8));
toSend[idx++] = GpioLowDir;
toSend[idx++] = GpioLowData;
toSend[idx++] = GpioLowDir;
// And ask it right away
toSend[idx++] = (byte)FtOpcode.SendImmediate;
Write(toSend);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册