Skip to content

Commit

Permalink
Restore ProjectLab class name for backwards compat
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianstevens committed Jul 11, 2024
1 parent 87f2694 commit 28b47f9
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 28b47f9

Please sign in to comment.