Skip to content

Commit

Permalink
Merge pull request #35 from WildernessLabs/jorge-build-fixes
Browse files Browse the repository at this point in the history
Fix sample
  • Loading branch information
adrianstevens authored Jan 2, 2024
2 parents be80869 + 26536b5 commit ad0dfac
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using GnssTracker_SQLite_Demo.Models.Logical;
using Meadow;
using Meadow.Foundation;
using Meadow.Foundation.Graphics;
using Meadow.Foundation.Graphics.MicroLayout;
using Meadow.Logging;
Expand Down Expand Up @@ -50,12 +49,12 @@ public DisplayController(IGraphicsDisplay display)
var box = new Box(0, 0, DisplayScreen.Width, DisplayScreen.Height)
{
ForeColor = Color.White,
Filled = true
IsFilled = true
};
var frame = new Box(5, 5, 240, 112)
{
ForeColor = Color.Black,
Filled = false
IsFilled = false
};
TemperatureLabel = new Label(10, 10, DisplayScreen.Width - 20, LargeFont.Height)
{
Expand Down Expand Up @@ -117,13 +116,13 @@ public DisplayController(IGraphicsDisplay display)

DisplayScreen.Controls.Add(SplashLayout, DataLayout);

DataLayout.Visible = false;
DataLayout.IsVisible = false;
}

public void UpdateDisplay(AtmosphericModel conditions, LocationModel locationInfo)
{
SplashLayout.Visible = false;
DataLayout.Visible = true;
SplashLayout.IsVisible = false;
DataLayout.IsVisible = true;

TemperatureLabel.Text = $"Temp: {conditions.Temperature?.Celsius:n2}°C";
HumidityLabel.Text = $"Humidity: {conditions.RelativeHumidity?.Percent:n2}%";
Expand Down

0 comments on commit ad0dfac

Please sign in to comment.