git-svn-id: svn://db.shs.com.ru/pip@572 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5

This commit is contained in:
2017-12-07 07:21:02 +00:00
parent b7691222b6
commit 6b92ce74d2
2 changed files with 8 additions and 1 deletions

View File

@@ -13,6 +13,7 @@ int main(int argc, char *argv[]) {
}
PIString path = cli.argumentValue("dev");
PISPI spi(path, 1000000);
spi.setDebug(true);
if (cli.hasArgument("speed")) spi.setSpeed(cli.argumentValue("speed").toInt());
piCout << "open" << spi.open();
piCout << "write" << spi.write(PIByteArray::fromHex("0000000000000000000000000000000000000000000000000000000000000000"));