-
Setup Raspberry Pi Pico C/C++ SDK
-
Follow the instructions on https://github.com/raspberrypi/pico-sdk#quick-start-your-own-project
- Make sure you have
PICO_SDK_PATH
environment variable
- Make sure you have
-
Be knowledgeable how to install a UF2 file into Raspi Pico on https://www.raspberrypi.org/documentation/rp2040/getting-started/#getting-started-with-c
-
https://learn.sparkfun.com/tutorials/pro-micro-rp2040-hookup-guide will also help you if you use Sparkfun Pro Micro RP2040
-
-
Clone this repository wherever you like
git clone --recursive https://github.com/hasumikin/mrubyc-pico.git # Don't forget --recursive cd mrubyc-pico/build
-
Build with
cmake
andmake
cmake -DCMAKE_BUILD_TYPE=Debug .. make
Now you should have
master.uf2
file inbuild/
directory.
Please see src/master.rb
.
├── CMakeLists.txt
├── README.md
├── build
├── components : include files (mruby/c source is here!)
├── main : program files written by C
├── mrblib : class and method written by Ruby
├── pico_sdk_import.cmake
└── src : main file (Ruby) is here!
This project is a successor of aikawaYO/mrubyc-pico which uses mruby/c version 2.x and picoruby/mrubyc-pico which uses mruby/c version 3.0.
Fork, clone, patch and send a pull request.