You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/Sensor/SeeedStudio_XIAO/SeeedStudio_XIAO_RP2350/XIAO-RP2350.md
+26-12Lines changed: 26 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -163,10 +163,14 @@ The XIAO RP2350, powered by the RP2350, supports MicroPython and the C/C++ SDK p
163
163
164
164
## Getting Started ▶️
165
165
166
-
:::info
167
-
This page primarily focuses on MicroPython users. For those interested in learning SDK programming or advanced users, you can visit [XIAO RP2350 with C/C++ SDK](/xiao-rp2350-c-cpp-sdk) to learn about setting up the environment and running example code.
166
+
:::note micropython is still not released
167
+
As of August 9, 2024, the stable MicroPython firmware for the XIAO RP2350 is still awaiting release from Raspberry Pi.
168
+
You could use the preview-compiled micropython firmware from https://micropython.org/download/RPI_PICO2/.
168
169
:::
169
170
171
+
:::info attention
172
+
This page primarily focuses on MicroPython users. For those interested in learning SDK programming or advanced users, you can visit [XIAO RP2350 with C/C++ SDK](/xiao-rp2350-c-cpp-sdk) to learn about setting up the environment and running example code.
173
+
:::
170
174
171
175
If your board doesn't have the firmware or you want to upgrade to a new version of MicroPython, you'll need to upload the `UF2` bootloader. For this step, please visit the [XIAO RP2350 with MicroPython](/xiao-rp2350-micropython) for detailed instructions on getting started with MicroPython on the XIAO RP2350.
172
176
@@ -198,6 +202,11 @@ If your device is ready with MicroPython, let's start with a simple project:
198
202
199
203
Getting the board to blink an LED is often the first program everyone runs. The same goes for the XIAO RP2350.
200
204
205
+
:::note
206
+
The `USER LED`, the yellow LED on the XIAO RP2350, is connected to `GPIO25/D19` according to the schematic diagram.
207
+
For all XIAO family boards, the `USER LED` will **light up** when set to a `low level` and **turn off** when set to a `high level`.
208
+
:::
209
+
201
210
<Tabs>
202
211
<TabItemvalue="python"label="MicroPython"default>
203
212
@@ -209,19 +218,19 @@ from time import sleep # Import the sleep function from the time module
209
218
led = Pin(25, Pin.OUT)
210
219
211
220
# Turn off the LED initially
212
-
led.off() #Equivalent to led.value(0)
221
+
led.value(1) # led.on() -> high level -> light off
213
222
sleep(0.5) # Wait for 0.5 seconds
214
223
215
224
# Turn on the LED
216
-
led.on() #Equivalent to led.value(1)
225
+
led.value(0) # led.off() -> low level -> light on
217
226
sleep(0.5) # Wait for 0.5 seconds
218
227
219
228
# Enter an infinite loop
220
229
whileTrue:
221
230
# Toggle the LED state (on to off or off to on)
222
231
led.toggle()
223
232
# Print the current state of the LED
224
-
print(f"LED {'ON'if led.value() ==1else'OFF'}")
233
+
print(f"LED {'ON'if led.value() ==0else'OFF'}")
225
234
sleep(0.5) # Wait for 0.5 seconds before the next toggle
226
235
```
227
236
@@ -243,9 +252,9 @@ Once you have copied the code into Thonny IDE, as shown in the image below, simp
243
252
244
253
### Battery & Power Management
245
254
246
-
Is it possible to read the battery voltage without extra components? Yes! We heard you. With more pins provided, the XIAO RP2350 makes it possible. For previous members of the XIAO family, such as the [XIAO ESP32C3](/XIAO_ESP32C3_Getting_Started/#check-the-battery-voltage), reading the battery voltage level required manually connecting to *A0* with a resistor.
255
+
Is it possible to read the battery voltage without extra components? Yes, with the XIAO RP2350, it’s easier than ever. In previous XIAO family members, such as the [XIAO ESP32C3](/XIAO_ESP32C3_Getting_Started/#check-the-battery-voltage), reading the battery voltage required manually connecting to *A0* with a resistor.
247
256
248
-
However, with the XIAO RP2350, this is no longer necessary. You can now use the `A3/GPIO29` pin to directly read the battery voltage level, simplifying your design and development process. Additionally, for battery level reading, the `GPIO19`must be set to a high value, which is the enable pin for reading the battery level.
257
+
But with the XIAO RP2350, this process is simplified. You can now directly use the `A3/GPIO29` pin to read the battery voltage level, streamlining your design and development. Just remember to set the `GPIO19`pin to high, as it’s necessary to enable battery level reading.
249
258
250
259
Follow along with this code snippet to read the battery voltage using the Pico SDK:
251
260
@@ -328,12 +337,16 @@ int main() {
328
337
329
338
The XIAO RP2350 harnesses the power of the Raspberry Pi RP2350, leveraging a wealth of shared resources from the Raspberry Pi community. This opens up a world of possibilities for you to tailor your projects on this tiny board with boundless creativity. Below are essential resources and assets to help you get started.
- 📄 **[PDF]**[Getting Started with Raspberry Pi Pico-series](https://datasheets.raspberrypi.com/pico/getting-started-with-pico.pdf): A comprehensive guide to setting up and programming Raspberry Pi Pico boards, ideal for beginners looking to learn MicroPython or C/C++.
337
350
338
351
### Expansion and Applications
339
352
@@ -348,6 +361,7 @@ As a member of the XIAO family, the XIAO RP2350 does the same. Of course, to mak
348
361
349
362
Furthermore, dive into the vibrant Raspberry Pi community to expand your knowledge and discover new project ideas. Leverage community-shared resources, forums, and tutorials to enhance your experience with the XIAO RP2350. In addition to the Seeed Studio Wiki, here are a few other recommended places to learn:
350
363
364
+
-**[Raspberry Pi Documentation](https://www.raspberrypi.com/documentation/microcontrollers/rp2040.html)**: Get reliable and up-to-date info on the RP2350.
351
365
-**[Raspberry Pi Forums](https://www.raspberrypi.org/forums/)**: Engage with other enthusiasts, ask questions, and share your projects.
352
366
-**[XIAO GitHub Repository](https://github.com/Seeed-Studio/OSHW-XIAO-Series)**: Explore the official XIAO repository for more centralized documentation and more interaction with our team, **Join Us!**
353
367
-**[r/embedded on Reddit](https://www.reddit.com/r/embedded/)**: Join the embedded systems community, share insights, and discuss various topics.
0 commit comments