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 Meadow;
using Meadow.Devices;
using Meadow.Foundation;
using Meadow.Foundation.Leds;
...
public class MeadowApp : App<F7FeatherV2>
{
PwmLed pwmLed;
public override Task Initialize()
{
pwmLed = new PwmLed(
Device,
Device.Pins.OnboardLedGreen,
TypicalForwardVoltage.Green);
return base.Initialize();
}
public override Task Run()
{
// blink the LED
pwmLed.StartBlink();
// keep the app running
Thread.Sleep(Timeout.Infinite);
return base.Run();
}
}
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