Skip to content

Raspberry Pi Pico RP2040 development platform for Arduino IDE

License

Notifications You must be signed in to change notification settings

Wiz-IO/wizio-arduino-pico

Repository files navigation

Raspberry Pi Pico RP2040 - Arduino IDE

A few words in the beginning

  • Version: 1.0.0 The project is a work in progress and is very beta version - there may be bugs...
  • This project not an official platform and is based on pico-sdk
  • Systems support
    • windows ( for now )
    • linux & darwin LATER ... I need 300 Mb free space for compilers

Notes

  • I am in Home-Office, it's hard for me to test hardwares as SPI, I2C ... etc

pico

Install

Note: be sure git is installed

and clone this git

Update ( if need ... the project is a work in progress )

  • Go to: C:\Users\ USER \AppData\Local\Arduino15\packages\WizIO\hardware\pico\1.0.0
  • execute [ git pull ]
  • or goto point clone this git ( the best variant )

UPLOAD Sketch

Connect Pico as Mass Storage Device - click Compile or Upload ...

The UF2 file exist in build folder



STDIO ( only one will work )

  • Arduino -> Tools -> SDTDIO -> Select
    • PICO_STDIO_ARDUINO - in code Serial.begin(115200, true); // true redirect printf to Serial
    • PICO_STDIO_UART - if Serial is not used, uart0, GP0 & GP1
    • PICO_STDIO_USB - tinyusb

PIO ASM

Use tools from pico-sdk or here there is pre-compiled


CORES

Arduino use CORE_0, The CORE_1 is free for use

void loop1()
{
  Serial.println("core 1")
  while (1)
  {
    Serial.println("loop 1")
    delay(1000);
  }
}

run_core( loop1 );

Examples ( from screenshot ) & Others - TODO

Raspberry Pi Pico pin out diagram


If you want to help / support:

paypal