mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2024-12-25 00:31:13 +00:00
9a06b1743f
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
14 lines
407 B
C#
14 lines
407 B
C#
namespace EightBit
|
|
{
|
|
public static class PinLevelExtensions
|
|
{
|
|
public static bool Raised(this PinLevel line) => line == PinLevel.High;
|
|
|
|
public static bool Lowered(this PinLevel line) => line == PinLevel.Low;
|
|
|
|
public static void Raise(this ref PinLevel line) => line = PinLevel.High;
|
|
|
|
public static void Lower(this ref PinLevel line) => line = PinLevel.Low;
|
|
}
|
|
}
|