Hi, Thanks for your prompt reply.
Writing more than one byte was a mistake on my part. I intended to only change the data of 0xff, and not the count. As for the baud rate it is used for timing the arrival of array data in synchronous bit-bang mode, and was used in the example. Anyway, I tried the code with the suggested changes, but no dice:
#include "stdafx.h"
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
#include <string.h>
#include <math.h>
#include "ftd2xx.h"
//#include <ftdi.h>
int _tmain(int argc, _TCHAR* argv[])
{
unsigned char c = 0xff;
DWORD bytes;
FT_STATUS FT_Status;
FT_HANDLE handle;
printf("FTDI Hello World\n");
DWORD DeviceCount;
FT_Status = FT_CreateDeviceInfoList(&DeviceCount);
if (FT_Status) return printf("FT_CreateDeviceInfoList failed (%d)", FT_Status);
if (DeviceCount == 0) return printf("No FTDI devices attached\n");
if(FT_Open(0, &handle) != FT_OK) {
printf("Cannot open device\n");
return 1;
}
FT_SetBitMode(handle, 0xff, 0x4); //handle, mask, mode
FT_Write(handle, &c, 1, &bytes);
for(;;) {}
return 0;
}
Seems I can comunicate just fine with the device, but cannot get any output from writing to it. Am I doing something wrong? Also, how do i know I'm writing to port A? I can't find a function to select port A, so I'm assuming the software will write correctly.
Thanks again