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');
55const canvas = document . getElementById ( 'bitmapCanvas' ) ;
66const 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.
1613const bufferSize = 2 * 1024 * 1024 ; // Max buffer size is 16MB
You can’t perform that action at this time.
0 commit comments