## Začíname s Raspberry Pi Pico
[mirek](https://bletvaska.github.io)
/ [**Namakaný deň - Webináre**](http://www.namakanyden.sk)
[Oops!... We Did It Again](https://www.raspberrypi.org/blog/raspberry-pi-silicon-pico-now-on-sale/)
## RP2040

## Vlastnosti RP2040 I.
* Dual-core Arm Cortex-M0+ @ 133MHz
* 264KB pamäť SRAM
* 16MB flash pamäť
* DMA radič
* Interpolator and integer divider peripherals
## Vlastnosti RP2040 II.
* 30 GPIO pinov, z toho 4 analógové piny
* 2 × UARTs, 2 × SPI, 2 × I2C
* 16 × PWM
* 1 × USB 1.1 radič a PHY, s podporou pre host a device
* 8 × Raspberry Pi Programmable I/O (PIO) state machines
* USB mass-storage boot mode with UF2 support, s možnosťou drag'n'drop programovania
| | RP2040 | ATmega 328 |
|-----------|---------------|------------|
| arch | 32b | 8b |
| cores | 2 | 1 |
| freq | 48 - 133MHz | 16MHz |
| SRAM | 264kB | 2kB |
| flash | 16M | 32kB |
| op. volt. | 3V3 | 3V3 / 5V |


## [V čom sa Pico programuje?](https://www.raspberrypi.org/documentation/pico/getting-started/)
* [MicroPython](https://www.raspberrypi.org/documentation/pico/getting-started/#getting-started-with-micropython) (Thonny, VS Code, [rshell](https://github.com/dhylands/rshell))
* [Adafruit CircuitPython](https://learn.adafruit.com/getting-started-with-raspberry-pi-pico-circuitpython)
* [jazyk C/C++](https://www.raspberrypi.org/documentation/pico/getting-started/#getting-started-with-c) (Arduino IDE, VS Code)
* experimentálne:
* [Rust](https://www.seeedstudio.com/blog/2021/02/05/rust-rt-thread-os-freertos-come-to-the-raspberry-pi-pico/)
* [JavaScript](https://blog.moddable.com/blog/pico/)

* preferovaná voľba od RPi Foundation
* podpora v [Thonny](https://thonny.org) a [VS Code](https://code.visualstudio.com) ([Pico-Go](https://marketplace.visualstudio.com/items?itemName=ChrisWood.pico-go), [Pymakr](https://marketplace.visualstudio.com/items?itemName=pycom.Pymakr)?)
## [Ďalšie knižné zdroje](https://www.raspberrypi.org/documentation/pico/getting-started/)
* [Getting started with Raspberry Pi Pico](https://datasheets.raspberrypi.org/pico/getting-started-with-pico.pdf) - C/C++ development with Raspberry Pi Pico and other RP2040-based microcontroller boards
* [Raspberry Pi Pico C/C++ SDK](https://datasheets.raspberrypi.org/pico/raspberry-pi-pico-c-sdk.pdf) - Libraries and tools for C/C++ development on RP2040 microcontrollers
* [Raspberry Pi Pico Python SDK](https://datasheets.raspberrypi.org/pico/raspberry-pi-pico-python-sdk.pdf) - A MicroPython environment for RP2040 microcontrollers
## Živá ukážka
1. začíname s RPi Pico
* miesto na kontaktnom poli vs ESP32
* inštalácia
2. blikneme (aj zabudovanou) LED-kou
3. ~~vianočné svetielka~~
4. zabudovaný teplotný senzor
## [Partners](https://www.raspberrypi.org/blog/raspberry-pi-silicon-pico-now-on-sale/)
tvorba rozšírení a ďalších dosiek niekoľko mesiacov pred oficiálnym vydaním s ďalšími partnermi

* [Adafruit Feather RP 2040](https://adafruit.com/feather2040)
* [Adafruit ItsyBitsy RP 2040](https://adafruit.com/itsybitsy2040)
## Arduino

[Arduino Nano RP2040 Connect](https://blog.arduino.cc/2021/01/20/welcome-raspberry-pi-to-the-world-of-microcontrollers/)

* [Pico System](https://pimoroni.com/picosystem)
* [Pico Explorer Base](https://pimoroni.com/picoexplorer)

* [Thing Plus – RP2040](https://www.sparkfun.com/products/17745)
* [Pro Micro – RP2040](https://www.sparkfun.com/products/17717)
* [MicroMod RP2040 Processor](https://www.sparkfun.com/products/17720)

[](https://www.waveshare.com/pico-dual-expander.htm)
## Odkazy
* [Meet Raspberry Silicon: Raspberry Pi Pico now on sale at $4](https://www.raspberrypi.org/blog/raspberry-pi-silicon-pico-now-on-sale/)
* [Get Started with MicroPython on Raspberry Pi Pico](https://hackspace.raspberrypi.org/books/micropython-pico)
* [Raspberry Pi Pico Pinout](https://datasheets.raspberrypi.org/pico/Pico-R3-A4-Pinout.pdf)
## Kde kúpiť?
* [RPishop.cz](https://rpishop.cz/pico/3352-675-raspberry-pi-pico-0617588405587.html#/188-prislusenstvi-bez_prislusenstvi) - 4.18 Eur
* [RLX.sk](https://rlx.sk/sk/raspberry-pi-pico/8016-raspberry-pi-pico-low-cost-high-performance-microcontroller-board.html) - 4.50 Eur
* [Alza.sk](https://www.alza.sk/raspberry-pi-pico-d6313108.htm?o=1) - 6.79 Eur

(**http://bit.ly/3dIRnrh**)