Same code for several devices

Hello Everyone!

I would like to know if there’s a way to have the same code for several devices, for instance, I would like my application run on EMX and G400. Is there’s a way tor recognize the device at runtime and select the appropriate pin number?

@ leforban - You can see which device you are running on based on the value of Microsoft.SPOT.Hardware.SystemInfo.SystemID.Model and compare it to GHI.Processor.DeviceType. See

@ John - 404 :wink:

Remove the ‘.’ after ‘.htm’

Many thanks for your answers I will try that ASAP