below is part of my code for PIC.
i want to send the value,value1,value2,value3,value4,value5,value6,value7 to VBV 6.0.this value will have one text box for each.the value will be either 0 or 1.
if the value is 0,the text box will be in red color.if the value is 1, the text box will be in green color.
i want to know how to do the programming in VB.for the PIC code,is there any program i need to add to send data to vb.
TQ
--------------------------------------------------------------------------
#include <16F877a.h>
#fuses HS,NOWDT,NOPROTECT,NOLVP
#use delay(clock=20000000)
#use rs232(baud=9600, xmit=PIN_C6, rcv=PIN_C7) // Jumpers: 8 to 11, 7 to 12
#include <lcd.c>
#byte portb=6
#byte portc=7
void main()
{
unsigned int value,value1,value2,value3,value4,value5,value6,value7,COUNT;
lcd_init();
lcd_putc("EMPTY:");
delay_ms(1000);
set_tris_a(0b00000000);
set_tris_b(0b00000000);//setting the port job
set_tris_c(0b11111111);
set_tris_d(0b11111111);
set_tris_e(0000000000);
do
{
value=input(PIN_C0);
value1=input(PIN_C1);
value2=input(PIN_C2);
value3=input(PIN_C3);
value4=input(PIN_C4);
value5=input(PIN_C5);
value6=input(PIN_A5);
value7=input(PIN_A4);
}while(TRUE)
}