Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Desktop version of vial-gui cannot recognize tinygo-keyboard #20

Closed
sago35 opened this issue Nov 6, 2023 · 3 comments · Fixed by #21
Closed

Desktop version of vial-gui cannot recognize tinygo-keyboard #20

sago35 opened this issue Nov 6, 2023 · 3 comments · Fixed by #21

Comments

@sago35
Copy link
Owner

sago35 commented Nov 6, 2023

The web version, vial-web (https://vial.rocks/), recognizes tinygo-keyboard, but vial-gui does not.

@sago35
Copy link
Owner Author

sago35 commented Nov 6, 2023

To be recognized by vial-gui, it seems necessary to include the Vial serial magic (vial:f64c2b3c) in the usb.Serial (STRING DESCRIPTOR).
However, that feature is not available in TinyGo 0.30.

https://github.com/tinygo-org/tinygo/blob/v0.30.0/src/machine/usb.go#L162-L164

		case usb.ISERIAL:
			// TODO: allow returning a product serial number
			SendZlp()

@sago35
Copy link
Owner Author

sago35 commented Nov 6, 2023

I have created the following PR, and if it gets merged, it will be usable with TinyGo 0.31.

tinygo-org/tinygo#3989

@sago35
Copy link
Owner Author

sago35 commented Nov 8, 2023

The following PR has been merged. With the latest dev version, you can rewrite ISERIAL, and it will be recognized by vial-gui.

tinygo-org/tinygo#3989

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant