You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here is the layer 1 of Vial when set to 48.
It appears that there is a misalignment of 8 keys. The corrected value to compensate for this offset seems to be 56.
The text was updated successfully, but these errors were encountered:
I figured out the reason.
The correct value was 56.
The sg48key is created using d.AddSquaredMatrixKeyboard(colPins, ...).
In this case, cols becomes len(colPins) * (len(colPins) - 1), so with the current setting, 8 x 7 == 56.
Therefore, nothing was incorrect.
The matrix.rows and matrix.cols values saved in vial.json need to be consistent with the AddXXXXKeyboard() function of the keyboard firmware written in TinyGo. This will not work properly unless it is checked. Some sort of verification mechanism is necessary.
For example, the setting value of 56 works fine, but it doesn't work properly with the correct key number of 48.
https://github.com/sago35/tinygo-keyboard/blob/0.4.0/targets/sg48key/vial.json#L5
Here is the layer 1 of Vial when set to 48.
It appears that there is a misalignment of 8 keys. The corrected value to compensate for this offset seems to be 56.
The text was updated successfully, but these errors were encountered: