Hey guys, frist of all thx for all replys, but i think you guys dont see what im asking.
I need to code two things, VB and C(for mbed).
If i got a interface on VB with Button1, and pressing this button i want p21 = 1 on mbed(example).
The questions are:
1-How i code in C for mbed, to receive that information?
Example: with microcontroller 8051, to communicate with pc via parallel- port, i use code like this:
void writeString(char msg[]){
j=0;
while(msg[j] != '\0'){
SBUF=msg[j];
While(TI==0){}
TI=0;
j++;
}
Where i use two variables: TI to know when something is transmited, and SBUF that saves all transmited/Received information.
How is called mbed USB variables?
2-In VB how i code to send that information? with SerialPort object?
Hey guys,i just started working with mbed.
I need to make a porject that will need VB+mbed.
As start i want to learn how to make single things,like if i press a button on VB, to send info to mbed and turn on a simple led in port 21(for example).
Can u giveme some tips of code i will need to use?
Thx for help