Beciu Napisano Czerwiec 8, 2019 Autor Zgłoś Napisano Czerwiec 8, 2019 Witam, Jak przy pomocy WINAPI zmienić na pinie DTR napięcie. Wiem że trzeba tam wysłać bit 0 lub 1, ale nie zabardzo wiem jak to zrobić. Cytuj
Guru Napisano Lipiec 21, 2019 Zgłoś Napisano Lipiec 21, 2019 HANDLE Port; DCB dcb; Port=CreateFile("COM1", GENERIC_READ | GENERIC_WRITE, 0, NULL, OPEN_EXISTING, 0, NULL); dcb.DCBlength = sizeof(dcb); dcb.BaudRate = CBR_9600; dcb.fParity = TRUE; dcb.Parity = NOPARITY; dcb.StopBits = ONESTOPBIT; dcb.ByteSize = 8; dcb.fDtrControl = 0; //TUTAJ GO USTAWIASZ dcb.fRtsControl=0; SetCommState(Port, &dcb); Cytuj
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.