mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2026-04-20 21:16:29 +00:00
Port of EightBit library to .Net (unworking!)
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user