|
| 1 | +<dialog id="connectDlg"> |
| 2 | + <form method="dialog"> |
| 3 | + <img |
| 4 | + src="./assets/image_microcode.png" |
| 5 | + alt="MicroCode logo" |
| 6 | + loading="lazy" |
| 7 | + class="logo" |
| 8 | + /> |
| 9 | + <h3> |
| 10 | + Program your micro:bit V2 with MicroCode! |
| 11 | + <button>Close</button> |
| 12 | + </h3> |
| 13 | + <ol> |
| 14 | + <li> |
| 15 | + Connect your micro:bit <b>V2</b> |
| 16 | + to your computer using the USB cable. (micro:bit V1 is not |
| 17 | + supported) |
| 18 | + </li> |
| 19 | + <li> |
| 20 | + <a |
| 21 | + class="firmware-download" |
| 22 | + href="https://microsoft.github.io/microcode/assets/firmware.hex" |
| 23 | + download |
| 24 | +>Download MicroCode</a |
| 25 | +> |
| 26 | + to the <code>MICROBIT</code> drive. |
| 27 | + </li> |
| 28 | + <li>Wait for the micro:bit to restart.</li> |
| 29 | + <li> |
| 30 | + <button class="webusbBtn">Connect</button>, choose "BBC |
| 31 | + micro:bit CMSIS-DAP" and press "Connect" in the dialog. |
| 32 | + </li> |
| 33 | + <li>Use the editor to bring the micro:bit to life!</li> |
| 34 | + </ol> |
| 35 | + </form> |
| 36 | +</dialog> |
| 37 | +<dialog id="notsupportedDlg"> |
| 38 | + <form method="dialog"> |
| 39 | + <img |
| 40 | + src="./assets/image_microcode.png" |
| 41 | + alt="MicroCode logo" |
| 42 | + loading="lazy" |
| 43 | + class="logo" |
| 44 | + /> |
| 45 | + <h2> |
| 46 | + This browser does not support download to the micro:bit. |
| 47 | + <button>Close</button> |
| 48 | + </h2> |
| 49 | + <p> |
| 50 | + MicroCode uses |
| 51 | + <a href="https://developer.mozilla.org/en-US/docs/Web/API/USB" |
| 52 | + >WebUSB</a |
| 53 | +> |
| 54 | + to download code to the micro:bit. To enable this feature, use |
| 55 | + Microsoft Edge, Google Chrome or |
| 56 | + <a href="https://caniuse.com/webusb">https://caniuse.com/webusb</a> |
| 57 | + to find a compatible browser. |
| 58 | + </p> |
| 59 | + </form> |
| 60 | +</dialog> |
| 61 | +<dialog id="outdatedDlg"> |
| 62 | + <form method="dialog"> |
| 63 | + <img |
| 64 | + src="./assets/image_microcode.png" |
| 65 | + alt="MicroCode logo" |
| 66 | + loading="lazy" |
| 67 | + /> |
| 68 | + <h2> |
| 69 | + You need to update MicroCode on your micro:bit! |
| 70 | + <button>Close</button> |
| 71 | + </h2> |
| 72 | + <ol> |
| 73 | + <li> |
| 74 | + <a |
| 75 | + class="firmware-download" |
| 76 | + href="https://microsoft.github.io/microcode/assets/firmware.hex" |
| 77 | + download |
| 78 | +>Download MicroCode</a |
| 79 | +> |
| 80 | + to the <code>MICROBIT</code> drive. |
| 81 | + </li> |
| 82 | + <li>Wait for the micro:bit to restart.</li> |
| 83 | + <li> |
| 84 | + <button class="webusbBtn">Connect</button>, choose "BBC |
| 85 | + micro:bit CMSIS-DAP" and press "Connect" in the dialog. |
| 86 | + </li> |
| 87 | + </ol> |
| 88 | + </form> |
| 89 | +</dialog> |
0 commit comments