Sign inSign up

takumi4424/picoco

By takumi4424

•Updated over 5 years ago

C/C++ build helper system for Raspberry Pi Pico

Image
0

10K+

takumi4424/picoco repository overview

日本語(original) English

takumi4424 logo

⁠picoco: C/C++ build helper system for RPi Pico

Now, the Raspberry Pi Pico is available :exclamation: :exclamation:
I'm sure you've already bought it, and you're probably blinking your LEDs :smile:

But... We don't really understand cmake or make, right?
(I'm a beginner, so I don't understand it at all :sob:)

So, let's use this picoco tool to develop Raspberry Pi Pico more easily :exclamation: :exclamation:

If you can use the docker command, you can quickly set up a development environment :+1:
(See: Develop with Docker⁠)

⁠Table of contents

⁠Installation

At a minimum, followings are required:

TODO: make installation script

⁠Ubuntu
$ sudo apt update
$ sudo apt install -y python3 cmake gcc-arm-none-eabi libnewlib-arm-none-eabi build-essential
$ INSTALL_DIR=$HOME/.pico # e.g. "$HOME/.pico", "/opt/pico", etc.
$ mkdir -p $(INSTALL_DIR)
$ git -C $INSTALL_DIR clone https://github.com/takumi4424/picoco.git
$ git -C $INSTALL_DIR clone https://github.com/raspberrypi/pico-sdk.git
$ echo "export PICOCO_PATH=$INSTALL_DIR/picoco"     >> $HOME/.bashrc
$ echo "export PICO_SDK_PATH=$INSTALL_DIR/pico-sdk" >> $HOME/.bashrc
$ echo "export PATH=\$PATH:$PICOCO_PATH/bin"        >> $HOME/.bashrc
⁠MacOS

TODO

⁠Windows

TODO

⁠Usage

Examples in this section will do the followings:

  • Create a new package named test_pico
    • It includes LED blinking code (test_pico/src/test_pico_main.c)
    • It includes CMakeLists.txt
  • Build test_pico package
    • It makes test_pico/build/test_pico.uf2

Copy the product test_pico/build/test_pico.uf2 to your Raspberry Pi Pico and the LED will blink :examination: :examination:

⁠Develop with Docker

You can use picoco image⁠ to quickly launch the development environment :+1:

H$ docker run -it takumi4424/picoco:latest
C$ picoco create_pkg /root/test_pico
C$ cd /root/test_pico
C$ picoco build
C$ ls build/*.uf2

H$: Host, C$: Container

⁠Develop in local environment
$ picoco create_pkg test_pico
$ cd test_pico
$ picoco build

Tag summary

Content type

Image

Digest

Size

678.6 MB

Last updated

over 5 years ago

docker pull takumi4424/picoco