Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into bug/ft232
Browse files Browse the repository at this point in the history
  • Loading branch information
ctacke committed Oct 12, 2024
2 parents 99bb69e + a3d4dfd commit 4a0a245
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

**PCAN-Basic USB CAN Controller for Windows**

The **PCanBasic** library is included in the **Meadow.Foundation.ICs.CAN.PCanBasic** nuget package and is designed for the [Wilderness Labs](www.wildernesslabs.co) Meadow .NET IoT platform.
The **Meadow.PCanBasic** library is included in the **Meadow.Foundation.ICs.CAN.PCanBasic** nuget package and is designed for the [Wilderness Labs](www.wildernesslabs.co) Meadow .NET IoT platform.

This driver is part of the [Meadow.Foundation](https://developer.wildernesslabs.co/Meadow/Meadow.Foundation/) peripherals library, an open-source repository of drivers and libraries that streamline and simplify adding hardware to your C# .NET Meadow IoT applications.

Expand Down
30 changes: 30 additions & 0 deletions Source/Meadow.Foundation.Peripherals/Leds.Ws2812/Driver/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,36 @@ To view all Wilderness Labs open-source projects, including samples, visit [gith
You can install the library from within Visual studio using the the NuGet Package Manager or from the command line using the .NET CLI:

`dotnet add package Meadow.Foundation.Leds.Ws2812`
## Usage

```csharp
private Ws2812 neoPixels;

private readonly int ledCount = 24;

public override Task Initialize()
{
var spiBus = Device.CreateSpiBus();
neoPixels = new Ws2812(spiBus, ledCount);

return base.Initialize();
}

public override async Task Run()
{
while (true)
{
for (int i = 0; i < neoPixels.NumberOfLeds; i++)
{
neoPixels.SetAllLeds(Color.Black);
neoPixels.SetLed(i, Color.Blue);
neoPixels.Show();
await Task.Delay(100);
}
}
}

```
## How to Contribute

- **Found a bug?** [Report an issue](https://github.com/WildernessLabs/Meadow_Issues/issues)
Expand Down

0 comments on commit 4a0a245

Please sign in to comment.