File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -5,12 +5,9 @@ const saveImageButton = document.getElementById('save-image');
5
5
const canvas = document . getElementById ( 'bitmapCanvas' ) ;
6
6
const ctx = canvas . getContext ( '2d' ) ;
7
7
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/
14
11
15
12
// Set the buffer size to the total bytes. This allows to read the entire bitmap in one go.
16
13
const bufferSize = 2 * 1024 * 1024 ; // Max buffer size is 16MB
You can’t perform that action at this time.
0 commit comments