Skip to content

Commit

Permalink
Merge pull request #729 from WildernessLabs/develop
Browse files Browse the repository at this point in the history
Update v1.10.2 docs
  • Loading branch information
adrianstevens authored Apr 17, 2024
2 parents 6b238b9 + e90759d commit 3657751
Show file tree
Hide file tree
Showing 6 changed files with 85 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public IActionResult GetJsonList()

## Sample Application

To see Maple Server in action, check out the [unit sample applications](https://github.com/WildernessLabs/Meadow.Foundation/tree/main/Source/Meadow.Foundation.Libraries_and_Frameworks/Web.Maple/Samples) or some practical samples up on Hackster.
To see Maple Server in action, check out the [unit sample applications](https://github.com/WildernessLabs/Maple) or some practical samples up on Hackster.

<table>
<tbody>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,27 @@ The code sample above draws a red rectangle:

![meadow microlayout box](microlayout_box.png)

### `GradientBox`

Draws a gradient colored rectangle:

```csharp
displayScreen.Controls.Add(new GradientBox(
left: 20,
top: 20,
width: displayScreen.Width - 40,
height: displayScreen.Height - 40)
{
StartColor = Color.Red,
EndColor = Color.Blue,
IsHorizontal = true,
});
```

The code sample above draws a red-to-blue gradient rectangle:

![meadow microlayout box](microlayout_gradientbox.png)

### `Circle`

Draws a colored circle:
Expand Down Expand Up @@ -167,6 +188,41 @@ The code sample above plots a line chart based on the list of double of 5 values

![meadow microlayout linechart](microlayout_linechart.png)

### `VerticalBarChart`

Draws a vertical bar chart based on an array of float values.

```csharp
var random = new Random();
var series = new float[10];

for (var i = 0; i < series.Length; i++)
{
series[i] = random.NextSingle() * 10;
}

var chart = new VerticalBarChart(
20,
20,
displayScreen.Width - 40,
displayScreen.Height - 40,
series)
{
AxisLabelColor = Color.Red,
AxisColor = Color.DarkRed,
AxisStroke = 3,
BarSpacing = 3,
SeriesColor = Color.DarkBlue,
AxisFont = new Font6x8(),
};

displayScreen.Controls.Add(chart);
```

The code sample above plots ten vertical bar charts with random values from 0-10. You can specify the style of the chart itself for things like axis colors, stroke, axis font, etc.

![meadow microlayout linechart](microlayout_verticalbarchart.png)

### `ProgressBar`

Draws a colored progress bar. To fill the progress bar, you would set value from 0..100 to the `Value` property.
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 28 additions & 0 deletions docs/Meadow/Release_Notes/v1/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,34 @@ subtitle: Release Notes
* [Meadow.CLI](/Meadow/Meadow_Tools/Meadow_CLI/)
* [Meadow.OS](/Meadow/Getting_Started/Deploying_Meadow%2EOS/)

## v1.10.2

This is a managed (NuGet packages) only release that improves Meadow.Cloud stability and with some minor performance improvements.

### Meadow.Core

* Added ephemeral store-and-forwarding to Meadow.Cloud logs and events
* Stability and user message improvements across the Meadow.Cloud stack (health reported, connection service, event publishing, etc)
* `Meadow.Linux` added disk usage stats
* `Meadow.Linux` added debounce support to `InterruptPort`
* Added contracts for `IPowerSensor`, `ICurrentSensor` and `IVoltageSensor`

### Meadow.Foundation

* Big update to `SC16IS752` IO expanded - thank you [kaarew](https://github.com/kaarew)!
* [`MicroLayout`](https://developer.wildernesslabs.co/Meadow/Meadow.Foundation/Libraries_and_Frameworks/MicroLayout/) improvements including `VerticalBarChart` and `GradientBox` controls
* Added 16x24 pixel font to [`MicroGraphics`](https://developer.wildernesslabs.co/Meadow/Meadow.Foundation/Libraries_and_Frameworks/MicroGraphics/) for high res displays
* Added extended characters to 8x12 and 12x16 fonts
* [`MicroJson`](https://www.nuget.org/packages/Meadow.Foundation.Serialization.MicroJson#readme-body-tab) compatibility and validation improvements
* Bug fix for `AnalogArray` to support Core Compute modules
* [`INA2xx`](https://www.nuget.org/packages/Meadow.Foundation.Sensors.Power.Ina2xx) driver updates to support new sensor interfaces

#### Breaking changes

* `Color` struct now uses float instead of double for a minor performance improvement
* `Bmi270` namespace changed from `Meadow.Foundation.Sensors.Accelerometers` to `Meadow.Foundation.Sensors.Motion`
* `AsciiConsoleDisplay` renamed to `AsciiConsole`

## v1.10.0

### Meadow.OS
Expand Down

0 comments on commit 3657751

Please sign in to comment.