Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update for display contract changes #40

Merged
merged 1 commit into from
Feb 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 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 @@
/// <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
Loading