Skip to content

Commit d1766ca

Browse files
Add Fri3d-Camp 2024 Badge to available plaforms
1 parent 176cdbf commit d1766ca

File tree

3 files changed

+43
-27
lines changed

3 files changed

+43
-27
lines changed
Binary file not shown.

index.html

Lines changed: 29 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -15,61 +15,58 @@
1515
padding: 0;
1616
box-sizing: border-box;
1717
}
18-
1918
body {
2019
font-family: 'Arial', sans-serif;
2120
line-height: 1.6;
2221
color: #333;
2322
background-color: #f4f4f9;
2423
}
25-
2624
.container {
2725
max-width: 800px;
2826
margin: 0 auto;
2927
padding: 0 20px;
3028
}
31-
3229
/* Header Styles */
3330
header {
3431
background-color: #2c3e50;
3532
color: white;
3633
text-align: center;
3734
padding: 3rem 0;
3835
}
39-
4036
header h1 {
4137
font-size: 2.5rem;
4238
margin-bottom: 0.5rem;
4339
}
44-
4540
header p {
4641
font-size: 1.2rem;
4742
opacity: 0.9;
4843
}
49-
5044
/* Main Section */
5145
.installer-section {
5246
padding: 3rem 0;
5347
text-align: center;
5448
}
55-
5649
.installer-section h2 {
5750
font-size: 2rem;
5851
margin-bottom: 1rem;
5952
color: #2c3e50;
6053
}
61-
6254
.installer-section p {
6355
max-width: 600px;
6456
margin: 0 auto 1.5rem;
6557
color: #555;
6658
}
67-
59+
.device-selection {
60+
margin: 1.5rem 0;
61+
}
62+
.device-selection label {
63+
margin: 0 1rem;
64+
font-size: 1.1rem;
65+
}
6866
esp-web-install-button {
6967
display: inline-block;
7068
margin: 1.5rem 0;
7169
}
72-
7370
.instructions {
7471
margin-top: 2rem;
7572
text-align: left;
@@ -78,64 +75,56 @@
7875
border-radius: 8px;
7976
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
8077
}
81-
8278
.instructions h3 {
8379
font-size: 1.5rem;
8480
margin-bottom: 1rem;
8581
color: #2c3e50;
8682
}
87-
8883
.instructions ol {
8984
padding-left: 1.5rem;
9085
margin-bottom: 1rem;
9186
}
92-
9387
.instructions li {
9488
margin-bottom: 0.5rem;
9589
}
96-
9790
.instructions p {
9891
color: #555;
9992
}
100-
10193
/* Footer Styles */
10294
footer {
10395
background-color: #2c3e50;
10496
color: white;
10597
text-align: center;
10698
padding: 1.5rem 0;
10799
}
108-
109100
footer p {
110101
margin-bottom: 0.5rem;
111102
}
112-
113103
footer a {
114104
color: #1abc9c;
115105
text-decoration: none;
116106
}
117-
118107
footer a:hover {
119108
text-decoration: underline;
120109
}
121-
122110
/* Responsive Design */
123111
@media (max-width: 600px) {
124112
header h1 {
125113
font-size: 2rem;
126114
}
127-
128115
header p {
129116
font-size: 1rem;
130117
}
131-
132118
.installer-section h2 {
133119
font-size: 1.5rem;
134120
}
135-
136121
.container {
137122
padding: 0 15px;
138123
}
124+
.device-selection label {
125+
display: block;
126+
margin: 0.5rem 0;
127+
}
139128
}
140129
</style>
141130
</head>
@@ -146,35 +135,48 @@ <h1>MicroPythonOS</h1>
146135
<p>Effortlessly install MicroPythonOS on your microcontroller.</p>
147136
</div>
148137
</header>
149-
150138
<main>
151139
<section class="installer-section">
152140
<div class="container">
153141
<h2>Install MicroPythonOS</h2>
154142
<p>Click the button below to flash MicroPythonOS firmware onto your ESP device using WebSerial. Ensure your device is connected via USB and you're using a supported browser (e.g., Chrome or Edge).</p>
155143
<p>Don't have a device yet? Buy a supported one, like the <a href="https://www.waveshare.com/wiki/ESP32-S3-Touch-LCD-2">Waveshare ESP32-S3-Touch-LCD-2</a>. Or check out <a href="https://docs.micropythonos.com">the docs</a> to see how you can run it on your desktop PC.</p>
156-
<esp-web-install-button manifest="/manifests/Waveshare/ESP32-S3-Touch-LCD-2/Waveshare_ESP32-S3-Touch-LCD-2.json" ></esp-web-install-button>
144+
<div class="device-selection">
145+
<label>
146+
<input type="radio" name="device" value="/manifests/Waveshare/ESP32-S3-Touch-LCD-2/Waveshare_ESP32-S3-Touch-LCD-2.json" checked onchange="updateManifest()"> Waveshare ESP32-S3-Touch-LCD-2
147+
</label>
148+
<label>
149+
<input type="radio" name="device" value="/manifests/Fri3dCamp2024Badge/Fri3d_Camp_2024_Badge.json" onchange="updateManifest()"> Fri3d Camp 2024 Badge
150+
</label>
151+
</div>
152+
<esp-web-install-button id="installButton" manifest="/manifests/Waveshare/ESP32-S3-Touch-LCD-2/Waveshare_ESP32-S3-Touch-LCD-2.json"></esp-web-install-button>
157153
<div class="instructions">
158154
<h3>How to Use</h3>
159155
<ol>
160156
<li>Connect the device to your computer via USB.</li>
161157
<li>If it already has MicroPythonOS installed, put it in "Bootloader" mode through the Settings. If it's the factory firmware, you're good.</li>
162-
<li>Start a webbrowser with WebSerial support like Chrome, Brave or Edge.</li>
158+
<li>Start a webbrowser with WebSerial support like Chrome, Brave or Edge.</li>
163159
<li>Click the "Install" button above.</li>
164160
<li>Select your device from the browser's serial port prompt.</li>
165161
<li>Follow the instructions to start the installation.</li>
166-
<li>After it's done, press the "RST" button on your device to restart normally.</li>
162+
<li>After it's done, press the "RST" button on your device to restart normally.</li>
167163
</ol>
168164
</div>
169165
</div>
170166
</section>
171167
</main>
172-
173168
<footer>
174169
<div class="container">
175170
<p>© 2025 MicroPythonOS. All rights reserved.</p>
176171
<p><a href="https://micropython.org" target="_blank">Learn more about MicroPython</a></p>
177172
</div>
178173
</footer>
174+
<script>
175+
function updateManifest() {
176+
const selectedDevice = document.querySelector('input[name="device"]:checked').value;
177+
const installButton = document.querySelector('#installButton');
178+
installButton.setAttribute('manifest', selectedDevice);
179+
}
180+
</script>
179181
</body>
180182
</html>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"name": "MicroPythonOS",
3+
"version": "0.0.10",
4+
"funding_url": "https://MicroPythonOS.com",
5+
"new_install_prompt_erase": true,
6+
"builds": [
7+
{
8+
"chipFamily": "ESP32-S3",
9+
"parts": [
10+
{ "path": "/firmware_images/Fri3d-Camp/fri3d-2024/fri3d-2024_prod_0.0.10.bin", "offset": 0 }
11+
]
12+
}
13+
]
14+
}

0 commit comments

Comments
 (0)