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

Restore ProjectLab class name #103

Merged
merged 2 commits into from
Jul 29, 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
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
4 changes: 2 additions & 2 deletions Source/ProjectLab_Demo/MeadowApp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

namespace ProjectLab_Demo;

// Change F7FeatherV2 to F7FeatherV1 if using Feather V1 Meadow boards
// Change to F7CoreComputeV2 for Project Lab V3.x
// Change to ProjectLabFeatherApp for Project Lab V1 or V2
// Change to ProjectLabCoreComputeApp for Project Lab V3+
public class MeadowApp : ProjectLabCoreComputeApp
{
private DisplayController? displayController;
Expand Down
Loading