Characteristic | Locus |
---|---|
Inheritance | System.Object > Ht16k33 |
Namespace | Meadow.Foundation.ICs.IOExpanders |
Assembly | Ht16k33.dll |
Syntax
public class Ht16k33 : object
Constructors
Ht16k33(II2cBus, Byte)
Create a new HT16K33 object using the default parameters
Declaration
public Ht16k33(II2cBus i2cBus, byte address = null)
Parameters
Type | Name | Description |
---|---|---|
II2cBus | i2cBus | I2C bus instance |
System.Byte | address | Address of the bus on the I2C display. |
Methods
ClearDisplay()
Clear the display
Declaration
public void ClearDisplay()
IsLedOn(Int32)
Is led at index on
Declaration
public bool IsLedOn(int ledIndex)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | ledIndex | The led index |
Returns
Type | Description |
---|---|
System.Boolean | True if on |
SetBlinkRate(Ht16k33.BlinkRate)
Set display blink rate
Declaration
public void SetBlinkRate(Ht16k33.BlinkRate blinkRate)
Parameters
Type | Name | Description |
---|---|---|
Ht16k33.BlinkRate | blinkRate | The blink rate as a byte |
SetBrightness(Ht16k33.Brightness)
Set display brightness
Declaration
public void SetBrightness(Ht16k33.Brightness brightness)
Parameters
Type | Name | Description |
---|---|---|
Ht16k33.Brightness | brightness | The brightness |
SetDisplayOn(Boolean)
Set display on or off
Declaration
public void SetDisplayOn(bool isOn)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | isOn | On if true |
SetIsAwake(Boolean)
Set controller to awake / asleep
Declaration
public void SetIsAwake(bool awake)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | awake | Awake if true |
SetLed(Byte, Boolean)
Set an individual led on or off
Declaration
public void SetLed(byte ledIndex, bool ledOn)
Parameters
Type | Name | Description |
---|---|---|
System.Byte | ledIndex | The led index |
System.Boolean | ledOn | True for on |
ToggleLed(Byte)
Toggle an led on or off
Declaration
public void ToggleLed(byte ledIndex)
Parameters
Type | Name | Description |
---|---|---|
System.Byte | ledIndex | The led index |
UpdateDisplay()
Refresh the display
Declaration
public void UpdateDisplay()