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

Feat: Implement Web Serial API for direct loading #70

Merged
merged 1 commit into from
Dec 17, 2023

Conversation

f13dev
Copy link
Contributor

@f13dev f13dev commented Dec 16, 2023

Adds Web Serial API to "GameBoy Printer JS Raw Decoder" page.

The Web Serial API allows the collection of Serial data directly in the web browser, eliminating the need for serial data to be gathered via the Arduino IDE and copied / pasted into the decoder.

On starting a print job, the data text area is cleared and data is streamed to the textarea. Once the capture has completed, images are generated.

Utilises the WebSerialPort interface created by Tom Igoe and released under the MIT license

Live demo with Web Serial implementation available at https://gbprinter.f13.dev

@mofosyne
Copy link
Owner

Nice! Btw webserial is already done in https://herrzatacke.github.io/gb-printer-web/#/gallery/page/1

but I can see this could still be preferred as a low fat approach!

@mofosyne mofosyne merged commit a60c4f5 into mofosyne:master Dec 17, 2023
3 checks passed
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 this pull request may close these issues.

2 participants