Skip to content

Commit

Permalink
Merge pull request #826 from WildernessLabs/tm1637
Browse files Browse the repository at this point in the history
Remove unneeded ctor device param
  • Loading branch information
jorgedevs authored Oct 31, 2023
2 parents 580571e + 46d27b3 commit 3bb273e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,12 @@ internal enum DisplayCommand
/// <summary>
/// Initialize a TM1637
/// </summary>
/// <param name="device">The device connected to the display</param>
/// <param name="pinClock">The clock pin</param>
/// <param name="pinData">The data pin</param>
public Tm1637(IMeadowDevice device, IPin pinClock, IPin pinData)
public Tm1637(IPin pinClock, IPin pinData)
{
portClock = pinClock.CreateDigitalOutputPort();
portData = device.CreateBiDirectionalInterruptPort(pinData);
portData = pinData.CreateBiDirectionalPort();

_brightness = 7;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public override Task Initialize()
{
Resolver.Log.Info("Initialize...");

display = new Tm1637(Device, Device.Pins.D02, Device.Pins.D01);
display = new Tm1637(Device.Pins.D02, Device.Pins.D01);

display.Brightness = 7;
display.ScreenOn = true;
Expand Down

0 comments on commit 3bb273e

Please sign in to comment.