beyler rs232 devC++ bi kod yazdım ve bu kodu paralele çevirmem lazım( gerçi daha tam çalışmıyo ama UNABLE TO OPEN COMPORT HATASI VERİYO YARDIMA İHTİYACIM VAR) kod şu #include <iostream> #include <string> #include <windows.h> #include <time.h> #include <stdio.h> #include <dos.h> #include<conio.h> #include "rs232.h" #include "rs232.c"
using namespace std; int main() { int y,x,A; while (1) { cout <<"sag icin 1 sol icin 2 durdurmak icin 3 "<< endl; cin >> x; A=1000; if (x==3) break; if (x==1) { do{ cout << "saga donuyor" << endl; RS232_OpenComport (3, 9600); RS232_SendByte(3, 8); Sleep(A); RS232_SendByte(3, 4); Sleep(A); RS232_SendByte(3, 2); Sleep(A); RS232_SendByte(3, 1); Sleep(A); RS232_CloseComport(3); } while(!kbhit());