Skip to content

Commit

Permalink
Merge pull request #104 from WildernessLabs/Projlab_class_name
Browse files Browse the repository at this point in the history
Restore ProjectLab class name for backwards compat
  • Loading branch information
jorgedevs authored Jul 11, 2024
2 parents 87f2694 + 28b47f9 commit f3d6279
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Source/Meadow.ProjectLab/ProjectLab.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,30 +8,30 @@ namespace Meadow.Devices;
/// <summary>
/// A base class for Feather-based, Project Lab-targeted applications
/// </summary>
public abstract class ProjectLabFeatherApp : App<F7FeatherV2, ProjectLabHardwareProvider, IProjectLabHardware>
public abstract class ProjectLabFeatherApp : App<F7FeatherV2, ProjectLab, IProjectLabHardware>
{
}

/// <summary>
/// A base class for F7 Core Compute-based, Project Lab-targeted applications
/// </summary>
public abstract class ProjectLabCoreComputeApp : App<F7CoreComputeV2, ProjectLabHardwareProvider, IProjectLabHardware>
public abstract class ProjectLabCoreComputeApp : App<F7CoreComputeV2, ProjectLab, IProjectLabHardware>
{
}

/// <summary>
/// Represents Project Lab hardware and exposes its peripherals
/// </summary>
public class ProjectLabHardwareProvider : IMeadowAppEmbeddedHardwareProvider<IProjectLabHardware>
public class ProjectLab : IMeadowAppEmbeddedHardwareProvider<IProjectLabHardware>
{
private ProjectLabHardwareProvider() { }
private ProjectLab() { }

/// <summary>
/// Create an instance of the ProjectLab class
/// </summary>
public static IProjectLabHardware Create()
{
return new ProjectLabHardwareProvider()
return new ProjectLab()
.Create(Resolver.Services.Get<IMeadowDevice>()!);
}

Expand Down

0 comments on commit f3d6279

Please sign in to comment.