Characteristic | Locus |
---|---|
Inheritance | System.Object > BBQ10Keyboard |
Namespace | Meadow.Foundation.Sensors.Hid |
Assembly | Bbq10Keyboard.dll |
Syntax
public class BBQ10Keyboard : object
Constructors
BBQ10Keyboard(II2cBus, IPin, Byte)
Create a new BBQ10Keyboard object
Declaration
public BBQ10Keyboard(II2cBus i2cBus, IPin interruptPin = null, byte address = null)
Parameters
Type | Name | Description |
---|---|---|
II2cBus | i2cBus | The I2C bus |
IPin | interruptPin | The interrupt pin |
System.Byte | address | The I2C address |
Properties
BackLight
Get or set the backlight
Declaration
public byte BackLight { get; set; }
Property Value
Type | Description |
---|---|
System.Byte |
BackLight2
Get or set the 2nd backlight
Declaration
public byte BackLight2 { get; set; }
Property Value
Type | Description |
---|---|
System.Byte |
Methods
ClearInerruptStatus()
Clear the interrupt status
Declaration
protected void ClearInerruptStatus()
GetLastKeyEvent()
Get the last key event
Declaration
public BBQ10Keyboard.KeyEvent GetLastKeyEvent()
Returns
Type | Description |
---|---|
BBQ10Keyboard.KeyEvent | The event |
Reset()
Reset the keyboard
Declaration
public void Reset()
Events
OnKeyEvent
Raised when a key press is detected
Declaration
public event EventHandler<BBQ10Keyboard.KeyEvent> OnKeyEvent
Event Type
Type | Description |
---|---|
EventHandler<BBQ10Keyboard.KeyEvent> |