Class Tm1637
Represents Tm1637 segment display
Assembly: Tm1637.dll
View Source
public class Tm1637 : IDisposable
Implements:
System.IDisposable
Properties
MAX_SEGMENTS
Max segments for a TM1637 controller
View Source
public byte MAX_SEGMENTS { get; }
SegmentOrder
Order of segments
View Source
public byte[] SegmentOrder { get; set; }
ScreenOn
Set the screen on or off
View Source
public bool ScreenOn { get; set; }
Brightness
Adjust the screen brightness from 0 to 7
View Source
public byte Brightness { get; set; }
IsDisposed
Is the object disposed
View Source
public bool IsDisposed { get; }
Methods
Show(ReadOnlySpan<Character>)
Displays a series of prebuilt characters including the dot or not You can build your own characters with the primitives like Bottom, Top, Dot
View Source
public void Show(ReadOnlySpan<Character> data)
Parameters
Type | Name | Description |
---|---|---|
System.ReadOnlySpan<Meadow.Foundation.Displays.Character> | data | The Character to display |
Show(byte, Character)
Displays a raw data at a specific segment position from 0 to 5
View Source
public void Show(byte index, Character character)
Parameters
Type | Name | Description |
---|---|---|
System.Byte | index | The segment position from 0 to 5 |
Meadow.Foundation.Displays.Character | character | The segment characters to display |
Clear()
Clear the display
View Source
public void Clear()
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
View Source
public void Dispose()
Dispose(bool)
Dispose of the object
View Source
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | Is disposing |
Implements
System.IDisposable