diff --git a/tinio/a.out b/tinio/a.out new file mode 100755 index 0000000..0c0984b Binary files /dev/null and b/tinio/a.out differ diff --git a/tinio/old.cpp b/tinio/old.cpp index f437601..e128d4d 100644 --- a/tinio/old.cpp +++ b/tinio/old.cpp @@ -7,7 +7,7 @@ // those vars are to be used with locateDevice function const uint8_t devInfoListLen = 200; -const CY_VID_PID deviceVidPid{UINT16(0x04b4), UINT16(0x0002)}; +const CY_VID_PID deviceVidPid{UINT16(0x04b4), UINT16(0x0004)}; uint8_t deviceNumList[devInfoListLen]; uint8_t deviceCount; CY_DEVICE_INFO deviceInfoList[devInfoListLen]; @@ -141,8 +141,18 @@ int selectDevice(const uint8_t whichDev = 0) { } return -1; } +void test() +{ + char trash; + trash = getchar(); + CySetGpioValue(deviceHandle, 8, 0); + + +} int main(int argc, char const *argv[]) { initLib(); locateDevice(); + selectDevice(); + test(); }