Hi,
Let me apologize in advance for what is probably a silly question or mistake on my part. I'm brand new at most of this and I'm a bit lost. I did try to do some searching on this forum in hopes of finding my own answers, but most of the topics are way beyond what I'm working on. I'm literally just trying to build the equivelant of "hello world" type stuff and already stuck.
I just recieved my Netduino and begam working through the Getting Started with NetDuino documentation. I noticed that the Netduino had an old Firmware so I went trhough the steps of flashing it and installing the newer SDKs. I built the first Blinky app with the Netduino and all was well.
I built the MakerShild and began making the Blinky app work with that (the LED and button). This worked well too.
Once I started trying to write the code to read the (analog) values from the potentiometer on the MakerShield I started getting debugger errors within MS Visual C# Express.
AnalogInput pot = new AnalogInput(Pins.GPIO_PIN_A0);
I get : "Error 1 The best overloaded method match for 'Microsoft.SPOT.Hardware.AnalogInput.AnalogInput(Microsoft.SPOT.Hardware.Cpu.AnalogChannel)' has some invalid arguments C:\Users\Jaime\documents\visual studio 2010\Projects\Blinky\Blinky\Program.cs 18 31 Blinky"
I noticed that there was a mention of "2. New core AnalogInput and PWM classes; backwards-compatible classes available via add-on assemblies". Does this mean that I need to include something more to be able to use the Pins.GPIO_PIN_A0 above?
I hacked around and was able to get the following to compile:
AnalogInput pot = new AnalogInput(AnalogChannels.ANALOG_PIN_A0)
but that doesn't seem to recieve any values from the potentiometer.
The source is attached.
Any tips would be greatly apreciated.
Thanks,
Jaime
- Netduino Forums
- → Viewing Profile: Posts: IronMarco
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.
Community Stats
- Group Members
- Active Posts 4
- Profile Views 3409
- Member Title New Member
- Age Age Unknown
- Birthday Birthday Unknown
-
Gender
Not Telling
0
Neutral
User Tools
Friends
IronMarco hasn't added any friends yet.
Posts I've Made
In Topic: New to this : Trouble with AnalogInput with Firmware v4.2.0.1
14 November 2012 - 12:58 PM
I have the same issue!!!
In Topic: netduino plus firmware update fail
29 June 2012 - 01:43 PM
No news?
Hi IronMarco,
I haven't seen that issue before. Can you confirm that you're deploying a matching set of TinyBooter and TinyCLR (ER_CONFIG/ER_FLASH) files?
Chris
In Topic: netduino plus firmware update fail
06 June 2012 - 06:03 AM
Yes I have downloaded both from Forum:Hi IronMarco,
I haven't seen that issue before. Can you confirm that you're deploying a matching set of TinyBooter and TinyCLR (ER_CONFIG/ER_FLASH) files?
Chris
Topic
http://forums.netdui...-netduino-plus/
Files for NetDuino plus
http://forums.netdui...&attach_id=1708
http://forums.netdui...?showtopic=2768
Followed the instruction here:
http://wiki.netduino...ep-by-step.ashx
http://wiki.netduino...ep-by-step.ashx
Cheers
- Netduino Forums
- → Viewing Profile: Posts: IronMarco
- Privacy Policy