You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
690 B
22 lines
690 B
using System;
|
|
using leak_test_project.Infrastructure;
|
|
using leak_test_project.Utils;
|
|
using leak_test_project.Models;
|
|
|
|
namespace leak_test_project.Services
|
|
{
|
|
/// <summary>
|
|
/// DioConfig.ini 설정에 따라 적절한 IDioBoard 객체를 생성하는 팩토리 클래스.
|
|
/// </summary>
|
|
public static class DioBoardFactory
|
|
{
|
|
public static IDioBoard CreateBoard()
|
|
{
|
|
// DIO 제어는 항상 신뢰성이 검증된 레거시 보드를 사용함
|
|
Console.WriteLine("[DIO Factory] Creating RealDioBoard (Legacy)...");
|
|
var board = new RealDioBoard();
|
|
board.Initialize();
|
|
return board;
|
|
}
|
|
}
|
|
}
|
|
|