USB host code changes?

Hi,

I am starting an new project that uses a USB keyboard, and it looks like the syntax for using the USB controller has changed.

Here is my code:


		public static void Main()
		{
			// First thing to do is bring the LCD up
			LCD = new SLCD("COM1");
			LCD.clear();
			LCD.Lines[0].Text = "==== Math Flash ====";

			// Fade the backlight up...
			for (int i = 0; i <= 255; i++)
			{
				LCD.backlight = i;
				Thread.Sleep(5);
			}

			USBHostController.DeviceConnectedEvent += devCon;
		}

		public static void devCon(USBH_DeviceConnectionEventHandler device)
		{
			
		}


And I am getting this error: Error 1 No overload for ‘devCon’ matches delegate ‘GHIElectronics.NETMF.USBHost.USBH_DeviceConnectionEventHandler’

I don’t think it was changed but always check the documentation…there is already an example there.
http://ghielectronics.com/downloads/NETMF/Library%20Documentation/Index.html

Doesn’t work anymore.
The type or namespace name ‘USBH_Device’ could not be found (are you missing a using directive or an assembly reference?)


		public static void devCon(USBH_Device device)
		{
		}

Code wasn’t changed but this object was moved to the system assembly. This was indicated in last release notes.

Thanks Chimp. That did it :slight_smile: