Skip to content

lumbermill/mrubyc-pico-w

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A sample mruby/c project for Raspberry Pi Pico W

This repository is created just by tweaking mrubyc-pico.

Getting started

  • Setup Raspberry Pi Pico C/C++ SDK

  • 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:led

    You should have led.uf2 file in build directory. rake -T shows the commands for other examples.

    The runtime sample (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-RP2 drive mounted in your PC's filer
    • Drag and drop led.uf2 into the drive
    • The LED on the Pico will start blinking. If not, you missed something

Acknowledgement

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.

Contributing

Fork, clone, patch and send a pull request.

License

MIT License.

About

A sample mruby/c project for Raspberry Pi Pico W

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors