File tree 2 files changed +16
-0
lines changed
2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,8 @@ Follow the on-screen prompts to download and install the MicroPython firmware.
26
26
- Arduino Nano ESP32
27
27
- Arduino Nano 33 BLE
28
28
29
+ ** Note:** This tool may work for 3rd party boards too. This is however not officially supported.
30
+
29
31
## ⚙️ Installation
30
32
31
33
You can download the binary for your operating system from the [ release page] ( https://github.com/arduino/lab-micropython-package-installer/releases ) .
Original file line number Diff line number Diff line change @@ -29,6 +29,20 @@ document.addEventListener('DOMContentLoaded', async () => {
29
29
// Show loading spinner
30
30
packageList . innerHTML = '<div class="loading-spinner primary" style="margin: 50px auto;"></div>' ;
31
31
32
+ // Load initial state of the checkboxes from local storage
33
+ compileFilesCheckbox . checked = localStorage . getItem ( 'compileFiles' ) === 'true' ;
34
+ overwriteExistingCheckbox . checked = localStorage . getItem ( 'overwriteExisting' ) === 'true' ;
35
+
36
+ compileFilesCheckbox . addEventListener ( 'change' , ( ) => {
37
+ // Persist the user's selection in local storage
38
+ localStorage . setItem ( 'compileFiles' , compileFilesCheckbox . checked ) ;
39
+ } ) ;
40
+
41
+ overwriteExistingCheckbox . addEventListener ( 'change' , ( ) => {
42
+ // Persist the user's selection in local storage
43
+ localStorage . setItem ( 'overwriteExisting' , overwriteExistingCheckbox . checked ) ;
44
+ } ) ;
45
+
32
46
deviceSelectionList . addEventListener ( "device-selected" , ( event ) => {
33
47
selectedDeviceItem = event . target ;
34
48
console . log ( "Selected device item:" , selectedDeviceItem ) ;
You can’t perform that action at this time.
0 commit comments