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.
Photo

Which reference to use


  • Please log in to reply
1 reply to this topic

#1 Pablo020

Pablo020

    New Member

  • Members
  • Pip
  • 5 posts

Posted 06 December 2014 - 03:32 AM

Hello,

this might sound like a really stupid question, I hope it is easy to answer for someone ....

 

I have a NetDuino Plus 2, running VS2013 and the latest firmware and framework.

 

Which DLL's should I include in my projects?

SecretLabs.NETMF.Hardware.Netduino, or ...

SecretLabs.NETMF.Hardware.NetduinoPlus, or ...

Both??

 

The obvious would be to include NetDuinoPlus, however when I create a new application of Type Netduino Plus 2, it automatically ads the SecretLabs.NETMF.Hardware.Netduino reference and not the SecretLabs.NETMF.Hardware.NetduinoPlus reference.

 

 

And .. do I need to reference the following:

SecretLabs.NETMF.Diagnostics

SecretLabs.NETMF.Hardware

SecretLabs.NETMF.Hardware.AnalogInput

SecretLabs.NETMF.Hardware.PWM
SecretLabs.NETMF.IO
 
Thanks for clearing this up if possible.
Paul

 

 

 

 



#2 KiwiDev

KiwiDev

    Advanced Member

  • Members
  • PipPipPip
  • 100 posts
  • LocationNew Zealand

Posted 18 December 2014 - 07:25 AM

Hi Paul,

 

I have annotated the code to show the references used

 

using System.Threading; // For Thread.Sleep which is in mscorlib assembly
using Microsoft.SPOT; // For Debug.Print which is in Microsoft.SPOT.Native assembly
using Microsoft.SPOT.Hardware; // For OutputPort which is in Microsoft.SPOT.Hardware assembly
using SecretLabs.NETMF.Hardware.Netduino; // for Pins. enumeration which is in SecretLabs.NETMF.Hardware.Netduino
 
public class Program
{
   public static void Main()
   {
      OutputPort led = new OutputPort(Pins.ONBOARD_LED, false);
 
      Debug.Print("Hello world"); 
 
      while (true)
      {
         led.Write(!led.Read());
 
         Thread.Sleep(500); 
      }
   }
}

 

For NetMF devices I remove off any the unused references.

 

Bryn

 

blog.devmobile.co.nz






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

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.