This repository is created just by tweaking mrubyc-pico.
-
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_PATHenvironment variable
- Make sure you have
-
https://learn.sparkfun.com/tutorials/pro-micro-rp2040-hookup-guide will also help you if you use Sparkfun Pro Micro RP2040
-
-
Install mrbc (mruby compiler)
rbenv install mruby-4.0.0 -
Clone this repository
git clone --recursive https://github.com/lumbermill/mrubyc-pico-w.git cd mrubyc-pico-w # If you forgot to add recursive option, run the following: # git submodule update --init --recursive
-
Build with the rake task
rake samples:ledYou should have
led.uf2file inbuilddirectory.rake -Tshows the commands for other examples.The
runtimesample (rake samples:runtime) builds a firmware that receives mruby bytecode over USB serial and executes it — no reflash required per run. This is a minimal proof-of-concept; the full-featured runtime implementation is maintained at lumbermill/prremote. -
Install
- Connect a USB cable to Raspi Pico while pressing BOOTSEL button
- You'll find
RPI-RP2drive mounted in your PC's filer - Drag and drop
led.uf2into the drive - The LED on the Pico will start blinking. If not, you missed something
This repository is created just by tweaking mrubyc-pico
picoruby/mrubyc-pico is a successor of aikawaYO/mrubyc-pico which used mruby/c version 2.x.
Fork, clone, patch and send a pull request.
MIT License.