Skip to content

Commit

Permalink
add web-serial-polyfill to support flashing from android devices
Browse files Browse the repository at this point in the history
  • Loading branch information
liamcottle committed Jul 25, 2024
1 parent 5c78914 commit dd2f6d2
Show file tree
Hide file tree
Showing 2 changed files with 499 additions and 0 deletions.
8 changes: 8 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,14 @@

</div>

<!-- setup web-serial-polyfill -->
<script type="module">
import { serial } from "./js/[email protected]/dist/serial.js";
if(!navigator.serial && navigator.usb){
navigator.serial = serial;
}
</script>

<!-- setup esptool-js -->
<script type="module">
import { ESPLoader, Transport } from "./js/[email protected]/bundle.js";
Expand Down
Loading

0 comments on commit dd2f6d2

Please sign in to comment.