Main Site Documentation

Useing two classed in the same program


#1

Hi i was looking for example code to test two different objects , example like the FEZ_Touch and FEZ_Temperature_Sensor. Do you make two different classes and how dose the main program work.

Thanks for your time.


#2

Take a look at this guide:

http://www.ghielectronics.com/downloads/FEZ/Beginners%20guide%20to%20NETMF.pdf

There is a section “C# Level2” that talks about classes.


#3

So in FEZ components i want use both temp and touch. i should make the them to non static classes. I was trying to use both but i think it was having problems with instance variables and both be reference by GHI electronics.


#4

They can be static. You can even have multiple classes in one file.

Here is a good free ebook on C# http://www.programmersheaven.com/2/CSharpBook