Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.

caEstrada

Member Since 19 Jul 2012
Offline Last Active Sep 03 2014 01:10 AM
-----

Topics I've Started

Analog input problem

18 June 2014 - 03:52 PM

Hi there,

 

I just bought some Netduino Plus 2, firmware 4.2, works well with VS2010.

 

Question:  what is wrong with this

 

AnalogInput input = new AnalogInput(AnalogChannels.ANALOG_PIN_A0)

 

I am trying to read a voltage in the range 0-3.3VDC at A0...

 

The VS2010 compiler says:

 

Error    2    The best overloaded method match for 'SecretLabs.NETMF.Hardware.AnalogInput.AnalogInput(Microsoft.SPOT.Hardware.Cpu.Pin)' has some invalid arguments    C:\Users\caestradalaptop\Documents\Visual Studio 2010\Projects\ceCSharpNetduinoPlus2\ceCSharpNetduinoPlus2\Program.cs    23    21    ceCSharpNetduinoPlus2

 

Also, it is supposed I can jump the pin 3V3 to A0 and see 4095 counts, right?
 

 

Suggestions?  Thanks in advance!

 

 

 

 


home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.