diff options
author | Elena ``of Valhalla'' Grandi <valhalla@trueelena.org> | 2025-03-13 09:54:20 +0100 |
---|---|---|
committer | Elena ``of Valhalla'' Grandi <valhalla@trueelena.org> | 2025-03-13 09:54:56 +0100 |
commit | d05bbef6c0167d3d9a812a02bcd2626fa0ae943b (patch) | |
tree | 6ed5f1c20e8157b65bff58164414d6f944b26b89 | |
parent | 2d02b9ef88e4cf1374102146829ec2e816e28f02 (diff) |
-rw-r--r-- | source/microcontrollers/index.rst | 1 | ||||
-rw-r--r-- | source/microcontrollers/raspberry_pi_pico/index.rst | 42 |
2 files changed, 43 insertions, 0 deletions
diff --git a/source/microcontrollers/index.rst b/source/microcontrollers/index.rst index 3e6fc88..f02a334 100644 --- a/source/microcontrollers/index.rst +++ b/source/microcontrollers/index.rst @@ -9,3 +9,4 @@ maple_mini/index olimex-esp32-c3-devkit-lipo/index olimex-esp32-pro/index + raspberry_pi_pico/index diff --git a/source/microcontrollers/raspberry_pi_pico/index.rst b/source/microcontrollers/raspberry_pi_pico/index.rst new file mode 100644 index 0000000..63870c6 --- /dev/null +++ b/source/microcontrollers/raspberry_pi_pico/index.rst @@ -0,0 +1,42 @@ +******************* + Raspberry Pi Pico +******************* + +Some notes on using the Raspberry Pi Pico series. + +Circuitpython +============= + +The official documentation_ from adafruit is pretty comprehensive; these +are just quick notes with easy to copypaste frequently used commands. + +.. _documentation: https://learn.adafruit.com/getting-started-with-raspberry-pi-pico-circuitpython/overview + +I2C +--- + +There is no board.I2C(), to use i2c instead see the pinout_ diagram to +find a pair of pins with an available I2C port (I2C0 or I2C1, both +available on multiple pins) and then:: + + import board + import busio + i2c0 = busio.I2C(scl=board.GP1, sda=board.GP0) + +.. _pinout: https://learn.adafruit.com/getting-started-with-raspberry-pi-pico-circuitpython/pinouts + +SPI +--- + +Like I2C, you can use any set of pins labelled SPI0 or SPI1 on the +pinout_ and then e.g.:: + + import board + import busio + spi0 = busio.SPI(clock=board.GP2, MOSI=board.GP3, MISO=board.GP4) + +See also +======== + +.. + vim: set filetype=rst: |