Main Site Documentation

AnalogIn


#1

GHI provide a class for analog input but Microsoft doesn’t!! So has anyone created a class that can read a scroll bar any pass that value back to my project.

Or, Can I use the battery class (I need three analog outputs ) Ive already created the emulator!

Thanks


#2

Do you mean you want a driver fro a potentiometer?


#3

I am not sure what you need either :frowning:


#4

Sorry I’m so vauge

I have a fez cobra at work with a pot connected to AD2,3 and 4 to represent my external sensors.

At home I only have the Sample Emulator to work with and I need to inject into the emulator an analog pot representaion, I need a value from the scroll bar sent t my project.

If I need to write a class to emulate an analog pin Ill need a bit of help

Thanks


#5

So you need an add on to the Emulator then?


#6

Yes! Kinda…

The Tempreture Emulator does it through an SPI device class, I guess I could do it like that but I have a lot of faffing to redo the code when I get t work and try it for real. Plus I intend to use the SPI for other things.

If the touch uses AD0 and AD1 why doesn’t the emulator provide AD inputs a standard.
I think Ill download a few control examples and make my own control. If it works Ill post it so you see what I wanted.

Thanks


#7

Ah, ok.

The NETMF blog actually had an example of this: http://blogs.msdn.com/b/netmfteam/archive/2010/06/21/bicycle-computer-7-working-with-the-emulator-when-you-have-new-peripherals.aspx


#8

This Blog is pointing to the same book EVERONE points at

“Expert .net framework” I’ve actually bought this book and its winging its way to me as we speak The “Bicycle Computer” example also has these links

I really appreciate your help Chris thanks