Skip to content

Commit

Permalink
Update for display contract changes
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianstevens committed Feb 8, 2024
1 parent 68bf9eb commit d0e839d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using Meadow.Foundation.Graphics;
using Meadow.Foundation.Graphics.MicroLayout;
using Meadow.Logging;
using Meadow.Peripherals.Displays;

namespace GnssTracker_SQLite_Demo.Controllers
{
Expand All @@ -25,7 +26,7 @@ public class DisplayController
protected Label LongitudeLabel { get; set; }
protected Label CounterLabel { get; set; }

public DisplayController(IGraphicsDisplay display)
public DisplayController(IPixelDisplay display)
{
LargeFont = new Font12x20();
SmallFont = new Font4x8();
Expand Down
4 changes: 2 additions & 2 deletions Source/GnssTracker/GnssTrackerHardareBase.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
using Meadow;
using Meadow.Foundation.Displays;
using Meadow.Foundation.Graphics;
using Meadow.Foundation.Leds;
using Meadow.Foundation.Sensors.Accelerometers;
using Meadow.Foundation.Sensors.Atmospheric;
using Meadow.Foundation.Sensors.Environmental;
using Meadow.Foundation.Sensors.Gnss;
using Meadow.Hardware;
using Meadow.Logging;
using Meadow.Peripherals.Displays;
using Meadow.Units;
using System;

Expand Down Expand Up @@ -43,7 +43,7 @@ public abstract class GnssTrackerHardwareBase : IGnssTrackerHardware
public abstract Bmi270? MotionSensor { get; protected set; }

/// <inheritdoc/>
public IGraphicsDisplay? Display { get; protected set; }
public IPixelDisplay? Display { get; protected set; }

Check failure on line 46 in Source/GnssTracker/GnssTrackerHardareBase.cs

View workflow job for this annotation

GitHub Actions / build

The type or namespace name 'IPixelDisplay' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 46 in Source/GnssTracker/GnssTrackerHardareBase.cs

View workflow job for this annotation

GitHub Actions / build

The type or namespace name 'IPixelDisplay' could not be found (are you missing a using directive or an assembly reference?)

/// <inheritdoc/>
public IAnalogInputPort? SolarVoltageInput { get; protected set; }
Expand Down
6 changes: 3 additions & 3 deletions Source/GnssTracker/IGnssTrackerHardware.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
using Meadow.Foundation.Graphics;
using Meadow.Foundation.Leds;
using Meadow.Foundation.Leds;
using Meadow.Foundation.Sensors.Accelerometers;
using Meadow.Foundation.Sensors.Atmospheric;
using Meadow.Foundation.Sensors.Environmental;
using Meadow.Foundation.Sensors.Gnss;
using Meadow.Hardware;
using Meadow.Peripherals.Displays;

namespace WildernessLabs.Hardware.GnssTracker
{
Expand Down Expand Up @@ -41,7 +41,7 @@ public interface IGnssTrackerHardware
/// <summary>
/// Gets the e-paper display
/// </summary>
public IGraphicsDisplay? Display { get; }
public IPixelDisplay? Display { get; }

Check failure on line 44 in Source/GnssTracker/IGnssTrackerHardware.cs

View workflow job for this annotation

GitHub Actions / build

The type or namespace name 'IPixelDisplay' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 44 in Source/GnssTracker/IGnssTrackerHardware.cs

View workflow job for this annotation

GitHub Actions / build

The type or namespace name 'IPixelDisplay' could not be found (are you missing a using directive or an assembly reference?)

/// <summary>
/// Gets the Solar Voltage Input
Expand Down
3 changes: 2 additions & 1 deletion Source/GnssTracker_Demo/Controllers/DisplayController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using Meadow.Foundation.Graphics;
using Meadow.Foundation.Graphics.MicroLayout;
using Meadow.Logging;
using Meadow.Peripherals.Displays;
using Meadow.Peripherals.Sensors.Location.Gnss;
using Meadow.Units;

Expand All @@ -25,7 +26,7 @@ public class DisplayController
protected Label LongitudeLabel { get; set; }
protected Label CounterLabel { get; set; }

public DisplayController(IGraphicsDisplay display)
public DisplayController(IPixelDisplay display)
{
LargeFont = new Font12x20();
SmallFont = new Font4x8();
Expand Down

0 comments on commit d0e839d

Please sign in to comment.