softkb - Software Keyboard Matrix#
Adapted Air105
Note
This page document is automatically generated by this file. If there is any error, please submit issue or help modify pr, thank you!
softkb.init(port, key_in, key_out)#
Initialize software keyboard matrix
Parameters
Incoming Value Type |
Explanation |
---|---|
int |
Reserved, currently filled 0 |
table |
Matrix Input Key List |
table |
Matrix output key table |
Return Value
None
Examples
key_in = {pin.PD10,pin.PE00,pin.PE01,pin.PE02}
key_out = {pin.PD12,pin.PD13,pin.PD14,pin.PD15}
softkb.init(0,key_in,key_out)
sys.subscribe("SOFT_KB_INC", function(port, data, state)
-- port The current fixed to 0, can be ignored
-- data, Need to cooperate with init map for parsing
-- state, 1 is pressed, 0 is released
-- TODO Detailed introduction
end)
softkb.deinit(port)#
Delete Software Keyboard Matrix
Parameters
Incoming Value Type |
Explanation |
---|---|
int |
Reserved, currently filled 0 |
Return Value
None
Examples
softkb.deinit(0)