Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ libcamera-vid --codec libav --libav-format mkv -o test.raw
--libav-audio, Enable audio recording
----

Set this option to enable audio encoding together with the video stream. When audio encodding is enabled, an output format that supports audio (e.g. mpegts, mkv, mp4) must be used.
Set this option to enable audio encoding together with the video stream. When audio encoding is enabled, an output format that supports audio (e.g. mpegts, mkv, mp4) must be used.

----
--audio-codec, Selects the audio codec <string>
----

Selects which software audio codec is used for encoding. By default `aac` is used. To list the available audio codecs, use the ``ffmpeg -codec`` command.
Selects which software audio codec is used for encoding. By default `aac` is used. To list the available audio codecs, use the `ffmpeg -codec` command.

----
--audio-bitrate, Selects the audio bitrate <number>
Expand All @@ -38,10 +38,10 @@ Sets the audio encoding bitrate in bits per second.
Example: To record audio at 16 kilobits/sec with the mp2 codec use `libcamera-vid --codec libav -o test.mp4 --audio_codec mp2 --audio-bitrate 16384`

----
--audio-device, Chooses and audio recording device to use <string>
--audio-device, Chooses an audio recording device to use <string>
----

Selects which ALSA input device to use for audio encoding. The audio device string can be obtained by the following command:
Selects which ALSA input device to use for audio recording. The audio device string can be obtained with the following command:

----
pi@pi4:~ $ pactl list | grep -A2 'Source #' | grep 'Name: '
Expand Down
4 changes: 3 additions & 1 deletion documentation/asciidoc/microcontrollers/micropython.adoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
include::micropython/what-is-micropython.adoc[]

NOTE: If you’re new to MicroPython, our official guide, "https://hsmag.cc/picobook[Get started with MicroPython on Raspberry Pi Pico]", is a great place to start. Learn the basics of MicroPython and physical computing, connect your Pico to displays and sensors, build alarms, reaction games, and more.

include::micropython/drag-and-drop.adoc[]

NOTE: If you’re new to MicroPython, our official guide, "https://hsmag.cc/picobook[Get started with MicroPython on Raspberry Pi Pico]", is a great place to start. Learn the basics of MicroPython and physical computing, connect your Pico to displays and sensors, build alarms, reaction games, and more.
include::micropython/what-board.adoc[]
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
== Which hardware am I running on?

There is no direct method for software written in MircoPython to discover whether it is running on a Raspberry Pi Pico or a Pico W by looking at the hardware. However, you can tell indirectly by looking to see if network functionality is included in your particular MicroPython firmware:

[source,python]
----
import network
if hasattr(network, "WLAN"):
# the board has WLAN capabilities
----

Alternatively, you can inspect the MicroPython firmware version to check whether it was compiled for Raspberry Pi Pico or for Pico W using the `sys` module.

[source]
----
>>> import sys
>> sys.implementation
(name='micropython', version=(1, 19, 1), _machine='Raspberry Pi Pico W with RP2040', _mpy=4102)
----

So `if 'Pico W' in sys.implementation._machine` can be used to detect whether your firmware was compiled for Pico W.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
== The Family
== The family

image::images/three_picos.jpg[width="75%"]

Expand All @@ -11,7 +11,7 @@ Raspberry Pi Pico is a low-cost, high-performance microcontroller board with fle

* xref:rp2040.adoc#welcome-to-rp2040[RP2040] microcontroller chip designed by Raspberry Pi in the United Kingdom
* Dual-core Arm Cortex M0+ processor, flexible clock running up to 133 MHz
* 264kB of SRAM, and 2MB of on-board Flash memory
* 264kB of SRAM, and 2MB of on-board flash memory
* USB 1.1 with device and host support
* Low-power sleep and dormant modes
* Drag-and-drop programming using mass storage over USB
Expand All @@ -26,7 +26,7 @@ The Raspberry Pi Pico comes as a castellated module allows soldering direct to c

NOTE: Both boards have a three pin Serial Wire Debug (SWD) header. However, the Pico H has this broken out into a small, keyed, https://datasheets.raspberrypi.com/debug/debug-connector-specification.pdf[3-pin connector] while the Pico has three castellated through-hole pins adjacent to the edge of the board.

=== Pinout and Design Files
=== Pinout and design files

image::images/pico-pinout.svg[]

Expand All @@ -35,15 +35,15 @@ image::images/pico-pinout.svg[]
* Download https://datasheets.raspberrypi.com/pico/Pico-R3-step.zip[STEP File]
* Download https://datasheets.raspberrypi.com/pico/Pico-R3-Fritzing.fzpz[Fritzing Part]

NOTE: More information on Fritzing is available on the https://fritzing.org/[fritzing.org] web site.
NOTE: More information on Fritzing is available on the https://fritzing.org/[fritzing.org] website.

== Raspberry Pi Pico W

Raspberry Pi Pico W adds on-board single-band 2.4GHz wireless interfaces (802.11n) using the Infineon CYW4343 while retaining the Pico form factor. The on-board 2.4GHz wireless interface has the following features:

* Wireless (802.11n), Single-band (2.4 GHz)
* Wireless (802.11n), single-band (2.4 GHz)
* WPA3
* Soft Access Point supporting up to 4 clients
* Soft access point supporting up to four clients

The antenna is an onboard antenna licensed from ABRACON (formerly ProAnt). The wireless interface is connected via
SPI to the xref:rp2040.adoc#welcome-to-rp2040[RP2040] microcontroller.
Expand All @@ -57,7 +57,7 @@ For best wireless performance, the antenna should be in free space. For instance
antenna can reduce its performance both in terms of gain and bandwidth. Adding grounded metal to the sides of the
antenna can improve the antenna’s bandwidth.

=== Pinout and Design Files
=== Pinout and design files

image::images/picow-pinout.svg[]

Expand Down
2 changes: 1 addition & 1 deletion documentation/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@
},
{
"title": "Raspberry Pi Pico and Pico W",
"description": "Support for Rapsbery Pi Pico, Pico H, and Pico W",
"description": "Support for Raspberry Pi Pico, Pico H, and Pico W",
"image": "full-sized/Pico.png",
"subpath": "raspberry-pi-pico.adoc"
},
Expand Down