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.

Rashaad

Member Since 09 Nov 2013
Offline Last Active Oct 04 2014 04:18 PM
-----

#53937 'AnalogInput' is an ambiguous reference after 4.2 RC1

Posted by Rashaad on 09 November 2013 - 11:51 PM

Hi maara, That is brand new in .NET MF 4.2 RC2. We will be replacing the current AnalogInput classes with the new ones. As a temporary workaround...when you declare your AnalogInputs, use "SecretLabs.NETMF.Hardware.AnalogInput" instead of just "AnalogInput". Chris

I had to add this reference(SecretLabs.NETMF.Hardware.AnalogInput) in the solution explorer,

and did what you suggested in my code :

 static SecretLabs.NETMF.Hardware.AnalogInput potentiometer =newSecretLabs.NETMF.Hardware.AnalogInput(Pins.GPIO_PIN_A0);

and it works...

 

 

thanks




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.