Hello, World!

  1. Configure your Meadow development environment.
  2. Create a new .NET console application.
  3. Install-Package Meadow.Foundation (Detailed NuGet instructions: Mac, Windows).
  4. Plug the longer leg (anode) of a blue LED into pin 13 and the other leg into GND:
  5. Add the following code to the program.cs file in your application, then deploy and run:
using System;
using System.Threading;
using Meadow;
using Meadow.Devices;
using Meadow.Foundation.Leds;

namespace HelloPulsy
    class Program
        static IApp app;
        public static void Main(string[] args)
            if (args.Length > 0 && args[0] == "--exitOnDebug") return;

            // instantiate and run new meadow app
            app = new MeadowApp();

    public class MeadowApp : App<F7Micro, MeadowApp>
        public MeadowApp()
            var pwmLed = new PwmLed(Device, Device.Pins.D13, TypicalForwardVoltage.Blue);

            // pulse the LED

            // keep the app running

That’s it, and you’re up and running using Meadow.Foundation!

Next up, check out how to work with sensors; which comprise a huge portion of the Meadow.Foundation peripheral library.

Next - Working with Sensors


These docs are open source. If you find an issue, please file a bug, or send us a pull request. And if you want to contribute, we'd love that too!