How To Access LCD and I/O At The Same Time

Topics: Developer Forum
Oct 4, 2006 at 3:12 PM

I have an 8/8/8 InterfaceKit that also includes an LCD. I can successfully associated an InterfaceKit object with the device and received DIO and AIO. Very nice!

I can also associate the TextLCD object with the device and see text.

I am unable to do both at the same time, however, where I display text as I am receiving DIO.

The code I am using is looks something like this:

InterfaceKit phid = (InterfaceKit)sender;
attachedLabel.Text = "Attached: " + phid.Name;
serialLabel.Text = " Serial: " + phid.SerialNumber;
versionLabel.Text = " Version: " + phid.Version;

label2.Text = "I/O: " + phid.sensors.Count + "/" + phid.inputs.Count + "/" + phid.outputs.Count;

lcd = new TextLCD();;

The row collection in the lcd member is null even after the call to open().

I am doing something wrong here? Is this related to the multiple servo instance bug in a different post?

Thanks and let me know if I can help with your debugging or code changes in any way. I am very proficient with CE and native code development, though less so in the managed code world.

Oct 16, 2006 at 3:05 PM
Hi Jim,

Yes, this is a bug in the library. It's fixed in the next release. I'll contact you by email to discuss involving you with our internal releases and development.

Nov 3, 2006 at 9:37 PM
We've posted a new release that fixes (among many other things) this bug.