GatorGuy said:
I am still researching using the MSCOMM function but I believe you can send the pin number and pin state to change the pin from high to low or low to high. Correct me if I am wrong. I am pretty new with the PIC's as you can tell. Again thank you for all of the help. And no I do not have a programmer as of yet but that will before building it. I also have examples of the BASIC code to program the PIC.
MSComm1.Output = Chr$(255) & Chr$(PinNumber) & Chr$(PinState)
That doesn't look right?, I'm presuming '&' is a logical AND?, you need '+' to send the three bytes of data. I can't comment on the use of MSCOMM itself as I've never used it (nor VB).
Examples of the BASIC code for the PIC won't help unless you have a copy of PIC BASIC - which is a (fairly expensive) commercial program.