Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianstevens committed Dec 27, 2023
1 parent a543c66 commit 029e84e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Source/Relays.ElectromagneticRelayModule/Driver/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,27 +28,27 @@ public override Task Run()
{
for (int i = 0; i < 5; i++)
{
Console.Write("All on");
Console.Write("All on (closed)");
module.SetAllOn();

Thread.Sleep(1000);

Console.Write("All off");
Console.Write("All off (open)");
module.SetAllOff();

Thread.Sleep(1000);

for (int j = 0; j < (int)RelayIndex.Relay4; j++)
{
Console.Write($"{(RelayIndex)j} on");
module.Relays[j].IsOn = true;
Console.Write($"{(RelayIndex)j} on (closed)");
module.Relays[j].State = RelayState.Closed;
Thread.Sleep(1000);
}

for (int j = 0; j < (int)RelayIndex.Relay4; j++)
{
Console.Write($"{(RelayIndex)j} off");
module.Relays[j].IsOn = false;
Console.Write($"{(RelayIndex)j} off (open)");
module.Relays[j].State = RelayState.Open;
Thread.Sleep(1000);
}
}
Expand Down

0 comments on commit 029e84e

Please sign in to comment.