Skip to content

A sample mruby/c project for RaspberryPi Pico

Notifications You must be signed in to change notification settings

picoruby/mrubyc-pico

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A sample mruby/c project for Raspberry Pi Pico

Getting started

  • Setup Raspberry Pi Pico C/C++ SDK

  • Install mrbc (mruby compiler)

    rbenv install mruby-3.3.0
  • Clone this repository

    git clone --recursive https://github.com/picoruby/mrubyc-pico.git # Don't forget --recursive
    cd mrubyc-pico
  • Build with cmake and make

    cd build
    cmake ..
    # cmake -DCMAKE_BUILD_TYPE=Debug .. # You can debug with picoprobe
    make

    Now you should have l-chika.uf2 file in build directory.

  • 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 l-chika.uf2 into the drive
    • The LED on the Pico will start blinking. If not, you missed something

"l-chika" ?

It means "LED blinking" in Japanese.

Acknowledgement

This project 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 RaspberryPi Pico

Resources

Stars

Watchers

Forks

Languages

  • CMake 87.2%
  • C 11.6%
  • Ruby 1.2%