添加项目文件。

This commit is contained in:
xyy
2026-01-16 20:55:07 +08:00
parent 67504157e8
commit 349c97f19e
26 changed files with 5526 additions and 0 deletions

28
Data/BoolSign.cs Normal file
View File

@@ -0,0 +1,28 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace .Data
{
public class BoolSignal
{
private bool _previousValue;
public event Action OnRisingEdge;
// bool value = true;
public bool Value { get; set; }
public void CheckRisingEdge()
{
if (Value && !_previousValue)
{
OnRisingEdge?.Invoke();
}
_previousValue = Value;
}
}
}