Squirrels have fuzzy tails.
0 Members and 1 Guest are viewing this topic.
Would this help at all?: http://www.pjrc.com/teensy/uart.html
void uart(LPCVOID uartByte){ DCB dcb; DWORD BytesWritten; HANDLE hPort = CreateFile( L"\\\\.\\COM2", GENERIC_WRITE, 0, NULL, OPEN_EXISTING, 0, NULL ); dcb.BaudRate = CBR_4800; dcb.ByteSize = 8; dcb.Parity = NOPARITY; dcb.StopBits = ONESTOPBIT; bool retVal = WriteFile(hPort,uartByte,1,&BytesWritten,NULL); CloseHandle(hPort);