Skip to content

Commit e2e949b

Browse files
committed
Add references
1 parent 7149a1b commit e2e949b

File tree

1 file changed

+3
-6
lines changed
  • libraries/Camera/extras/WebSerialCamera

1 file changed

+3
-6
lines changed

libraries/Camera/extras/WebSerialCamera/app.js

+3-6
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,9 @@ const saveImageButton = document.getElementById('save-image');
55
const canvas = document.getElementById('bitmapCanvas');
66
const ctx = canvas.getContext('2d');
77

8-
// TODO check for signals
9-
// TODO implement transformer
10-
// TODO get image format from device
11-
// SEE: https://developer.chrome.com/articles/serial/#transforming-streams
12-
// SEE: https://developer.chrome.com/articles/serial/#signals
13-
8+
// Check the following links for more information on the Web Serial API:
9+
// https://developer.chrome.com/articles/serial/
10+
// https://wicg.github.io/serial/
1411

1512
// Set the buffer size to the total bytes. This allows to read the entire bitmap in one go.
1613
const bufferSize = 2 * 1024 * 1024; // Max buffer size is 16MB

0 commit comments

Comments
 (0)