-
Notifications
You must be signed in to change notification settings - Fork 102
Expand file tree
/
Copy pathArduinoMain.cpp
More file actions
31 lines (28 loc) · 521 Bytes
/
ArduinoMain.cpp
File metadata and controls
31 lines (28 loc) · 521 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#include "ArduinoMain.h"
#include <stdio.h>
ArduinoMain::ArduinoMain()
{
//hWnd = _hWnd;
}
void ArduinoMain::loop()
{
cout << "What's up?\n"
/*
char ch;
// #include "loop.ino"
FILE *portfp;
system ("mode com15:baud=115200 parity=0 data=8 stop=1 to=off xon=off");
portfp = fopen ("com1", "wb+");
ch = fgetc(portfp);
while (ch != ' ')
{
fprintf (, ch);
ch = fgetc(portfp);
}
fclose (portfp);
*/
}
void ArduinoMain::setHwnd(HWND hwndOwner)
{
hWnd = hwndOwner;
}