Meadow.Foundation greatly simplifies the task of building connected things with Meadow, by providing a unified driver and library framework that includes drivers and abstractions for common peripherals such as sensors, displays, motors, and more. Additionally, it includes utility functions and helpers for common tasks when building connected things.
It’s completely open source and we welcome pull-requests!
Hello, World Example
With Meadow.Foundation, you can use drivers and hardware abstractions directly, for example, instead of using an IDigitalOutputPort
class, an LED can be driven by the the PwmLed
class, using high-level methods such as StartBlink()
, StartPulse()
, and more.:
using System.Threading;
using Meadow;
using Meadow.Devices;
using Meadow.Foundation.Leds;
class HelloBlinky
{
public static void Main(string[] args)
{
if (args.Length > 0 && args[0] == "--exitOnDebug") return;
// instantiate and run new meadow app
new MeadowApp();
Thread.Sleep(Timeout.Infinite);
}
}
public class MeadowApp : App<F7Micro, MeadowApp>
{
public MeadowApp()
{
var pwmLed = new PwmLed(
Device,
Device.Pins.OnboardLedGreen,
TypicalForwardVoltage.Green);
// blink the LED
pwmLed.StartBlink();
// keep the app running
Thread.Sleep(Timeout.Infinite);
}
}
Get Started with Meadow.Foundation
Huge Peripheral Driver Library
Meadow.Foundation has built in support for most common sensors, motors, and other peripherals available on the market.
Powerful Frameworks and Libraries