Netduino: Difference between revisions

From air
Jump to navigation Jump to search
(Created page with " [http://netduino.com/ Netduino] ==Harware== Atmel ARM7 48MHz Code Storage: 128 KB RAM: 60 KB 20 GPIOs with SPI, I2C 2 UARTs (1 RTS/CTS) 4 PWM and 6 ADC channels Complian…")
 
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
Les cartes [http://netduino.com/ Netduino] sont des cartes de prototypage rapide utilisant un micro-contrôleur ARM7, programmables en langage C# et avec des connecteurs femelles compatibles avec les cartes empilables (''shield'') produites pour les cartes Arduino. La carte Netduino Plus intègre directement un port Ethernet et une socket pour une carte Flash MicroSD.


==Hardware==
* Netduino
** Atmel ARM7 48MHz, 128 KB Flash, 60 KB RAM
** 20 GPIOs with SPI, I2C
** 2 UARTs (1 RTS/CTS)
** 4 PWM and 6 ADC channels


[http://netduino.com/ Netduino]
* Netduino Plus
** + Micro SD + Ethernet


==Development==
* [[.NET MF]] C#
* Visual Studio Express
* SharpDevelop ???


==Harware==
===Code sample===
Atmel ARM7 48MHz
Code Storage: 128 KB
RAM: 60 KB
20 GPIOs with SPI, I2C
2 UARTs (1 RTS/CTS)
4 PWM and 6 ADC channels
Compliant with Arduino shields


<pre>
using System;
using System.Threading;
using Microsoft.SPOT;
using Microsoft.SPOT.Hardware;
using SecretLabs.NETMF.Hardware;
using SecretLabs.NETMF.Hardware.Netduino;


/* NOTE: make sure you change the deployment target from the Emulator to your Netduino before running this
Netduino Plus
* Netduino sample app. To do this, select "Project menu > Blinky Properties > .NET Micro Framework" and
+ Micro SD + Ethernet
* then change the Transport type to USB. Finally, close the Blinky properties tab to save these settings. */


namespace Blinky
==Development==
{
.NET Micro Framework C#
public class Program
Visual Studio Express
{
SharpDevelop ???
public static void Main()
{
// write your code here
OutputPort led = new OutputPort(Pins.ONBOARD_LED, false);

while (true)
{
led.Write(true);
Thread.Sleep(250);
led.Write(false);
Thread.Sleep(250);
}

}

}
}
</pre>

Latest revision as of 11:56, 26 January 2011

Les cartes Netduino sont des cartes de prototypage rapide utilisant un micro-contrôleur ARM7, programmables en langage C# et avec des connecteurs femelles compatibles avec les cartes empilables (shield) produites pour les cartes Arduino. La carte Netduino Plus intègre directement un port Ethernet et une socket pour une carte Flash MicroSD.

Hardware

  • Netduino
    • Atmel ARM7 48MHz, 128 KB Flash, 60 KB RAM
    • 20 GPIOs with SPI, I2C
    • 2 UARTs (1 RTS/CTS)
    • 4 PWM and 6 ADC channels
  • Netduino Plus
    • + Micro SD + Ethernet

Development

  • .NET MF C#
  • Visual Studio Express
  • SharpDevelop ???

Code sample

using System;
using System.Threading;
using Microsoft.SPOT;
using Microsoft.SPOT.Hardware;
using SecretLabs.NETMF.Hardware;
using SecretLabs.NETMF.Hardware.Netduino;

/* NOTE: make sure you change the deployment target from the Emulator to your Netduino before running this
 * Netduino sample app.  To do this, select "Project menu > Blinky Properties > .NET Micro Framework" and 
 * then change the Transport type to USB.  Finally, close the Blinky properties tab to save these settings. */

namespace Blinky
{
    public class Program
    {
        public static void Main()
        {
            // write your code here
            OutputPort led = new OutputPort(Pins.ONBOARD_LED, false);

            while (true)
            {
                led.Write(true);
                Thread.Sleep(250);
                led.Write(false);
                Thread.Sleep(250);
            }

        }

    }
}