Skip to content

Commit

Permalink
Update Thread.Sleep for CharlieSegment (#1485)
Browse files Browse the repository at this point in the history
  • Loading branch information
richlander committed Mar 16, 2021
1 parent db34ec7 commit b819a77
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/devices/Charlieplex/CharlieplexSegment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,7 @@ Cases to consider

_gpioController.Write(node.Anode, node.Value);
// It is necessary to sleep for the LED to be seen with full brightness
// It may be possible to sleep less than 1ms -- this API has ms granularity
Thread.Sleep(1);
Thread.SpinWait(1);
_gpioController.Write(node.Anode, 0);
_lastNode.Anode = node.Anode;
_lastNode.Cathode = node.Cathode;
Expand Down

0 comments on commit b819a77

Please sign in to comment.